Properties

$httpCode

$httpCode : integer

Type

integer

$response

$response : string

Type

string

$capabilities

$capabilities : array<mixed,string>

Type

array<mixed,string>

Methods

__construct()

__construct(integer  $httpCode,   $response) 

Parameters

integer $httpCode
$response

isSuccess()

isSuccess() 

getErrorCode()

getErrorCode() : null|integer

Returns

null|integer

getErrorMessage()

getErrorMessage() : string

Returns

string

getRawResponse()

getRawResponse() : string

Returns

string

getCapabilities()

getCapabilities() : array<mixed,string>

Returns

array<mixed,string>

canText()

canText() : boolean

the threema id can receive text

Returns

boolean

canImage()

canImage() : boolean

the threema id can receive images

Returns

boolean

canVideo()

canVideo() : boolean

the threema id can receive videos

Returns

boolean

canAudio()

canAudio() : boolean

the threema id can receive files

Returns

boolean

canFile()

canFile() : boolean

the threema id can receive files

Returns

boolean

getErrorMessageByErrorCode()

getErrorMessageByErrorCode(integer  $httpCode) : string

Parameters

integer $httpCode

Returns

string

processResponse()

processResponse(string  $response) 

Parameters

string $response

can()

can(  $key) 

Parameters

$key