PHP 클래스 chobie\Jira\Api\Client\CurlClient

상속: implements chobie\Jira\Api\Client\ClientInterface
파일 보기 프로젝트 열기: chobie/jira-api-restclient

공개 메소드들

메소드 설명
__construct ( ) create a traditional php client
sendRequest ( string $method, string $url, array | string $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string Sends request to the API server.

보호된 메소드들

메소드 설명
getCurlValue ( string $file_string, string $name = null ) : CURLFile | string If necessary, replace curl file @ string with a CURLFile object (for PHP 5.5 and up)

메소드 상세

__construct() 공개 메소드

create a traditional php client
public __construct ( )

getCurlValue() 보호된 메소드

If necessary, replace curl file @ string with a CURLFile object (for PHP 5.5 and up)
protected getCurlValue ( string $file_string, string $name = null ) : CURLFile | string
$file_string string The string in @-format as it is used on PHP 5.4 and older.
$name string Name of attachment (optional).
리턴 CURLFile | string

sendRequest() 공개 메소드

Sends request to the API server.
public sendRequest ( string $method, string $url, array | string $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string
$method string Request method.
$url string URL.
$data array | string Request data.
$endpoint string Endpoint.
$credential chobie\Jira\Api\Authentication\AuthenticationInterface Credential.
$is_file boolean This is a file upload request.
$debug boolean Debug this request.
리턴 array | string