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.

75 questions
0
votes
1 answer

'InlineResponse2002' object is not subscriptable | How do I manipulate the API response?

Code: import time import giphy_client from giphy_client.rest import ApiException from pprint import pprint def giphyapi(): api_instance = giphy_client.DefaultApi() api_key = '################################' tag = 'test' rating =…
zin
  • 11
  • 1
0
votes
1 answer

How to get unlimited scroll in giphy api using jQuery & PHP?

I am looking for GIPHY scroll exactly like how FaceBook allows in create post. Currently scrolling down to bottom only displays a total of 25 GIFs. That is ok based on GIPHY API limits, however, it should continue to scroll but it does not. Below is…
Nirali Biniwale
  • 627
  • 5
  • 16
0
votes
0 answers

How to use JS to get multiple Giphy canvases to show up

https://codepen.io/amoslosky/pen/XWJjjML var api="http://api.giphy.com/v1/gifs/search?"; //my API key// var apiKey="api_key=MY_API_KEY&q="; //rest of code linked above!// I believe the error is in my js because I really don't understand js that…
0
votes
1 answer

GIPHY API returns the same results everytime

I have this problem that the GIPHY API always returns the same results. And I'm quite sure this is not because I somehow store the previous result and post it again and again. For example, I type in 'dog' and ask for 5 results .. I get 5 dog gifs,…
Harleston
  • 31
  • 5
0
votes
1 answer

Unable to show Giphy GIF in Discord chat using robot

I am using Javascript for my Discord bot to make a call to the Giphy Random API Endpoint. But the problem is when I try to get the bot to show the gif in Discord chat, it doesn't show anything. It's just a blank, it doesn't even show the gif URL. I…
Jessica
  • 1,083
  • 2
  • 12
  • 27
0
votes
1 answer

How do I fix "Declaration or statement expected. ts(1128)" in Discord.js?

I just started coding a Discord bot, and I'm having a problem with coding with Giphy API. I don't know if the entire code is wrong, but anyways I'm confused with it. How do I fix the problem? The first If-Then statement doesn't give out any errors,…
Raymond
  • 51
  • 1
  • 2
  • 16
0
votes
1 answer

Generating gifs based on a user input

I would like to generate gifs based on a user input. I can generate a single gif using the following code: ` def getGif(request): import time import giphy_client from giphy_client.rest import ApiException from pprint import pprint …
JBull
  • 43
  • 1
  • 8
0
votes
1 answer

HTTPS error on deployed React project

I was trying to host my React project on GH Pages. The deploy worked fine but when I try to search for gifs I get the following error http_browser.js:47 Mixed Content: The page at 'https://pimmesz.github.io/react-giphy/' was loaded over HTTPS, but…
Pimmesz
  • 335
  • 2
  • 8
  • 29
0
votes
2 answers

Uploading .mp4 via HTTPS

I'm trying to upload an .mp4 file to Giphy.com's API. It says to send the file over as 'Binary' and I think I'm confused as what exactly they mean by that. Here's the docs if you scroll to the bottom at "Upload Endpoint".…
aweyeahdawg
  • 886
  • 9
  • 19
0
votes
1 answer

'addEventListener' of undefined

I am trying to make it so that when the user clicks one of the 30 teams, the team that is clicked is queried with the Giphy API. The giphy API key used is the public API key. // all 30 NBA Teams // var predefinedButtons = [ "Atlanta Hawks", …
pnoonan32
  • 1
  • 1
0
votes
0 answers

Write specific API data to JSON file

I want to be able to only save specific data from the output of the API... function getGiph() { giphy.search({ q: 'pratt', }, function (err, res) { var gif = res.data; for (var i = 0; i < gif.length; i++) { …
Brad Rappa
  • 11
  • 1
0
votes
0 answers

jQuery and Giphy - Set Background Image after downloading

I am randomly getting gifs from GIPHY and want to set them as the background image of my body. On click, a new random gif should be displayed. I've got this part working however, I want to wait until the whole gif is downloaded until setting the…
0
votes
1 answer

Javascript state change reverting

I have a simple jQuery app to display images from Giphy based on an ajax call, and toggle animate/stop them on mouseclick by toggling the src URL and data-state attributes. I'm also displaying a different set of images based on user input. I have…
geochanto
  • 972
  • 2
  • 13
  • 45
0
votes
2 answers

Make gifs appear on a button click

I am trying to make a page that has an array of "topics". Each topic has a button, and when pressed, gifs about the topic appear on the page. The user can also enter their own topic to create a button and get more gifs. Im using the giphy API. I…
J.Whittington
  • 47
  • 1
  • 6
0
votes
2 answers

Need onclick to toggle between image and gif from giphy api call

::UPDATED CODE:: I have dynamically generated buttons from an array. When a button is clicked, 10 still images of gifs append to the page from an API call. When clicking on one of the dynamically generated still images, I need the animated gif to…
Whit W
  • 74
  • 10