diff --git a/src/twitter/rest/client.cr b/src/twitter/rest/client.cr index 5941e46..4dc3168 100644 --- a/src/twitter/rest/client.cr +++ b/src/twitter/rest/client.cr @@ -35,6 +35,11 @@ module Twitter handle_response(response) end + def delete(path : String, params = {} of String => String) + response = @http_client.delete(path) + handle_response(response) + end + private def handle_response(response : HTTP::Client::Response) case response.status_code when 200..299