GiphyAPI constructor

GiphyAPI({
  1. required String apiKey,
  2. String? randomID,
  3. 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,
});