Свойство | Type | Description | |
---|---|---|---|
$configuration | JiraRestApi\Configuration\ConfigurationInterface | Jira Rest API Configuration. | |
$curl | resource | CURL instance. | |
$http_response | string | HTTP response code. | |
$json_mapper | JsonMapper | Json Mapper. | |
$log | Monolog instance. |
Méthode | Description | |
---|---|---|
__construct ( JiraRestApi\Configuration\ConfigurationInterface $configuration = null, |
Constructor. | |
exec ( string $context, string $post_data = null, string $custom_request = null ) : string | Execute REST request. | |
getConfiguration ( ) : JiraRestApi\Configuration\ConfigurationInterface | Jira Rest API Configuration. | |
upload ( string $context, array $filePathArray ) : array | File upload. |
Méthode | Description | |
---|---|---|
authorization ( resource $ch ) | Add authorize to curl request. | |
createUrlByContext ( string $context ) : string | Get URL by context. | |
filterNullVariable ( array $haystack ) : array | Serilize only not null field. |
Méthode | Description | |
---|---|---|
convertLogLevel ( $log_level ) : integer | Convert log level. | |
createUploadHandle ( string $url, string $upload_file ) : resource | Create upload handle. |
public __construct ( JiraRestApi\Configuration\ConfigurationInterface $configuration = null, |
||
$configuration | JiraRestApi\Configuration\ConfigurationInterface | |
$logger |
protected authorization ( resource $ch ) | ||
$ch | resource |
protected createUrlByContext ( string $context ) : string | ||
$context | string | |
Résultat | string |
protected filterNullVariable ( array $haystack ) : array | ||
$haystack | array | |
Résultat | array |
public getConfiguration ( ) : JiraRestApi\Configuration\ConfigurationInterface | ||
Résultat | JiraRestApi\Configuration\ConfigurationInterface |
protected ConfigurationInterface,JiraRestApi\Configuration $configuration | ||
Résultat | JiraRestApi\Configuration\ConfigurationInterface |
protected string $http_response | ||
Résultat | string |
protected JsonMapper $json_mapper | ||
Résultat | JsonMapper |