export class Yelp{
search(term, location, sortBy){
return fetch(`https://cors-anywhere.herokuapp.com/https://api.yelp.com/v3/businesses/search?term=${term}&location=${location}&sort_by=${sortBy}/`,{
headers: {Authorzation:`Bearer ${apiKey}`}
}).then(res => {
console.log(res)
return res.json()
}).then(json => {
console.log(json)
})
}
}
my fetch argeuments seems ok but i cant get any data