Documentation

FlickrOauth
in package

Table of Contents

Properties

$connecttimeout  : mixed
$decode_json  : mixed
$format  : mixed
$host  : mixed
$http_code  : mixed
$http_info  : mixed
$ssl_verifypeer  : mixed
$timeout  : mixed
$url  : mixed
$useragent  : mixed

Methods

__construct()  : mixed
construct FlickrOauth object
accessTokenURL()  : mixed
authenticateURL()  : mixed
authorizeURL()  : mixed
delete()  : mixed
DELETE wrapper for oAuthReqeust.
get()  : mixed
GET wrapper for oAuthRequest.
getAccessToken()  : mixed
Exchange request token and secret for an access token and secret, to sign API calls.
getAuthorizeURL()  : mixed
Get the authorize URL
getHeader()  : mixed
Get the header info to store.
getRequestToken()  : mixed
Get a request_token from Twitter
getXAuthToken()  : mixed
One time exchange of username and password for access token and secret.
http()  : API
Make an HTTP request
lastAPICall()  : mixed
lastStatusCode()  : mixed
Debug helpers
oAuthRequest()  : mixed
Format and sign an OAuth / API request
post()  : mixed
POST wrapper for oAuthRequest.
requestTokenURL()  : mixed

Properties

$connecttimeout

public mixed $connecttimeout = 30

$decode_json

public mixed $decode_json = \TRUE

$host

public mixed $host = "https://api.flickr.com/services/rest"

$ssl_verifypeer

public mixed $ssl_verifypeer = \FALSE

$useragent

public mixed $useragent = 'EasyBlog v5.0'

Methods

__construct()

construct FlickrOauth object

public __construct(mixed $consumer_key, mixed $consumer_secret[, mixed $oauth_token = NULL ][, mixed $oauth_token_secret = NULL ]) : mixed
Parameters
$consumer_key : mixed
$consumer_secret : mixed
$oauth_token : mixed = NULL
$oauth_token_secret : mixed = NULL

accessTokenURL()

public accessTokenURL() : mixed

authenticateURL()

public authenticateURL() : mixed

authorizeURL()

public authorizeURL() : mixed

delete()

DELETE wrapper for oAuthReqeust.

public delete(mixed $url[, mixed $parameters = array() ]) : mixed
Parameters
$url : mixed
$parameters : mixed = array()

get()

GET wrapper for oAuthRequest.

public get([mixed $parameters = array() ]) : mixed
Parameters
$parameters : mixed = array()

getAccessToken()

Exchange request token and secret for an access token and secret, to sign API calls.

public getAccessToken([mixed $oauth_verifier = FALSE ]) : mixed
Parameters
$oauth_verifier : mixed = FALSE
Tags
returns

array("oauth_token" => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham")

getAuthorizeURL()

Get the authorize URL

public getAuthorizeURL(mixed $token[, mixed $signIn = true ]) : mixed
Parameters
$token : mixed
$signIn : mixed = true
Tags
returns

a string

getHeader()

Get the header info to store.

public getHeader(mixed $ch, mixed $header) : mixed
Parameters
$ch : mixed
$header : mixed

getRequestToken()

Get a request_token from Twitter

public getRequestToken([mixed $oauth_callback = NULL ]) : mixed
Parameters
$oauth_callback : mixed = NULL
Tags
returns

a key/value array containing oauth_token and oauth_token_secret

getXAuthToken()

One time exchange of username and password for access token and secret.

public getXAuthToken(mixed $username, mixed $password) : mixed
Parameters
$username : mixed
$password : mixed
Tags
returns

array("oauth_token" => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham", "x_auth_expires" => "0")

http()

Make an HTTP request

public http(mixed $url, mixed $method[, mixed $postfields = NULL ]) : API
Parameters
$url : mixed
$method : mixed
$postfields : mixed = NULL
Return values
API

results

lastAPICall()

public lastAPICall() : mixed

lastStatusCode()

Debug helpers

public lastStatusCode() : mixed

oAuthRequest()

Format and sign an OAuth / API request

public oAuthRequest(mixed $url, mixed $method, mixed $parameters) : mixed
Parameters
$url : mixed
$method : mixed
$parameters : mixed

post()

POST wrapper for oAuthRequest.

public post(mixed $url[, mixed $parameters = array() ]) : mixed
Parameters
$url : mixed
$parameters : mixed = array()

requestTokenURL()

public requestTokenURL() : mixed

        
On this page

Search results