Type to search...

Access token: get

Request

HTTP request

GET /secure/v1/access-token/<token> HTTP/1.1

Parameters

Parameter name Value Description
Path parameters
token string Token, access token ID

Request Body

This method does not support request body.

Response

If successful, this method returns an access token resource in the response body.

Response HTTP status code

HTTP status code Description
200 Success, access token resource
404 Access token does not exist

For more information about HTTP codes, click here.

Rate limit

Detailed information for access token rate limitation is available on Shardimage developers.

SDK

use shardimage\shardimagephp\auth\Client;
use shardimage\shardimagephp\models\accesstoken\UploadAccessToken;
 
$client = new Client([
    'apiKey' => '<apiKey>',
    'apiSecret' => '<apiSecret>',
    'imageSecret' => '<imageSecret>',
]);
 
$token = new UploadAccessToken(['id' => '<token>']);
$token = $client->getAccessTokenService()->view($token);
Table of contents