Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $data = array(
  2. 'oauth_consumer_key' => $key,
  3. 'oauth_nonce' => $nonce,
  4. 'oauth_signature_method' => 'HMAC-SHA1',
  5. 'oauth_timestamp' => $timestamp,
  6. 'oauth_token' => $token,
  7. 'oauth_version' => '1.0',
  8. 'oauth_signature' => $sign
  9. );
  10.  
  11. $options = array(
  12. 'http' => array(
  13. 'header' => "Content-type: application/x-www-form-urlencodedrn",
  14. 'method' => 'POST',
  15. 'content' => http_build_query($data)
  16. )
  17. );
  18.  
  19. $url = 'https://www.wrike.com/api/xml/v2/' . $method . '?';
  20. $context = http_build_query($data);
  21. $context = stream_context_create($options);
  22. $result = file_get_contents($url, false, $context);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement