프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string |
protected filterNullVariable ( array $haystack ) : array | ||
$haystack | array | |
리턴 | array |
public getConfiguration ( ) : JiraRestApi\Configuration\ConfigurationInterface | ||
리턴 | JiraRestApi\Configuration\ConfigurationInterface |
protected ConfigurationInterface,JiraRestApi\Configuration $configuration | ||
리턴 | JiraRestApi\Configuration\ConfigurationInterface |