getting that error when i try to do a pokemon name search
Good to hear its working, Do ask more questions if unsure!
ok i got it figured out i did have issues with the URL i was trying to do to much at the start thanks and sorry for the inconvenience
could i do think on postman? and if so what url do i need ?
but its telling me i have an invaild key
well i dont know what url im suppouse to actually use to be honest there wasnt clear instruction on that
That looks like a problem with the way you are calling the API, do you have similar issues if you call the API directly on pogoapi.net ?
const uKey = document.querySelector('.key'); const pSub = document.querySelector(".uPSub"); pSub.addEventListener('click', function(){ console.log('i was clicked') // const URL = `https://pokemon-go1.p.rapidapi.com//api/v1/${playerPokemon.value}.json` // fetch(URL) // .then((res) => res.json()) // .then((json) =>{ // console.log(json) // }) fetch(` https://pokemon-go1.p.rapidapi.com/api/v1/${playerPokemon.value}.jsonrapidapi-key=${uKey.value}`) .then(response => { console.log(response); }) .catch(err => { console.error(err); }) console.log(playerPokemon.value) console.log(uKey.value) })```
im not seeing your comments
Could you give me the details of what API you are calling and how you are calling it please?
{“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}
Únase a la conversación, añada un comentario a continuación:
Good to hear its working, Do ask more questions if unsure!
ok i got it figured out i did have issues with the URL i was trying to do to much at the start thanks and sorry for the inconvenience
could i do think on postman? and if so what url do i need ?
but its telling me i have an invaild key
well i dont know what url im suppouse to actually use to be honest there wasnt clear instruction on that
That looks like a problem with the way you are calling the API, do you have similar issues if you call the API directly on pogoapi.net ?
im not seeing your comments
Could you give me the details of what API you are calling and how you are calling it please?
{“message”:“Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info.”}