1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

oauth & twitter client

/twitter on & /twitter test in a user channel to test
This commit is contained in:
Gabor Adam Toth 2010-02-23 13:10:06 +01:00
parent 791f671bf4
commit a5164da136
10 changed files with 231 additions and 35 deletions

13
world/net/library/hmac.c Normal file
View file

@ -0,0 +1,13 @@
#include <net.h>
inherit NET_PATH "library/base64";
#include HTTP_PATH "library.i"
string hmac_bin(int method, string key, string arg) {
return regreplace(hmac(method, key, arg), "..", #'xx2c, 1); //'
}
string hmac_base64(int method, string key, string arg) {
return encode_base64((int *)hmac_bin(method, key, arg));
}

View file

@ -171,6 +171,7 @@ volatile mapping share = ([
"_understand_modules" : PSYC_ROUTING,
"_using_modules" : PSYC_ROUTING,
]),
"oauth_request_tokens": ([ ]),
]);
varargs mixed shared_memory(mixed datensatz, mixed value) {

View file

@ -78,6 +78,8 @@ private volatile mapping _sigs = ([
"_request_remove": ({ "_request_remove", 0, "_person" }),
"_request_priv": ({ "_request_privacy", 0, "_privacy" }),
"_request_privacy": ({ "_request_privacy", 0, "_privacy" }),
"_request_tw": ({ "_request_twitter", 0, "_switch" }),
"_request_twitter": ({ "_request_twitter", 0, "_switch" }),
#endif
#ifdef EXPERIMENTAL
// stuff to play around with