Please I am trying to use the giphy api endpoint to search for a gif by ID but it always gives me 401 error but I had previously used the api key to search for gifs before and it worked. Please any help will be appreciated
this is what I originally tried,
getASingleGif(){
return this.http.get(`http://api.giphy.com/v1/gifs/xT4uQulxzV39haRFjG&api_key=deokzgUjxm6QHQdp3H3aca1LSZcCpucc`)
}
then I tried
getoneSingleGif(){
const headers = new HttpHeaders();
headers.set('api_key','deokzgUjxm6QHQdp3H3aca1LSZcCpucc')
return this.http.get(`http://api.giphy.com/v1/gifs/xT4uQulxzV39haRFjG`, {headers:headers})
}
please note that 'xT4uQulxzV39haRFjG' is the id of the gif I want to find