diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-06 20:17:58 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-06 20:17:58 +0000 |
commit | ab92c2a5cd5427bf8a33d06afdb64b88d2d640ed (patch) | |
tree | fc82f068ad7bf8e141b6148f2ff191eab56e1f5a /protocols/Twitter/tc2.h | |
parent | 441daff7dfc4cd80075cfbec3345192aab4353b5 (diff) |
Twitter updated
git-svn-id: http://svn.miranda-ng.org/main/trunk@337 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/tc2.h')
-rw-r--r-- | protocols/Twitter/tc2.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/protocols/Twitter/tc2.h b/protocols/Twitter/tc2.h new file mode 100644 index 0000000000..bbf3884fd6 --- /dev/null +++ b/protocols/Twitter/tc2.h @@ -0,0 +1,83 @@ +/* aww yeah creating some crazy .h file
+
+*/
+
+#ifndef TC2_H
+#define TC2_H
+
+//#include "proto.h"
+#include "stdafx.h"
+#include "twitter.h"
+
+using namespace std;
+
+//typedef std::map<wstring, wstring> OAuthParameters;
+
+wstring getHostName();
+wstring getAccessUrl();
+wstring getAuthorizeUrl();
+wstring getRequestUrl();
+wstring getUserTimelineUrl();
+wstring getConsumerKey();
+wstring getConsumerSecret();
+
+//wstring UrlGetQuery( const wstring& url );
+
+OAuthParameters ParseQueryString( const wstring& url );
+
+wstring OAuthCreateNonce();
+
+wstring OAuthCreateTimestamp();
+
+string HMACSHA1( const string& keyBytes, const string& data );
+
+wstring Base64String( const string& hash );
+
+string char2hex( char dec );
+
+string urlencode(const string &c);
+
+wstring UrlEncode( const wstring& url );
+
+wstring OAuthCreateSignature( const wstring& signatureBase, const wstring& consumerSecret, const wstring& requestTokenSecret );
+
+wstring OAuthConcatenateRequestElements( const wstring& httpMethod, wstring url, const wstring& parameters );
+
+wstring OAuthNormalizeRequestParameters( const OAuthParameters& requestParameters );
+
+//wstring OAuthNormalizeUrl( const wstring& url );
+
+/*OAuthParameters BuildSignedOAuthParameters( const OAuthParameters& requestParameters,
+ const wstring& url,
+ const wstring& httpMethod,
+ const wstring& consumerKey,
+ const wstring& consumerSecret,
+ const wstring& requestToken,
+ const wstring& requestTokenSecret,
+ const wstring& pin );*/
+
+/*wstring OAuthWebRequestSubmit(
+ const OAuthParameters& parameters,
+ const wstring& url
+ );*/
+
+// OAuthWebRequest used for all OAuth related queries
+//
+// consumerKey and consumerSecret - must be provided for every call, they identify the application
+// oauthToken and oauthTokenSecret - need to be provided for every call, except for the first token request before authorizing
+// pin - only used during authorization, when the user enters the PIN they received from the twitter website
+/*wstring OAuthWebRequestSubmit(
+ const wstring& url,
+ const wstring& httpMethod,
+ const wstring& consumerKey,
+ const wstring& consumerSecret,
+ const wstring& oauthToken = L"",
+ const wstring& oauthTokenSecret = L"",
+ const wstring& pin = L""
+ );*/
+
+
+
+int testfunc(int argc, _TCHAR* argv[]);
+
+#endif
|