PHP Class Zendesk\API\Resources\Core\Attachments

Inheritance: extends Zendesk\API\Resources\ResourceAbstract, use trait Zendesk\API\Traits\Resource\Delete, use trait Zendesk\API\Traits\Resource\Find
Show file Open project: zendesk/zendesk_api_client_php

Public Methods

Method Description
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

Protected Methods

Method Description
setUpRoutes ( )

Method Details

deleteUpload() public method

Delete a resource
public deleteUpload ( $token ) : boolean
$token
return boolean

setUpRoutes() protected method

protected setUpRoutes ( )

upload() public method

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
return stdClass | null