PHP Класс Zendesk\API\Resources\Core\Attachments

Наследование: extends Zendesk\API\Resources\ResourceAbstract, use trait Zendesk\API\Traits\Resource\Delete, use trait Zendesk\API\Traits\Resource\Find
Показать файл Открыть проект

Открытые методы

Метод Описание
deleteUpload ( $token ) : boolean Delete a resource
upload ( array $params ) : stdClass Upload an attachment $params must include: 'file' - an attribute with the absolute local file path on the server 'type' - the MIME type of the file Optional: 'optional_token' - an existing token 'name' - preferred filename

Защищенные методы

Метод Описание
setUpRoutes ( )

Описание методов

deleteUpload() публичный Метод

Delete a resource
public deleteUpload ( $token ) : boolean
$token
Результат boolean

setUpRoutes() защищенный Метод

protected setUpRoutes ( )

upload() публичный Метод

Upload an attachment $params must include: 'file' - an attribute with the absolute local file path on the server 'type' - the MIME type of the file Optional: 'optional_token' - an existing token 'name' - preferred filename
public upload ( array $params ) : stdClass
$params array
Результат stdClass | null