Skip to content

Commit

Permalink
Add a comment about the Giphy public beta API key
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Nov 30, 2020
1 parent b1762cf commit c90b6ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/irccloud/android/data/collection/ImageList.java
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ public GiphyTask(String original_url, OnImageInfoListener listener, String fallb
protected JSONObject doInBackground(String... params) {
try {
HashMap<String, String> headers = new HashMap<>();
//Request metadata using the Giphy public beta API key from https://giphy.api-docs.io/1.0/welcome/access-and-api-keys
JSONObject o = NetworkConnection.getInstance().fetchJSON("https://api.giphy.com/v1/gifs/" + params[0] + "?api_key=dc6zaTOxFJmzC", headers);
if (o.has("data") && o.getJSONObject("data").has("images")) {
return o.getJSONObject("data").getJSONObject("images").getJSONObject("original");
Expand Down

0 comments on commit c90b6ea

Please sign in to comment.