|
| __construct ($hostname, $port, $use_https=FALSE) |
|
| getVersion () |
|
| authenticate ($username, $password, &$message= '') |
|
| getURL () |
|
| setAPIKey ($api_key) |
|
| getAPIKey () |
|
| __construct () |
|
| httpGET ($URL, $curl_options=array()) |
|
| httpPOST ($URL, $input=NULL) |
|
| httpPUT ($URL, $input=NULL) |
|
| httpPATCH ($URL, $input=NULL) |
|
| getRemoteFile ($URL, $file_name) |
|
| uploadFile ($URL, $data, $files) |
|
| httpDELETE ($URL, $input=NULL) |
|
| auth ($URL, $username, $password) |
|
| getError () |
|
| getErrorMessage () |
|
| getErrorType () |
|
| setError ($type, $message) |
|
| expectArray ($response) |
|
GalaxyInstance::__construct |
( |
|
$hostname, |
|
|
|
$port, |
|
|
|
$use_https = FALSE |
|
) |
| |
The GalaxyInstance constructor.
- Parameters
-
$hostname | The hostname where the Galaxy server is located. |
$port | The port on which the remote Galaxy instance is runinng. |
$use_https | Should be set to TRUE if the remote server uses HTTPS. Defaults to TRUE. |
- Returns
- An instance of a GalaxyInstance object.
GalaxyInstance::authenticate |
( |
|
$username, |
|
|
|
$password, |
|
|
& |
$message = '' |
|
) |
| |
Authenticates a user with the remote Galaxy instance.
Corresponds to the Galaxy API method and path: GET /api/authenticate/baseauth
- Parameters
-
$username | The username of the user. |
$password | The password for the user. |
$message | If authentication fails then this variable will be set to contain the error message. |
- Returns
- TRUE if authentication was successful, FALSE otherwise.
GalaxyInstance::getAPIKey |
( |
| ) |
|
Acquires the API key
- Returns
- string The API key that authorizes a user to certain actions.
GalaxyInstance::getURL |
( |
| ) |
|
Returns the URL for the remote Galaxy server.
The URL returned will include the protocol (HTTP, HTTPS), the hostname and the port.
- Returns
- string The URL for the remote Galaxy instance.
GalaxyInstance::getVersion |
( |
| ) |
|
Retrieves the version of the Galaxy API.
- Returns
GalaxyInstance::setAPIKey |
( |
|
$api_key | ) |
|
Sets the API Key for this Galaxy instance.
- Parameters
-
$api_key | The API key of the Galaxy user. |
The API Key for the user connection.
The hostname where the Galaxy server is located.
The port on which the remote Galaxy instance is runinng.
GalaxyInstance::$use_https |
|
protected |
Should be set to TRUE if the remote server uses HTTPS.
The documentation for this class was generated from the following file: