...
Provide the username and password of your 3DM account. If , if your password contains special characters these should be URL encoded. The grant_type for default requests is 'password, ' (to refresh an access token; see Refresh OAUTH token). The client_id and client_secret will be provided by Bio-Prodict separately.
The token request needs to contain an authorization header in the form of 'Authorization: Basic : {"Authorization": "Basic {client_details}' with "}, in which client_details being the is a base64 encoded string of the client_id a colon (as key) and the client_secret without a trailing newline. Example response(as value), e.g. "{client_id}:{client_secret}". Make sure that no trailing newlines are included.
The response will look like the example below:
Code Block | ||
---|---|---|
| ||
{ "access_token": "{token}", "expires_in": 43199, "fullname": "{fullname}", "jti": "396f89d8-92d2-4211-9fe7-b4db82a4e691", "scope": "read write", "token_type": "bearer", "userid": {userid}, "username": "{username}" } |
...