class PlaceOS::Client::APIWrapper::OAuth

Defined in:

placeos/api_wrapper/auths/oauth.cr

Constructors

Instance Method Summary

Instance methods inherited from class PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::OAuthAuthentication)

create(**args) : Model create, search(q : String | Nil = nil, limit : Int = 20, offset : Int = 0, authority_id : String | Nil = nil) search, update(**args) update

Constructor methods inherited from class PlaceOS::Client::APIWrapper::AuthBase(PlaceOS::Client::API::Models::OAuthAuthentication)

new(client : APIWrapper) new

Instance methods inherited from module PlaceOS::Client::APIWrapper::Endpoint::Destroy

destroy(id : String) destroy

Instance methods inherited from module PlaceOS::Client::APIWrapper::Endpoint::Fetch(PlaceOS::Client::API::Models::OAuthAuthentication)

fetch(id : String) fetch

Instance methods inherited from class PlaceOS::Client::APIWrapper::Endpoint

base : String base

Constructor methods inherited from class PlaceOS::Client::APIWrapper::Endpoint

new(client : APIWrapper) new

Macros inherited from class PlaceOS::Client::APIWrapper::Endpoint

delete(path, params = nil, headers = nil, body = nil, as model = nil) delete, get(path, params = nil, headers = nil, body = nil, as model = nil) get, head(path, params = nil, headers = nil, body = nil, as model = nil) head, options(path, params = nil, headers = nil, body = nil, as model = nil) options, patch(path, params = nil, headers = nil, body = nil, as model = nil) patch, post(path, params = nil, headers = nil, body = nil, as model = nil) post, put(path, params = nil, headers = nil, body = nil, as model = nil) put

Constructor Detail

def self.new(client : APIWrapper) #

[View source]

Instance Method Detail

def base : String #
Description copied from class PlaceOS::Client::APIWrapper::Endpoint

The base route for the endpoint


[View source]
def create(name : String, authority_id : String, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil) #

[View source]
def update(id : String, name : String | Nil = nil, authority_id : String | Nil = nil, client_id : String | Nil = nil, client_secret : String | Nil = nil, info_mappings : Hash(String, String) | Nil = nil, site : String | Nil = nil, authorize_url : String | Nil = nil, token_method : String | Nil = nil, auth_scheme : String | Nil = nil, token_url : String | Nil = nil, scope : String | Nil = nil, raw_info_url : String | Nil = nil) #

[View source]