Пример #1
0
        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);
        }
Пример #2
0
        public IRequest DeleteAsync(string resource)
        {
            var request = _client.DeleteAsync(resource);

            return(SetRequestDefaults(request));
        }