PHP Class Gajus\Fuss\Request

Afficher le fichier Open project: gajus/fuss

Méthodes publiques

Méthode Description
__construct ( Gajus\Fuss\Session $session, string $method, string $path, array $query = null )
getMethod ( ) : string
getUrl ( ) : string Get URL that will be used to make the request, including the access token and appsecret_proof.
make ( ) : array
setBody ( array $body ) : null

Private Methods

Méthode Description
getAppSecretProof ( ) appsecret_proof is used as an additional layer of authentication when making Graph API calls to proof that the access_token has not been stolen.
isPathVersioned ( ) : boolean True if user provided path explicitly names Graph API endpoint version, e.g. /v2.1/me.
setMethod ( string $method ) : null
setPath ( string $path ) : null
setQuery ( array $query ) : null

Method Details

__construct() public méthode

public __construct ( Gajus\Fuss\Session $session, string $method, string $path, array $query = null )
$session Gajus\Fuss\Session
$method string GET|POST|DELETE
$path string Path relative to the Graph API.
$query array GET parameters.

getMethod() public méthode

public getMethod ( ) : string
Résultat string

getUrl() public méthode

Get URL that will be used to make the request, including the access token and appsecret_proof.
public getUrl ( ) : string
Résultat string

make() public méthode

public make ( ) : array
Résultat array Graph API response.

setBody() public méthode

public setBody ( array $body ) : null
$body array
Résultat null