Fork of OAuth4Tw to use mbed's official EthernetInterface and HTTPClient
Fork of OAuth4Tw by
OAuth4Tw.h
- Committer:
- vpcola
- Date:
- 2015-04-30
- Revision:
- 1:b3501683b856
- Parent:
- 0:0048b264a3ad
File content as of revision 1:b3501683b856:
#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