Documentation

EasyBlogClientFlickr extends FlickrOauth
in package

Table of Contents

Properties

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

Methods

__construct()  : mixed
construct FlickrOauth object
accessTokenURL()  : mixed
authenticateURL()  : mixed
authorizeURL()  : mixed
buildPhotoObject()  : object
Formats the raw data provided by Flickr and get the correct URL to the Flickr image.
delete()  : mixed
DELETE wrapper for oAuthReqeust.
get()  : mixed
GET wrapper for oAuthRequest.
getAccess()  : mixed
Retrieves the access token from Flickr
getAccessToken()  : mixed
Exchange request token and secret for an access token and secret, to sign API calls.
getAuthorizationURL()  : string
Returns the authorization url.
getAuthorizeURL()  : mixed
Get the authorize URL
getHeader()  : mixed
Get the header info to store.
getPhoto()  : mixed
Retrieves information about a single photo
getPhotos()  : mixed
Retrieves a list of Flickr photos from the user
getRequestToken()  : mixed
Retrieves the request token for Flickr
getVerifier()  : string
Returns the verifier option. Since Facebook does not have oauth_verifier, The only way to validate this is through the 'code' query
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
revokeApp()  : mixed
setAccess()  : mixed
Sets the access token
setCallback()  : mixed
setParams()  : mixed
setRequestToken()  : mixed
Sets the request token
setToken()  : mixed
Retrieves the token object

Properties

$_access_token

public mixed $_access_token = ''

$callback

public mixed $callback = ''

$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'

$param

private mixed $param = ''

Methods

__construct()

construct FlickrOauth object

public __construct() : mixed

accessTokenURL()

public accessTokenURL() : mixed

authenticateURL()

public authenticateURL() : mixed

authorizeURL()

public authorizeURL() : mixed

buildPhotoObject()

Formats the raw data provided by Flickr and get the correct URL to the Flickr image.

public buildPhotoObject(mixed $photoItem) : object
Parameters
$photoItem : mixed
Tags
access

public

Return values
object

A stdClass object with it's own properties.

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()

getAccess()

Retrieves the access token from Flickr

public getAccess(mixed $verifier) : mixed
Parameters
$verifier : mixed
Tags
since
5.0
access

public

@return

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")

getAuthorizationURL()

Returns the authorization url.

public getAuthorizationURL(mixed $token) : string
Parameters
$token : mixed
Return values
string

$url A link to Facebook's login URL.

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

getPhoto()

Retrieves information about a single photo

public getPhoto(mixed $photoId) : mixed
Parameters
$photoId : mixed
Tags
since
5.1
access

public

getPhotos()

Retrieves a list of Flickr photos from the user

public getPhotos([mixed $page = 1 ]) : mixed
Parameters
$page : mixed = 1
Tags
since
5.0
access

public

getRequestToken()

Retrieves the request token for Flickr

public getRequestToken([mixed $callback = null ]) : mixed
Parameters
$callback : mixed = null
Tags
since
5.1
access

public

getVerifier()

Returns the verifier option. Since Facebook does not have oauth_verifier, The only way to validate this is through the 'code' query

public getVerifier() : string
Return values
string

$verifier Any string representation that we can verify it isn't empty.

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

revokeApp()

public revokeApp() : mixed

setAccess()

Sets the access token

public setAccess(mixed $access) : mixed
Parameters
$access : mixed
Tags
since
5.0
access

public

@return

setCallback()

public setCallback(mixed $callback) : mixed
Parameters
$callback : mixed

setParams()

public setParams(mixed $params) : mixed
Parameters
$params : mixed

setRequestToken()

Sets the request token

public setRequestToken(mixed $token, mixed $secret) : mixed
Parameters
$token : mixed
$secret : mixed
Tags
since
5.1
access

public

setToken()

Retrieves the token object

private setToken() : mixed
Tags
since
5.0
access

public

@return

        
On this page

Search results