format
This commit is contained in:
@@ -9,21 +9,17 @@
|
||||
namespace CocoaTweet::OAuth {
|
||||
class OAuth1 {
|
||||
public:
|
||||
|
||||
enum AuthType{
|
||||
OAuth,
|
||||
Bearer
|
||||
};
|
||||
enum AuthType { OAuth, Bearer };
|
||||
|
||||
OAuth1();
|
||||
OAuth1(const Key _key);
|
||||
std::map<std::string, std::string> signature(const std::map<std::string, std::string>& _param,
|
||||
const std::string& _method,
|
||||
const std::string& _url);
|
||||
|
||||
const std::string& generateBearerToken();
|
||||
const std::string calculateAuthHeader(std::map<std::string, std::string> _bodyParam, const std::string& _method, const std::string& _url);
|
||||
|
||||
const std::string& generateBearerToken();
|
||||
const std::string calculateAuthHeader(std::map<std::string, std::string> _bodyParam,
|
||||
const std::string& _method, const std::string& _url);
|
||||
|
||||
const std::string nonce() const;
|
||||
const std::string timestamp() const;
|
||||
@@ -44,7 +40,6 @@ private:
|
||||
_stream->append(_ptr, realsize);
|
||||
return realsize;
|
||||
}
|
||||
|
||||
};
|
||||
} // namespace CocoaTweet::OAuth
|
||||
|
||||
|
||||
Reference in New Issue
Block a user