...
We support OAauth2 Bearer tokens. Registration process of OAuth2 client is currently manual, please reach out to support@drofus.com and we can provide needed information. Please send us the desired redirect_uri(s) (and if desired, post_logout_redirect_uri(s)).
For testing purpose, HTTP Basic authentication can also be used. However, it should be avoided for production applications.
Providing database and projectId
All API endpoints should provide database and project id as part of the url. E.g. https://api-xyz.com/database/projectId/api/rooms
[Deprecated] Providing database and projectId in
...
"Basic auth"
When using HTTP Authorization header Basic scheme, it is possible to provide the following parameters for scheme's "username", separated by slash. This is deprecated in favour of path. For example:
HTTP GET /api/rooms
Authorization: Basic base64(my-database/01/my-username/en:mypassword)
Possible parameters
Name | Meaning |
---|---|
db-name | The database-name as you would enter in dRofus Client |
project-id | Id of project. Usually '01'. This is optional only if database only contains one project |
user-name | The name you log on with in dRofus client |
language | The language you want to see data in. Optional, and default is the language configured for the database |
...