getSubscribeTopcis method

Future<SubscribedTopcis?> getSubscribeTopcis(
  1. String fcmToken
)

Implementation

Future<SubscribedTopcis?> getSubscribeTopcis(String fcmToken) async {
  final token = await _getOAuthToken();
  final http.Response response = await http.get(
    Uri.parse("https://iid.googleapis.com/iid/info/$fcmToken?details=true"),
    headers: {
      "Authorization": "Bearer $token",
      "Content-Type": "application/json",
      "access_token_auth": "true"
    },
  );
  return SubscribedTopcis.fromJson(jsonDecode(response.body));
}