GiphyAPI constructor
GiphyAPI(
{ - required String apiKey,
- String? randomID,
- bool debugMode = kDebugMode,
})
Implementation
GiphyAPI({
/// Giphy API Key
///
/// You can get an API key by creating an app on the Giphy Developers website.
/// More info on Giphy documentation: https://developers.giphy.com/docs/api#quick-start-guide
required this.apiKey,
/// Random ID is used to track user actions
///
/// More info on Giphy documentation: https://developers.giphy.com/docs/api/endpoint#random-id
/// WARNING: RandomID must be set before using the analytics method.
this.randomID,
/// Set to true to enable debug mode
///
/// Default is kDebugMode
///
/// If true, the API will log all requests and responses
this.debugMode = kDebugMode,
});