Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gifs_random_get broken #8

Open
dblock opened this issue Jun 11, 2022 · 0 comments
Open

gifs_random_get broken #8

dblock opened this issue Jun 11, 2022 · 0 comments

Comments

@dblock
Copy link

dblock commented Jun 11, 2022

The gifs_random_get API used to return image_url and others. Now it just returns url.

require 'GiphyClient'
GiphyClient::DefaultApi.new.gifs_random_get('api_key', tag: 'x', rating: 'G').data
#<GiphyClient::InlineResponse2002:0x00007ff33e997af8 @data=#<GiphyClient::RandomGif:0x00007ff33e99e358 @type="gif", @id="l0IyogeaNBswBTFlK", @url="https://giphy.com/gifs/nba-basketball-l0IyogeaNBswBTFlK">, @meta=#<GiphyClient::MetaContent:0x00007ff33e9a46e0 @msg="OK", @status=200, @response_id="2122438e0a240bc267f6764600286f05475a35db">>
 => #<GiphyClient::RandomGif:0x00007ff33e99e358 @type="gif", @id="l0IyogeaNBswBTFlK", @url="https://giphy.com/gifs/nba-basketball-l0IyogeaNBswBTFlK">

Note that other things seem to work (.e.g. GiphyClient::DefaultApi.new.gifs_search_get('api_key', 'cheeseburgers').data.first.images.fixed_width.url), so it looks like a server-side regresson?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant