-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
15 lines (13 loc) · 670 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require 'Kanedo_Readability.php';
$token = new OAuthToken("kQxQnydJDRTktewyDU", "hqhThVE2KBnG82qBLCsabNdjv4hrEZy6");
$api = new Kanedo_Readability("Kanedo", "cFbkAVP22g2uLpV74cbZCXmjCyyD3Lhb");
echo "<a href='{$api->authorize("http://readability-api.dev")}'>authorize</a>";
$result = $api->request_token($_REQUEST['oauth_verifier'], $_REQUEST['oauth_token'], $_REQUEST['oauth_callback_confirmed']);
$token = $api->access_token($result);
echo "<pre>";
var_dump($api->addBookmark("http://blog.kanedo.net/1357,links-vom-27-marz-2013-bis-29-marz-2013.html", 0));
//var_dump($api->getFavorites());
echo "</pre>";