PHP 클래스 CloudConvert\Api

Http connections use guzzle http client api and result of request are object from this http wrapper
저자: Josias Montag ([email protected])
파일 보기 프로젝트 열기: cloudconvert/cloudconvert-php

공개 메소드들

메소드 설명
__construct ( string $api_key, Client $http_client = null ) Construct a new wrapper instance
convert ( array $parameters ) : Process Shortcut: Create a new Process and start it
createProcess ( array $parameters ) : Process Create a new Process
delete ( string $path, string $content = null, boolean $is_authenticated = true ) Wrap call to CloudConvert APIs for DELETE requests
get ( string $path, string $content = null, boolean $is_authenticated = true ) Wrap call to CloudConvert APIs for GET requests
getApiKey ( ) : string Get the current API Key
getHttpClient ( ) : Client Return instance of http client
post ( string $path, string $content, boolean $is_authenticated = true ) Wrap call to CloudConvert APIs for POST requests
put ( string $path, string $content, boolean $is_authenticated = true ) Wrap call to CloudConvert APIs for PUT requests

비공개 메소드들

메소드 설명
rawCall ( string $method, string $path, string $content = null, boolean $is_authenticated = true ) : mixed This is the main method of this wrapper. It will sign a given query and return its result.

메소드 상세

__construct() 공개 메소드

Construct a new wrapper instance
public __construct ( string $api_key, Client $http_client = null )
$api_key string Key of your application. You can get your API Key on https://cloudconvert.com/user/profile
$http_client GuzzleHttp\Client Instance of http client

convert() 공개 메소드

Shortcut: Create a new Process and start it
public convert ( array $parameters ) : Process
$parameters array Parameters for starting the Process. See https://cloudconvert.com/apidoc#start
리턴 Process

createProcess() 공개 메소드

Create a new Process
public createProcess ( array $parameters ) : Process
$parameters array Parameters for creating the Process. See https://cloudconvert.com/apidoc#create
리턴 Process

delete() 공개 메소드

Wrap call to CloudConvert APIs for DELETE requests
public delete ( string $path, string $content = null, boolean $is_authenticated = true )
$path string path ask inside api
$content string content to send inside body of request
$is_authenticated boolean if the request use authentication

get() 공개 메소드

Wrap call to CloudConvert APIs for GET requests
public get ( string $path, string $content = null, boolean $is_authenticated = true )
$path string path ask inside api
$content string content to send inside body of request
$is_authenticated boolean if the request use authentication

getApiKey() 공개 메소드

Get the current API Key
public getApiKey ( ) : string
리턴 string

getHttpClient() 공개 메소드

Return instance of http client
public getHttpClient ( ) : Client
리턴 GuzzleHttp\Client

post() 공개 메소드

Wrap call to CloudConvert APIs for POST requests
public post ( string $path, string $content, boolean $is_authenticated = true )
$path string path ask inside api
$content string content to send inside body of request
$is_authenticated boolean if the request use authentication

put() 공개 메소드

Wrap call to CloudConvert APIs for PUT requests
public put ( string $path, string $content, boolean $is_authenticated = true )
$path string path ask inside api
$content string content to send inside body of request
$is_authenticated boolean if the request use authentication