public class Giphy extends Object
| Constructor and Description |
|---|
Giphy(String apiKey)
Constructs a new Giphy object.
|
| Modifier and Type | Method and Description |
|---|---|
SearchFeed |
search(String query,
int offset)
Returns a SearchFeed object.
|
SearchFeed |
search(String query,
int limit,
int offset)
Returns a SearchFeed object.
|
SerachGiphy |
searchByID(String id)
Returns a SerachGiphy object.
|
SearchFeed |
searchSticker(String query,
int offset)
Returns a SearchFeed object.
|
SearchFeed |
searchSticker(String query,
int limit,
int offset)
Returns a SearchFeed object.
|
SerachGiphy |
translate(String query)
Returns a SerachGiphy object.
|
SerachGiphy |
translateSticker(String query)
Returns a SerachGiphy object.
|
SearchFeed |
trend()
Returns a SearchFeed object.
|
SearchFeed |
trendSticker()
Returns a SearchFeed object.
|
public Giphy(String apiKey)
apiKey - The API key.public SearchFeed search(String query, int offset) throws GiphyException
query - The query parameters. Multiple parameters are separated by a
space.offset - The offset.GiphyException - If an error occurs a exception is thrown.public SearchFeed search(String query, int limit, int offset) throws GiphyException
query - The query parameters. Multiple parameters are separated by a
space.limit - The result limit. The maximum is 100.offset - The offset.GiphyException - If an error occurs a exception is thrown.public SerachGiphy searchByID(String id) throws GiphyException
id - The Giphy id.GiphyException - If an error occurs a exception is thrown.public SerachGiphy translate(String query) throws GiphyException
query - The query parameters.GiphyException - If an error occurs a exception is thrown.public SearchFeed trend() throws GiphyException
GiphyException - If an error occurs a exception is thrown.public SearchFeed searchSticker(String query, int offset) throws GiphyException
query - The query parameters. Multiple parameters are separated by a
space.offset - The offset.GiphyException - If an error occurs a exception is thrown.public SearchFeed searchSticker(String query, int limit, int offset) throws GiphyException
query - The query parameters. Multiple parameters are separated by a
space.limit - The result limit. The maximum is 100.offset - The offset.GiphyException - If an error occurs a exception is thrown.public SerachGiphy translateSticker(String query) throws GiphyException
query - The query parameters.GiphyException - If an error occurs a exception is thrown.public SearchFeed trendSticker() throws GiphyException
GiphyException - If an error occurs a exception is thrown.Copyright © 2016 MuK Projects. All rights reserved.