The zrayRemoveAccessToken Web API Method

Remove an access token. Removing a token means that pages loaded with this token will not display Z-Ray. Existing Z-Ray's will still have access to information.

Version: 1.8

Required Permissions: Full

HTTP method: POST

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

tokenId

Integer

Yes

The identifier for the token to be removed. Note that this is a number representing the token, not the token itself.

Expected Response Code: 200 OK. For more information see Response Format.

Response Format: accessToken

Possible Action Specific Error Codes: This action has no specific error codes

Example

Usage Example

Request (headers removed for the purpose of clarity)

POST /ZendServer/Api/zrayRemoveAccessToken

Response (not all headers are shown)

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.8">

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>zrayRemoveAccessToken</method>

</requestData>

<responseData>

<acccessToken>

<tokenId>1</tokenId>

<hash><![CDATA[...]]></hash>

</accessToken>

</responseData>

</zendServerAPIResponse>