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 <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7#include <log.h>
8
9#include "http.h"
10
12#define UBIDOTS_TOKEN_SIZE 100
14
16#define UBIDOTS_DEFAULT_ENV_NAME "UBI_TOKEN"
17
19int8_t Ubidots_GetToken(const char* env_var_name);
20
22int8_t Ubidots_CheckAccess(void);
23
24#endif //HA_CLOSURE_ANALYSIS_AUTHENTICATE_H
#define UBIDOTS_TOKEN_SIZE
Maximum number of characters in access token.
Definition: authenticate.h:12
int8_t Ubidots_GetToken(const char *env_var_name)
Get / set access token.
Definition: authenticate.c:3
int8_t Ubidots_CheckAccess(void)
Check access token.
Definition: authenticate.c:12
static char UBIDOTS_TOKEN[UBIDOTS_TOKEN_SIZE]
Definition: authenticate.h:13