Closed phob0s-pl closed 7 years ago
@tg I thought the API returned an error with a message right? e.g. product not activated..
API states: One has to register the account in order to get a full system functionality.
As we discussed it today -- the app should be able to upload DNS data when the key is valid, but not registered. Error messages from /v1/account/status
or /v1/events
should be logged to syslog.
As a sidenote: API key registration flow is a bit different than in DNS Analytics. As both stages (key request and account registration) happen one after another during the same --register
process, the user should be able to resume the process if unforeseen errors happen (i.e. the app should detect if the key was already requested and use the saved key for registration instead of requesting a new key, etc.)
Before calling /v1/events I am checking /v1/account/status. Queries are sent always.
When API key is set but not registered: a) send queries to AlphaSoc b) exit c) any other idea?