The response of the ListTopics API from sls.

author sls_dev
package SLS_PHP_SDK
inherited_from \Aliyun_Sls_Models_Response

 Methods

Aliyun_Sls_Models_ListTopicsResponse constructor

__construct(array $resp, array $header) 
inherited_from \Aliyun_Sls_Models_Response::__construct()

Parameters

$resp

array

ListTopics HTTP response body

$header

array

ListTopics HTTP response header

Aliyun_Sls_Models_Response constructor

__construct($headers) 
Inherited

Parameters

$headers

Get all http headers

getAllHeaders() : array
Inherited

Returns

arrayHTTP response header

Get the number of all the topics from the response

getCount() : integer

Returns

integerthe number of all the topics from the response

Get specified http header

getHeader(string $key) : string
Inherited

Parameters

$key

string

key to get header

Returns

stringHTTP response header. '' will be return if not set.

Return the next token from the response. If there is no more topic to list, it will return None

getNextToken() : \string/null

Returns

\string/nullnext token used to list more topics

Get the request id of the response. '' will be return if not set.

getRequestId() : string
Inherited

Returns

stringrequest id

Get all the topics from the response

getTopics() : array

Returns

arraytopics list

 Properties

 

the number of all the topics from the response

$count : integer

Default

 

HTTP response header

$headers : array

Default

 

the next token from the response. If there is no more topic to list, it will return None

$nextToken : \string/null

Default

 

topics list

$topics : array

Default