X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Faccesstoken.php;h=bfb771b0b39cef81f14ca22c139167af734b9de2;hb=59a0b2a82da418f688faf182407146d9e7a7af7a;hp=c99aaeded32ab74b544d1a532ec9630c0a784b3d;hpb=df86aa721455fde537608d5faeaaf92075afb738;p=quix0rs-gnu-social.git diff --git a/actions/accesstoken.php b/actions/accesstoken.php index c99aaeded3..bfb771b0b3 100644 --- a/actions/accesstoken.php +++ b/actions/accesstoken.php @@ -1,6 +1,6 @@ fetch_access_token($req); - common_debug('got this token: "'.print_r($token, true).'"', __FILE__); - common_debug('printing the access token', __FILE__); - print $token; - } catch (OAuthException $e) { + $srv = new OMB_Service_Provider(null, omb_oauth_datastore(), + omb_oauth_server()); + $srv->writeAccessToken(); + } catch (Exception $e) { $this->serverError($e->getMessage()); } }