Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
Loading...
Searching...
No Matches
authenticate.c File Reference
Include dependency graph for authenticate.c:

Functions

uint8_t WillyWeather_GetToken (const char *env_var_name)
 Get Willy Weather API token from environment variable. More...
 
uint8_t WillyWeather_CheckAccess (void)
 Check API token is initialised and available for use. More...
 

Function Documentation

◆ WillyWeather_CheckAccess()

uint8_t WillyWeather_CheckAccess ( void  )

Check API token is initialised and available for use.

Check Willy Weather API token has been initialised.

Returns
Integer representing access state (0 = success)

◆ WillyWeather_GetToken()

uint8_t WillyWeather_GetToken ( const char *  env_var_name)

Get Willy Weather API token from environment variable.

Obtain and populate Willy Weather access token from environment variable.

Parameters
env_var_nameName of environment variable where token is held.
Returns
Integer representing