Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
@@ -0,0 +1,30 @@
require 'dropbox_api'
# These classes add toking revoking features to dropbox_api gem. They should be eventually sent there.
module DropboxApi::Metadata
class Revoke < Base
def initialize(_response_data)
# response_data is empty
end
end
end
module DropboxApi::Endpoints
module Auth
module Token
class Revoke < DropboxApi::Endpoints::Rpc
Method = :post
Path = "/2/auth/token/revoke".freeze
ResultType = DropboxApi::Metadata::Revoke
ErrorType = DropboxApi::Errors::BasicError
# Revoke token
#
# @return [Revoke] Empty response
add_endpoint :revoke do
perform_request nil
end
end
end
end
end