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

How can i get random value from InlineResponse200

So I am trying to get a random value from the data that i get from gyphi api search. I tried this: ` import giphy_client import time import random from pprint import pprint api_instance = giphy_client.DefaultApi() api_key =…
0
votes
1 answer

JavaScript/HTML - Replace GIF instead of adding by button click

I have already seen a couple of the same questions but I can't seem to get it right. I want to generate a new GIF with a button click. I got as far as generating a GIF by a button click. The problem is that when I click the button again it adds…
user2133561
  • 155
  • 1
  • 10
0
votes
1 answer

Why does my Discord bot only return 1 result, regardless of the number provided?

I'm making a command for my Discord bot, that gets GIFs or Stickers from this GIPHY API Endpoint: https://developers.giphy.com/docs/api/endpoint#search I have provided the limit to be equal to the number selected by the user, however, it only…
user15952596
0
votes
1 answer

I'm using the Giphy API and I was wondering how you could get a GIF's Image URL automatically, not manually

Here is the code I have, it works fine, but how could I make it that there is a new variable that is equal to the Image URL of the GIF so that the user can get the Source URL of the GIF? import requests url =…
0
votes
2 answers

I need to create a 'See more pictures' button in JS

I'm creating a gif website, which uses GIPHY API. In this website, I added a "Search bar", where you can type what kind of GIF you are looking for, and the websites returns 12 gifs from GIPHY. This is my search function: async function…
escu.dev
  • 3
  • 2
0
votes
1 answer

TypeError: Cannot read property 'split' of undefined in discord and nodejs

this is the error let token = msg.content.split(' '); ^ TypeError: Cannot read property 'split' of undefined at Client.msg (/app/bot.js:15:27) at Client.emit (events.js:196:13) at MessageCreateAction.handle…
0
votes
1 answer

Giphy API always gives the same gifs (discord.js)

This might be innapropriate, but I am making a discord bot, and in the process I wanted to make a "gif" command. I had chosen the Giphy api as it seemed to be the most simple one out there. But everytime I ask the bot to fetch a trending gif, it…
Zariaa_
  • 116
  • 1
  • 6
0
votes
2 answers

Cant bind imageUrl in Angular

Please help guys! I'm getting datas from https://developers.giphy.com/, and passing them to a modal for viewing, every other data is showing except for imageUrl. (what I'm I doing wrong, why wont the gif show) Check below for my code here is the…
0
votes
1 answer

Error occured when using OnGifSelected to send a gif message

This is for my messaging app, whenever I try to send a gif from this GIPHY UI SDK, I get this error: An unknown error occurred, please check the HTTP result code and inner exception for server response. override fun onGifSelected(media: Media,…
kotalina
  • 7
  • 3
0
votes
1 answer

Giphy Dashboard data using api

I am trying to get GIPHY Dashboard data like : Total GIF/ stickers Upload GIF views When I download/Export the data , the endpoint is: https://giphy.com/api/v2/users/aggregations/?start_dt=2013-02-01&end_dt=2020-07-08&content_type=gif,sticker I need…
0
votes
3 answers

How can I send user input to an API using JS

I want to take an input value from the user and send it to an API. Basically, the API link takes the input in it. http://api.giphy.com/v1/gifs/search?q=funny+cat&api_key=dc6zaTOxFJmzC Here q, 'funny cat', is actually the user input. I want to make…
0
votes
0 answers

Problem with insertings gifs (giphy api) in context script popup

I'm working with chrome extension to use giphy API. Basically user from any website point of view can make a request to giphy to get some gifs if he makes double clicks on some words on those websites. For example, the user clicks on 'car' word in…
Przemo
  • 477
  • 1
  • 7
  • 16
0
votes
2 answers

Giphy not working on Discord bot (javascript)

I was following this tutorial on how to make a discord bot, everything was working fine until 33:32 where he added the giphy stuff i had already installed giphy sdk/api, created an application, but after he made the search statement he said you can…
OishikG
  • 69
  • 1
  • 6
0
votes
1 answer

Why is my Giphy API's POST request returning status 400?

I'm trying to upload a gif from the webcam feed to Giphy through their API and it returns status 400 - "Please supply a file upload or a 'source_image_url'". My function does this: upload = new FormData(); upload.append("file", gif,…
Khronos
  • 1
  • 1
0
votes
2 answers

Cannot get gifs with giphy using discord.js, making a bot

if (command === 'fetar') { var deadline = new Date("apr 19, 2020 00:00:00").getTime(); var currentDate = new Date().getTime(); var remainingTime = deadline - currentDate; var days = Math.floor(remainingTime / (1000 * 60 * 60 * 24));…