Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OAuth4Tw by
OAuth4Tw.h@1:b3501683b856, 2015-04-30 (annotated)
- Committer:
- vpcola
- Date:
- Thu Apr 30 10:19:31 2015 +0000
- Revision:
- 1:b3501683b856
- Parent:
- 0:0048b264a3ad
Fork of OAuth4Tw to use normal EthernetInterface and HTTPClient library
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" | 
| takahashim | 0:0048b264a3ad | 5 | #include "oauth.h" | 
| 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 | 
