Fixed compatibility for HTTPClient Library. (HTTPClient by Donatien Garnier)
Dependents: FlashAir_Twitter CyaSSL-Twitter-OAuth4Tw TweetTest NetworkThermometer ... more
Fork of OAuth4Tw by
OAuth4Tw.h@3:c28b796ef7ed, 2015-07-08 (annotated)
- Committer:
- ban4jp
- Date:
- Wed Jul 08 03:52:54 2015 +0000
- Revision:
- 3:c28b796ef7ed
- Parent:
- 0:0048b264a3ad
- Child:
- 4:1ecf49a46040
Change the folder structure.; Updated code from twicpps. (just a little.)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takahashim | 0:0048b264a3ad | 1 | #ifndef MBED_OAUTH4TW_H |
takahashim | 0:0048b264a3ad | 2 | #define MBED_OAUTH4TW_H |
takahashim | 0:0048b264a3ad | 3 | |
takahashim | 0:0048b264a3ad | 4 | #include "mbed.h" |
ban4jp | 3:c28b796ef7ed | 5 | #include <string> |
takahashim | 0:0048b264a3ad | 6 | |
takahashim | 0:0048b264a3ad | 7 | class OAuth4Tw { |
takahashim | 0:0048b264a3ad | 8 | public: |
takahashim | 0:0048b264a3ad | 9 | OAuth4Tw(const char *c_key, const char *c_secret, |
takahashim | 0:0048b264a3ad | 10 | const char *t_key, const char *t_secret); |
takahashim | 0:0048b264a3ad | 11 | |
takahashim | 0:0048b264a3ad | 12 | static std::string url_escape(const char *str); |
takahashim | 0:0048b264a3ad | 13 | |
takahashim | 0:0048b264a3ad | 14 | std::string post(const char *uri, std::string postarg); |
takahashim | 0:0048b264a3ad | 15 | |
takahashim | 0:0048b264a3ad | 16 | private: |
takahashim | 0:0048b264a3ad | 17 | const char *consumer_key; |
takahashim | 0:0048b264a3ad | 18 | const char *consumer_secret; |
takahashim | 0:0048b264a3ad | 19 | const char *token_key; |
takahashim | 0:0048b264a3ad | 20 | const char *token_secret; |
takahashim | 0:0048b264a3ad | 21 | }; |
takahashim | 0:0048b264a3ad | 22 | |
takahashim | 0:0048b264a3ad | 23 | #endif |