postAcceptSharedAnalytic method
Implementation
@override
Future<bool> postAcceptSharedAnalytic(String analyticId, String vcode) async {
try {
final String body =
json.encode({'analytic_id': analyticId, 'vcode': vcode});
return await dio
.post('${ApiEndpoints.SHARE}/2', data: body)
.then((value) => true);
} on Exception catch (e) {
throw HttpHelper.decodeErrorResponse(e,
tag: TAG,
logger: logger,
defaultErrorMessage: "Failed to accept this widget",
meta: {
'widget': analyticId,
'vcode': vcode,
'method': 'postAcceptSharedAnalytic'
});
}
}