For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
11 5 6 6

Get token failed by url

I want to access to url: https://192.165.219.152/DatascopeApi/v1/Authentication/RequestToken

to get the token from my chrome.

But I get no response except for "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable"

Is there some problems in my url?

dss-rest-apidatascope-selectdsstoken
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
11.3k 25 9 14

@chenchong

The endpoint seems not correct. It should be https://192.165.219.152/RestApi/v1/Authentication/RequestToken

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you so much.

Upvotes
79.2k 251 52 74

That URL doesn't support HTTP GET request. You need to use HTTP POST request with Username and Password in its body.

{
  "Credentials": {
    "Username": "33314",
    "Password": "XXXXXXX"
  }
}

I suggest Postman as a tool to test TRTH V2 API. To use Postman with TRTH V2 REST API, please refer to this video.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I use the postman and try again, but get the same result:

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable

Is there any problem with my account? my Account is 9013510

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.