class Facebook::Client

Included Modules

Defined in:

facebook/client.cr

Constructors

Instance Method Summary

Instance methods inherited from module Facebook::Strategy

execute(req : Request) : Response
execute(*args, **opts)
execute
, strategy : Strategy::Base strategy, strategy=(v : Strategy::Base)
strategy=(v : Nil)
strategy=
, strategy? : Strategy::Base | Nil strategy?

Instance methods inherited from module Facebook::Callback

after_execute
after_execute(&callback : Request, Response | Nil -> )
after_execute
, before_execute
before_execute(&callback : Request -> )
before_execute
, before_validate
before_validate(&callback : Request -> )
before_validate

Constructor Detail

def self.new(api = nil, auth = nil, host = nil, logger : Logger | Nil = nil) #

[View source]

Instance Method Detail

def api : Api #

def api=(v : Api) : Api #

def api=(v : Nil) #

nil assignments are always ignored


def api=(path : String) #

[View source]
def api? : Api | Nil #

def auth : Auth #

def auth=(v : Auth) : Auth #

def auth=(v : Nil) #

nil assignments are always ignored


def auth=(access_token : String) #

[View source]
def auth? : Auth | Nil #

def authorized_url!(url : String) #

[View source]
def dryrun! : Client #

[View source]
def get(path : String, data = {} of String => String) : Response #

See ./api/*.cr #####################################################################

HTTP methods


[View source]
def host : Host #

def host=(v : Host) : Host #

def host=(v : Nil) #

nil assignments are always ignored


def host=(host : String) #

[View source]
def host? : Host | Nil #

def libcurl! : Client #

[View source]
def logger : Logger #

def logger=(v : Logger) #

[View source]
def logger=(v : Nil) #

nil assignments are always ignored


def logger? : Logger | Nil #

def post(path : String, form = {} of String => String) : Response #

[View source]
def request(api : Api | Nil = nil, auth : Auth | Nil = nil, host : Host | Nil = nil) : Request #

[View source]
def request(req : Request) : Request #

[View source]
def strategy=(v : Strategy::Base) : Client #
Description copied from module Facebook::Strategy

overrides to bind logger


[View source]
def validate(req : Request) #

[View source]