class Google::Client
- Google::Client
- Reference
- Object
Defined in:
calendar.crclient.cr
drive.cr
people.cr
tasks.cr
Constructors
Instance Method Summary
- #calendar
- #client_id : String
- #client_secret : String
- #drive
- #get(path : String, token : String, headers = HTTP::Headers {"Authorization" => "Bearer #{token}"}, &)
- #get_access_token(code : String)
- #oauth2_endpoint(scope : String, access_type : AccessType | Nil = nil, prompt : Prompt | Nil = nil) : URI
- #people
- #post(path : String, token : String, body, headers = HTTP::Headers {"Authorization" => "Bearer #{token}"}, &)
- #redirect_uri : URI
- #refresh_access_token(refresh_token : String)
- #tasks
Constructor Detail
def self.new(client_id : String, client_secret : String, redirect_uri : URI, default_headers : HTTP::Headers = DEFAULT_HEADERS.dup)
#
Instance Method Detail
def get(path : String, token : String, headers = HTTP::Headers {"Authorization" => "Bearer #{token}"}, &)
#
def oauth2_endpoint(scope : String, access_type : AccessType | Nil = nil, prompt : Prompt | Nil = nil) : URI
#
def post(path : String, token : String, body, headers = HTTP::Headers {"Authorization" => "Bearer #{token}"}, &)
#