public static async Task <JObject> DeleteRequest(FluentClient client, string uri, CancellationToken cancellationToken) { var responseRaw = await client .DeleteAsync(uri) .WithCancellationToken(cancellationToken); var response = JObject.Parse("{\"response\":\"Deletion successful\"}"); return(response); }
public IRequest DeleteAsync(string resource) { var request = _client.DeleteAsync(resource); return(SetRequestDefaults(request)); }