diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 13:07:39 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 13:07:39 -0400 |
commit | 7a22cab34332707ea2fe5d3e690033c424886c9b (patch) | |
tree | b2ee4fa5d5bd308a4d31c75dc993e789a9a45917 /source/http.h | |
parent | 4be9c4dadc54197eedded43825995dec9f524cfc (diff) | |
download | gen3uploader-7a22cab34332707ea2fe5d3e690033c424886c9b.tar.gz gen3uploader-7a22cab34332707ea2fe5d3e690033c424886c9b.tar.bz2 gen3uploader-7a22cab34332707ea2fe5d3e690033c424886c9b.zip |
Changed auth password to token
Diffstat (limited to 'source/http.h')
-rw-r--r-- | source/http.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/http.h b/source/http.h index 9597a1d..ed8c017 100644 --- a/source/http.h +++ b/source/http.h | |||
@@ -24,14 +24,13 @@ typedef enum { | |||
24 | } http_res; | 24 | } http_res; |
25 | 25 | ||
26 | /** | 26 | /** |
27 | * Submits a JSON request to a web service. Takes ownership of the cJSON object, | 27 | * Submits a JSON request to a web service. Takes ownership of the cJSON object. |
28 | * because it needs to embed authentication data in it. | ||
29 | */ | 28 | */ |
30 | int submitToApi( | 29 | int submitToApi( |
31 | const char* endpoint, | 30 | const char* endpoint, |
32 | WOLFSSL_CTX* sslContext, | 31 | WOLFSSL_CTX* sslContext, |
33 | cJSON* data, | 32 | cJSON* data, |
34 | const char* username, | 33 | const char* username, |
35 | const char* password); | 34 | const char* token); |
36 | 35 | ||
37 | #endif /* end of include guard: HTTP_H_A46C206E */ | 36 | #endif /* end of include guard: HTTP_H_A46C206E */ |