PHP Class Horde_Service_Facebook_Request_Graph, horde

Copyright 2009-2014 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

Protected Properties

Свойство Type Description
$_endpoint Horde_Url API Endpoint to call.
$_raw string Raw POST data.
$_request The HTTP method to use for this request.

Méthodes publiques

Méthode Description
__construct ( Horde_Service_Facebook $facebook, string $method = '', array $params = [], array $options = [] ) Const'r
run ( ) : mixed Run this request and return the data.
upload ( array $options = [] ) Perform a multipart/form-data upload.

Method Details

__construct() public méthode

Const'r
public __construct ( Horde_Service_Facebook $facebook, string $method = '', array $params = [], array $options = [] )
$facebook Horde_Service_Facebook The facebook client.
$method string The API method to call.
$params array Any parameters to send.
$options array Additional options: - request (string) The HTTP method to use. DEFAULT: GET

run() public méthode

Run this request and return the data.
public run ( ) : mixed
Résultat mixed Either raw JSON, or an array of decoded values.

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

Property Details

$_endpoint protected_oe property

API Endpoint to call.
protected Horde_Url $_endpoint
Résultat Horde_Url

$_raw protected_oe property

Raw POST data.
protected string $_raw
Résultat string

$_request protected_oe property

The HTTP method to use for this request.
protected $_request