Questions tagged [giphy]

Giphy, an online repository of animated gifs with the option to make your own. For giphy API questions, use the tag [giphy-api].

73 questions
0
votes
1 answer

Invalid-Content-Type error when trying to send GIF through Twilio SMS

I have this bit of code to send an MMS message with a GIF. (using Ruby with Sinatra, hosted on Heroku). client.messages.create( to: to, from: phone, body: message, media_url: 'http://media.giphy.com/media/zl170rmVMCpEY/giphy.gif' ) It…
user5744666
0
votes
1 answer

passing search query from main activity to fragment

I am building an android app for gif search using GIPHYAPI, which contains multiple fragments and a search menu. whenever I am trying to pass query it gives error like "Attempt to read from null array". Following is my mainactivity.java public…
0
votes
3 answers

How do I save a GIF from a url?

I'm using Giphypop to retrieve the url of a gif. I saved this url in a variable for convenience, but now I need to somehow save the gif to file. But I'm getting an error. I think this can be reopened. My problem is Windows not opening the gif file…
whatwhatwhat
  • 1,068
  • 2
  • 19
  • 38
0
votes
1 answer

How can I return sentiment value from Tweepy class and Pass it to Giphy API

I'm using the tweepy API and want to return the data found, pass it to the Giphy API function and use it as a query for the giphy search. class TweetStreamListener(StreamListener): # on success def on_data(self, data): # decode json …
godspeed
  • 1
  • 1
0
votes
1 answer

Invoke giphy search in slack nestor bot reply

The giphy plugin is in use in a Slack channel, would it be possible for the nestor bot reply to have a giphy search invoked by something like msg.reply('/giphy ' + text, done);
Dilemmat_Dag
  • 237
  • 1
  • 3
  • 13
0
votes
1 answer

Show a new GIF on each page visit or page reload

I'm using the GIPHY api to display an image based on a query. Below is the code I'm currently using to pull the image. It works but the problem right now is that each time you visit the website it shows the same GIF every visit until the query…
Aaron
  • 61
  • 8
0
votes
1 answer

How to display images from Giphy in javascript

The code bellow is pulling data from Giphy. I am trying to let the user search a term and display the images on the page. I currently have one image displaying and it is creating a cookie trail of buttons that allow the user to go back and click…
Jason Martocci
  • 109
  • 1
  • 3
  • 12
0
votes
2 answers

How does giphy enable playback of animated gifs on facebook

I'm fairly certain that I know how magnets work, but I am intrigued as to how http://giphy.com/ managed to get animated gif's to work on Facebook. Does anyone have a clue as to how this is done? Is it mime-type substitution or some undocumented…
Paul Gregoire
  • 9,350
  • 11
  • 56
  • 128
0
votes
1 answer

Reading the JSON response from the Giphy

I am trying to read the results from a $.getJSON() request. The results are here... http://api.giphy.com/v1/gifs/search?q=funny+cat&api_key=dc6zaTOxFJmzC&limit=1&offset=0 I am trying to get the value of bitly_gif_url using $.each(data,…
AttikAttak
  • 767
  • 2
  • 12
  • 20
-1
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
  • 19
  • 3
-1
votes
1 answer

String indices must be integers Giphy

I'm trying to get url from object data, but it isn't right. This program has stopped on line 4. Code is under. My code: import requests gifs = str(requests.get("https://api.giphy.com/v1/gifs/random? api_key=APIKEY")) dump =…
-2
votes
1 answer

I can not find the error discord.js giphy/hug command

const GphApiClient = require("giphy-js-sdk-core"); var giphy = GphApiClient ; exports.run = (bot, message, args, client) => { giphy.search("gifs", { q: "fail" }) .then(response => { var totalResponses = response.data.length; var…
Autumn
  • 1
  • 1
-3
votes
1 answer

Show PHP page as an image content-type like Giphy.com images?

It is very simple to show a PHP page like an image via - header('Content-Type: image/gif') but here is main thing that I want to implement:- How can I add meta tags and a link on that page like -…
Satinder Singh
  • 29
  • 1
  • 1
  • 10
1 2 3 4
5