Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data = array(
- 'oauth_consumer_key' => $key,
- 'oauth_nonce' => $nonce,
- 'oauth_signature_method' => 'HMAC-SHA1',
- 'oauth_timestamp' => $timestamp,
- 'oauth_token' => $token,
- 'oauth_version' => '1.0',
- 'oauth_signature' => $sign
- );
- $options = array(
- 'http' => array(
- 'header' => "Content-type: application/x-www-form-urlencodedrn",
- 'method' => 'POST',
- 'content' => http_build_query($data)
- )
- );
- $url = 'https://www.wrike.com/api/xml/v2/' . $method . '?';
- $context = http_build_query($data);
- $context = stream_context_create($options);
- $result = file_get_contents($url, false, $context);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement