Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
Loading...
Searching...
No Matches
authenticate.h
Go to the documentation of this file.
1#ifndef HA_CLOSURE_ANALYSIS_AUTHENTICATE_H
2#define HA_CLOSURE_ANALYSIS_AUTHENTICATE_H
3
4#include <string.h>
5#include <stdlib.h>
6#include <stdio.h>
7#include <cjson/cJSON.h>
8#include <curl/curl.h>
9#include <log.h>
10
11#include "http.h"
12
14#define WW_TOKEN_SIZE 100
16
18#define WW_DEFAULT_ENV_NAME "WW_TOKEN"
19
21uint8_t WillyWeather_GetToken(const char* env_var_name);
22
24uint8_t WillyWeather_CheckAccess(void);
25
26#endif //HA_CLOSURE_ANALYSIS_AUTHENTICATE_H
#define WW_TOKEN_SIZE
Willy weather access token size.
Definition: authenticate.h:14
static char WW_TOKEN[WW_TOKEN_SIZE]
Definition: authenticate.h:15
uint8_t WillyWeather_GetToken(const char *env_var_name)
Get Willy Weather API token from environment variable.
Definition: authenticate.c:9
uint8_t WillyWeather_CheckAccess(void)
Check API token is initialised and available for use.
Definition: authenticate.c:23