analytics method

Future<bool> analytics(
  1. String url
)

Send analytics to Giphy Analytics

Use this method with the url found in the AnalyticsData object.

More info on Giphy documentation: https://developers.giphy.com/docs/api/endpoint#action-register

WARNING: RandomID must be set before using this method.

Implementation

Future<bool> analytics(
  String url,
) async {
  if (randomID == null) {
    throw ApiException(
      "randomID can not be null",
      null,
    );
  }

  return await GiphyApiManager.getUri(
    url,
    randomID!,
    debugMode: debugMode,
  );
}