Questions tagged [giphy-api]

Related to the use of the Giphy API. Consider also the tag [giphy] if your question isn't about the API.

70 questions
4
votes
3 answers

Is it recommended to keep a Giphy API key secret?

I'm using Giphy's API and currently have a development key. I am looking to deploy my site but don't know whether it is a public facing key or a private one, and cannot find an answer online nor after asking them directly.
3
votes
1 answer

displaying a lot of gifs in collectionview

In my app I want to show gifs from giphy. The fetching and everyting is no problem, but I don't know what's the best way to display for example all trending gifs. I have a collectionview which should display all gifs with this code: func…
user2529173
  • 1,892
  • 6
  • 26
  • 40
2
votes
0 answers

Error when fetching Giphy Api using discord.js

[beginner here] I am currently using "@giphy/js-fetch-api" for some reason when executing my command to fetch the gifs, I get back "Uncaught Error: @giphy/js-fetch-api: Error fetching" the code's purpose to allow people to search for random gifs via…
2
votes
1 answer

Having trouble using the ajax call with my giphy api

I am very new to using jQuery and js. What I'm trying to do with the ajax or get method is that I want to type in any keyword(such as maine coon for example), click submit and be able to see a page of maine coon gifs. The api code I have is from…
Iroos
  • 29
  • 3
2
votes
1 answer

How do I let a bot send a GIF via Giphy API correctly?

So, I was trying to make a code that makes the bot sending GIFs, but I totally had no idea that what is the actual solution for the bot to not make errors. Currently hosting my bot on Glitch using hello-express, and using Discord.js to code the…
Raymond Hsu
  • 63
  • 10
2
votes
1 answer

For in loop is showing the img tag instead of the actualy Giphy gif

I'm trying to make a giphy clone and I want to display six of the trending gifs at the moment. However, when I run the code it seems to work fine in the sense of being able to grab the image source from the response data but the actual gif is not…
PhysicsLemur
  • 83
  • 1
  • 1
  • 9
2
votes
1 answer

How API Rate limits works in giphy?

I'm using giphy API for get GIF stickers but I'm kind of confusion with giphy API guide on rate limiting mention over here: https://developers.giphy.com/docs/#response-codes I will get 429(Response Code) when my API key rate limits exceed. I have to…
Pinal Patel
  • 153
  • 14
2
votes
1 answer

Why do I get a HTTP Error 403 when making a request to the Giphy API?

I am using urllib2 to make requests to the Giphy API and I am using the public API key. The exact same code is working fine on Google App Engine, but when I try executing it with Pythonanywhere I get "HTTPError: HTTP Error 403: Forbidden". I already…
jannikko
  • 43
  • 5
1
vote
1 answer

Discord.py Rewrite Giphy Cog Error: Unclosed Connector

I'm trying to build a Giphy cog for my discord.py bot and it's throwing the following error Unclosed client session client_session: Unclosed connector connections:…
1
vote
2 answers

Getting an undefined object before the object is populated

So I'm building just a small web app that takes data from the giphy API and then displays it. Bear with me. This is a long one. export const fetchTrending = async () => { try { const {data:{data}} = await…
HASEEB Ahmed
  • 49
  • 1
  • 2
1
vote
2 answers

How to wait for fetch to complete before rendering page in React.js

In this React component, I'm trying to fetch data from the GIPHY API and render it in another component. The fetch is working correctly, but this.state.gifs.map returns an error because it runs before the fetch is complete and the state is set. I…
1
vote
3 answers

Trying to display a GIF from Giphy API using React hooks

I'm trying to fetch a GIF with the Giphy API and have it display on the page using React hooks. It's fetching an object not the url, so all the page shows is the leaf logo. I've tried setting the state to the GIF url (as shown in code) but it still…
EGarcia
  • 17
  • 4
1
vote
1 answer

Is there a way to delay sending a Discord message after something has successfully loaded?

So, I´ve tried to create a RichEmbed Message which should be executed, right after the User has left the Discord. In this RichEmbed should´ve been a random GIF from giphy, which I´ve created in the getGiphyPic() function using this node module:…
Hiraku
  • 15
  • 4
1
vote
0 answers

GIPHY API key not being set

I'm trying to incorporate the GIPHY API into my project. In my AppDelegate, I set the API Key to the public beta key (just to test it out): func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:…
pozzy
  • 167
  • 1
  • 1
  • 10
1
vote
0 answers

uploading a giff to giphy api in react

I'm trying to upload a giff to the giphy api and I was wondering if anyone had any experince with this and could provide an example. I saw it wanted a parameter file as a string in binary so I'm using 'react-file-base64'. my function in my react…
seattleguy
  • 145
  • 3
  • 11
1
2 3 4 5