Méthode | Description | |
---|---|---|
download ( string $url, string $target ) : boolean | Download file from target URL | |
pagedRequest ( string $path, array $options = [] ) : array | Make a request to the Dashbord's internal API | |
request ( string $path, array $arg_options = [] ) : array | Simplified request method for Pantheon API |
Méthode | Description | |
---|---|---|
fillCookieJar ( array $params ) : GuzzleHttp\Cookie\CookieJar | Sets up and fills a cookie jar | |
getBaseUri ( ) : string | Parses the base URI for requests | |
send ( string $uri, string $method, array $arg_params = [] ) : Psr\Http\Message\ResponseInterface | Sends a request to the API | |
userAgent ( ) : string | Gives the user-agent string |
public pagedRequest ( string $path, array $options = [] ) : array | ||
$path | string | API path (URL) |
$options | array | Options for the request [string] method GET is default [mixed] data Native PHP data structure (e.g. int, string array, or simple object) to be sent along with the request. Will be encoded as JSON for you. |
Résultat | array |
public request ( string $path, array $arg_options = [] ) : array | ||
$path | string | API path (URL) |
$arg_options | array | Options for the request [string] method GET is default [mixed] data Native PHP data structure (e.g. int, string array, or simple object) to be sent along with the request. Will be encoded as JSON for you. [boolean] absolute_url True if URL passed is to be treated as absolute |
Résultat | array |