aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-10 16:39:46 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-10 16:39:46 -0800
commit8389d8677d4e2deaaf5da028d9abacf7ce5ef250 (patch)
tree8a1e84005f2aa84be16be7fdbacbdcc3f8807641 /include/api.php
parent7fa944ed953cbf2b9ee044d46e74dfd299237fa7 (diff)
downloadvolse-hubzilla-8389d8677d4e2deaaf5da028d9abacf7ce5ef250.tar.gz
volse-hubzilla-8389d8677d4e2deaaf5da028d9abacf7ce5ef250.tar.bz2
volse-hubzilla-8389d8677d4e2deaaf5da028d9abacf7ce5ef250.zip
some major cleanup of api authentication stuff - still needs much more and this still may not solve #206
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/api.php b/include/api.php
index 69cc69415..4ad915c03 100644
--- a/include/api.php
+++ b/include/api.php
@@ -2298,12 +2298,11 @@ require_once('include/api_auth.php');
api_register_func('api/direct_messages','api_direct_messages_inbox',true);
-
function api_oauth_request_token(&$a, $type){
try{
- $oauth = new FKOAuth1();
+ $oauth = new ZotOAuth1();
$req = OAuthRequest::from_request();
-logger('Req: ' . var_export($req,true));
+ logger('Req: ' . var_export($req,true),LOGGER_DATA);
$r = $oauth->fetch_request_token($req);
}catch(Exception $e){
logger('oauth_exception: ' . print_r($e->getMessage(),true));
@@ -2313,9 +2312,10 @@ logger('Req: ' . var_export($req,true));
echo $r;
killme();
}
+
function api_oauth_access_token(&$a, $type){
try{
- $oauth = new FKOAuth1();
+ $oauth = new ZotOAuth1();
$req = OAuthRequest::from_request();
$r = $oauth->fetch_access_token($req);
}catch(Exception $e){