forceDropsRepair static method

Future<BooleanResponse> forceDropsRepair(
  1. HttpClient client
)

Twitch Drops self-repair function - scans twitch for drops not marked as fulfilled and resyncs them.

Implementation

static Future<BooleanResponse> forceDropsRepair (
    HttpClient client,
) async {
    final Map<String, dynamic> params = Map<String, dynamic>();
    final HttpClientConfig config = HttpClientConfig('POST', '/Tokens/Partner/ForceDropsRepair/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return BooleanResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}