|
Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
|
#include "IBM_EIS/authenticate.h"Functions | |
| int8_t | IBM_HandleAuth (IBM_AuthHandle_TypeDef *auth_handle) |
| Authentication handler for IBM EIS. More... | |
| CURLcode | IBM_Authenticate (const char *token, IBM_AuthHandle_TypeDef *auth_handle) |
| Authenticate with IBM's Environmental Intelligence Suite (EIS). More... | |
| CURLcode | IBM_Refresh (IBM_AuthHandle_TypeDef *auth_handle) |
| Obtain a new access token from IBM's EMS. More... | |
| CURLcode IBM_Authenticate | ( | const char * | token, |
| IBM_AuthHandle_TypeDef * | auth_handle | ||
| ) |
Authenticate with IBM's Environmental Intelligence Suite (EIS).
Authenticate with IBM's Enviornmental Monitoring Suite.
IBM used OAuth2 for authentication. This function takes care of this process. The lengths of the tokens are:
| token | IBM API key to use. |
| auth_handle | Authenication handler for IBM tokens |
| int8_t IBM_HandleAuth | ( | IBM_AuthHandle_TypeDef * | auth_handle | ) |
Authentication handler for IBM EIS.
Handles authentication, checking and re-authentication of IBM EIS access tokens.
| auth_handle | Authentication hander with tokens and expiry information. |
Check if initialised already
| CURLcode IBM_Refresh | ( | IBM_AuthHandle_TypeDef * | auth_handle | ) |
Obtain a new access token from IBM's EMS.
Re-authenticate with IBM's Enviornmental Monitoring Suite.
IBM used OAuth2 for re-authentication. This function takes care of this process. The access_token length is at least 1861 characters.
| auth_handle | IBM EIS authentication handler. |