Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

api access#43

Answeredbyucswift
feadrick asked this question inQ&A
Discussion options

/api/v{version}/Calls/GetActiveCalls
params: version = 3
i wanted to know on how to access the api above,however i got 401,unauthorized but i already pass the version no which is 3.
so i wanted to what the relation between the api above and the api below,because based on the documentation token from Auth/Validate is used for subsquent request api.
im able to login and get the token from the api

​/api​/v{version}​/Auth​/Validate -Generates a token that is then used for subsquent requests to the API.

You must be logged in to vote

Hey@feadrick!

For the v3 api you'll need to authenticate with the API first/api/v3/Auth/Validate passing inUsr andPass strings for your login. After that you'll get a payload back with aTkn value that you'll need to pass in as aBasic Authorization header value with every request. See an example here for Angularhttps://github.com/Resgrid/BigBoard/blob/master/src/interceptors/http.interceptor.module.ts#L12.

Other values you'll get on the response payload,Txd is when the token expires.

Replies: 1 comment

Comment options

Hey@feadrick!

For the v3 api you'll need to authenticate with the API first/api/v3/Auth/Validate passing inUsr andPass strings for your login. After that you'll get a payload back with aTkn value that you'll need to pass in as aBasic Authorization header value with every request. See an example here for Angularhttps://github.com/Resgrid/BigBoard/blob/master/src/interceptors/http.interceptor.module.ts#L12.

Other values you'll get on the response payload,Txd is when the token expires.
image

You must be logged in to vote
0 replies
Answer selected byfeadrick
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@feadrick@ucswift

[8]ページ先頭

©2009-2025 Movatter.jp