class Google::Client

Defined in:

calendar.cr
client.cr
drive.cr
people.cr
tasks.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client_id : String, client_secret : String, redirect_uri : URI, default_headers : HTTP::Headers = DEFAULT_HEADERS.dup) #

[View source]

Instance Method Detail

def calendar #

[View source]
def client_id : String #

[View source]
def client_secret : String #

[View source]
def drive #

[View source]
def get(path : String, token : String, headers = HTTP::Headers {"Authorization" => "Bearer #{token}"}, &) #

[View source]
def get_access_token(code : String) #

[View source]
def oauth2_endpoint(scope : String, access_type : AccessType | Nil = nil, prompt : Prompt | Nil = nil) : URI #

[View source]
def people #

[View source]
def post(path : String, token : String, body, headers = HTTP::Headers {"Authorization" => "Bearer #{token}"}, &) #

[View source]
def redirect_uri : URI #

[View source]
def refresh_access_token(refresh_token : String) #

[View source]
def tasks #

[View source]