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:
0:0048b264a3ad
Child:
3:c28b796ef7ed
diff -r 000000000000 -r 0048b264a3ad OAuth4Tw.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OAuth4Tw.h	Mon Dec 12 18:47:10 2011 +0000
@@ -0,0 +1,23 @@
+#ifndef MBED_OAUTH4TW_H
+#define MBED_OAUTH4TW_H
+
+#include "mbed.h"
+#include "oauth.h"
+
+class OAuth4Tw {
+public:
+    OAuth4Tw(const char *c_key, const char *c_secret,
+        const char *t_key, const char *t_secret);
+        
+    static std::string url_escape(const char *str);
+    
+    std::string post(const char *uri, std::string postarg);
+    
+private:
+    const char *consumer_key;
+    const char *consumer_secret;
+    const char *token_key;
+    const char *token_secret;
+};
+
+#endif