Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

setRequestToken

  • Loading branch information...
commit 0ce3d1233b5a68eb0681f185f4cac9b3b59117b8 1 parent 84647aa
@ceefour authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 jymengine.class.php
View
14 jymengine.class.php
@@ -79,6 +79,16 @@ public function fetch_request_token()
return true;
}
+ /**
+ * Sets the request token manually.
+ * @param string $requestToken
+ */
+ public function setRequestToken($requestToken) {
+ if (stripos($requestToken, 'RequestToken') !== false)
+ $requestToken = trim(str_replace('RequestToken=', '', $requestToken));
+ $this->_token['request'] = $requestToken;
+ }
+
public function fetch_access_token()
{
//prepare url
@@ -468,6 +478,10 @@ public function fetch_long_notification($seq = 0)
*/
private function curl($url, $method = 'get', $header = null, $postdata = null, $timeout = 60)
{
+ echo ">> $method $url\n";
+ echo "Headers: $header\n";
+ echo "POST data: $postdata\n";
+
$s = curl_init();
curl_setopt($s,CURLOPT_URL, $url);
Please sign in to comment.
Something went wrong with that request. Please try again.