Fixed compatibility for HTTPClient Library. (HTTPClient by Donatien Garnier)

Dependents:   FlashAir_Twitter CyaSSL-Twitter-OAuth4Tw TweetTest NetworkThermometer ... more

Fork of OAuth4Tw by Masayoshi Takahashi

Revision:
5:5146becb651f
Parent:
4:1ecf49a46040
--- a/OAuth4Tw.h	Wed Jul 08 14:32:26 2015 +0000
+++ b/OAuth4Tw.h	Tue Jul 14 09:31:13 2015 +0000
@@ -3,6 +3,7 @@
 
 #include "mbed.h"
 #include "HTTPClient.h"
+#include <vector>
 #include <string>
 
 class OAuth4Tw
@@ -13,9 +14,10 @@
 
     static std::string url_escape(const char *str);
 
-    HTTPResult get(const char *uri, IHTTPDataIn* response, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT);
+    HTTPResult get(const char *url, IHTTPDataIn* response, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT);
 
-    HTTPResult post(const char *uri, std::string postargs, IHTTPDataIn* response, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT);
+    HTTPResult post(const char *url, IHTTPDataIn* response, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT);
+    HTTPResult post(const char *url, std::vector<std::string> *postdata, IHTTPDataIn* response, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT);
 
 private:
     const char *consumer_key;