Implicit
Use the Implicit grant type for pure browser-based applications. This grant type only returns an access token and expiration time.
Request an access token
During the log in process, the Implicit grant type redirects your user to a Trustpilot owned website where they are authenticated and return with a parameter containing an access token and expiration time.
Method: GET
https://authenticate.trustpilot.com
Parameters
Name | Type | Description |
---|---|---|
client_id | Required string | The API key |
redirect_uri | Required string | The client’s site URL. The URL in your app where you want your user to be redirected to after authorization. The redirect_uri must be https. |
response_type | Required string | Value must be set to token |
Example
https://authenticate.trustpilot.com?client_id=APIKey&redirect_uri=https://www.clientsSite.com&response_type=token
Redirects back to
https://www.clientsSite.com/#access_token=AccessToken&token_type=bearer&expires_in=359999
The access_token parameter is stored behind the fragment and is available to client side scripting.