first working fetch

This commit is contained in:
2020-06-01 20:59:24 -07:00
parent 98e9bc5e70
commit c215c1d6e0
10 changed files with 4091 additions and 5 deletions

View File

@@ -2,6 +2,17 @@
#define ASANA_FETCH_H_
#include <stdbool.h>
#include <stdlib.h>
#define AUTH_HEADER_SIZE 1024
#define ASANA_URL_MAX_LENGTH 4096
typedef struct Response {
int status;
size_t len;
char *body;
} Response;
/**
* initialize libcurl
@@ -13,4 +24,14 @@ bool asana_init();
*/
void asana_cleanup();
/**
*
*/
Response *asana_fetch(char *path);
/**
* Frees memory allocated for a Response
*/
void asana_free_response(Response *r);
#endif // ASANA_FETCH_H_