diff options
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 */ |