PHP Sigfox Client

ContractInfosId

Table of Contents

bulkRestart()  : AsyncResponse<ContractInfosIdBulkRestartResponse, ActionJob>
Create an async job to restart the devices associated to a contract.
devices()  : PaginateResponse<Device, ContractInfosIdDevicesResponse>
Retrieve a list of devices according to visibility permissions and request filters.
get()  : ContractInfo
Retrieve information about a given contract.

Methods

bulkRestart()

Create an async job to restart the devices associated to a contract.

public bulkRestart() : AsyncResponse<ContractInfosIdBulkRestartResponse, ActionJob>
Tags
throws
SerializeException

If request object failed to serialize to a JSON serializable type.

throws
UnexpectedResponseException

If server returned an unexpected status code.

throws
ResponseException

If server returned any expected HTTP error

throws
ValidationException

If request could not be validated according to pre validation rules.

throws
BadRequestException

If server returned a HTTP 400 error.

throws
UnauthorizedException

If server returned a HTTP 401 error.

throws
ForbiddenException

If server returned a HTTP 403 error.

throws
NotFoundException

If server returned a HTTP 404 error.

throws
InternalServerException

If server returned a HTTP 500 error.

throws
DeserializeException

If failed to deserialize response body as a response object.

Return values
AsyncResponse<ContractInfosIdBulkRestartResponse, ActionJob>

devices()

Retrieve a list of devices according to visibility permissions and request filters.

public devices([ContractInfosIdDevices|array<string|int, mixed>|null $request = null ]) : PaginateResponse<Device, ContractInfosIdDevicesResponse>
Parameters
$request : ContractInfosIdDevices|array<string|int, mixed>|null = null

The query and body parameters to pass

Tags
throws
SerializeException

If request object failed to serialize to a JSON serializable type.

throws
UnexpectedResponseException

If server returned an unexpected status code.

throws
ResponseException

If server returned any expected HTTP error

throws
ValidationException

If request could not be validated according to pre validation rules.

throws
BadRequestException

If server returned a HTTP 400 error.

throws
UnauthorizedException

If server returned a HTTP 401 error.

throws
ForbiddenException

If server returned a HTTP 403 error.

throws
NotFoundException

If server returned a HTTP 404 error.

throws
MethodNotAllowedException

If server returned a HTTP 405 error.

throws
InternalServerException

If server returned a HTTP 500 error.

throws
DeserializeException

If failed to deserialize response body as a response object.

Return values
PaginateResponse<Device, ContractInfosIdDevicesResponse>

First generic parameter is the item type and the second type is the original response type.

get()

Retrieve information about a given contract.

public get([ContractInfosIdGet|array<string|int, mixed>|null $request = null ]) : ContractInfo
Parameters
$request : ContractInfosIdGet|array<string|int, mixed>|null = null

The query and body parameters to pass

Tags
throws
SerializeException

If request object failed to serialize to a JSON serializable type.

throws
UnexpectedResponseException

If server returned an unexpected status code.

throws
ResponseException

If server returned any expected HTTP error

throws
ValidationException

If request could not be validated according to pre validation rules.

throws
BadRequestException

If server returned a HTTP 400 error.

throws
UnauthorizedException

If server returned a HTTP 401 error.

throws
ForbiddenException

If server returned a HTTP 403 error.

throws
NotFoundException

If server returned a HTTP 404 error.

throws
InternalServerException

If server returned a HTTP 500 error.

throws
DeserializeException

If failed to deserialize response body as a response object.

Return values
ContractInfo

Search results