Mercurial > hg > ywww
comparison goodreads/getGoodreadsShelves.php @ 49:a67bf725e87b
put both paths in include_path and depend on that
| author | Charlie Root |
|---|---|
| date | Wed, 16 Jan 2019 13:42:15 -0500 |
| parents | 077b0a0a3e6d |
| children |
comparison
equal
deleted
inserted
replaced
| 48:da133c130c1d | 49:a67bf725e87b |
|---|---|
| 34 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); | 34 curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); |
| 35 $ret = curl_exec($crl); | 35 $ret = curl_exec($crl); |
| 36 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); | 36 $ret = preg_replace("/[^[:alnum:][:punct:][:space:]]/","",$ret); |
| 37 //echo $ret; | 37 //echo $ret; |
| 38 | 38 |
| 39 include "../../private/db.php"; | 39 include "db.php"; |
| 40 require_once('GoodreadsAPI.php'); | 40 require_once('GoodreadsAPI.php'); |
| 41 session_start(); | 41 session_start(); |
| 42 $access_token = $_SESSION['access_token']; | 42 $access_token = $_SESSION['access_token']; |
| 43 //print_r($access_token); | 43 //print_r($access_token); |
| 44 $obj = new GoodreadsApi(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']); | 44 $obj = new GoodreadsApi(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']); |
