PHP Class Horde_Service_Facebook_Request_Rest, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Inheritance: extends Horde_Service_Facebook_Request_Base
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode Description
run ( ) : array Run this request and return the data.
upload ( array $options = [] ) Perform a multipart/form-data upload.

Méthodes protégées

Méthode Description
_addStandardParams ( array &$params ) : void Adds standard facebook api parameters to $params
_convertToCsv ( array &$params ) : string Helper function to convert array to CSV string
_createPostString ( array $params ) : string Create a string suitable for sending as POST data.
_finalizeParams ( array &$params ) : void Finalize, sanity check, standardze and sign the method parameters, $params
_postRequest ( string $method, array &$params ) : string Send a POST request

Method Details

_addStandardParams() protected méthode

Adds standard facebook api parameters to $params
protected _addStandardParams ( array &$params ) : void
$params array Method parameters
Résultat void

_convertToCsv() protected méthode

Helper function to convert array to CSV string
protected _convertToCsv ( array &$params ) : string
$params array
Résultat string

_createPostString() protected méthode

TODO: Figure out why using http_build_query doesn't work here.
protected _createPostString ( array $params ) : string
$params array The parameters array
Résultat string The POST string

_finalizeParams() protected méthode

Finalize, sanity check, standardze and sign the method parameters, $params
protected _finalizeParams ( array &$params ) : void
$params array Method parameters
Résultat void

_postRequest() protected méthode

Send a POST request
protected _postRequest ( string $method, array &$params ) : string
$method string The method to call.
$params array The method parameters.
Résultat string The request results

run() public méthode

Run this request and return the data.
public run ( ) : array
Résultat array The results of the request.

upload() public méthode

Perform a multipart/form-data upload.
public upload ( array $options = [] )
$options array An options array: - params: (array) Form parameters to pass - file: (string) Local path to the file