-
-
Save mdybizbanski/7675754 to your computer and use it in GitHub Desktop.
Xero AccessToken problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign params: | |
Array | |
( | |
[parameters] => Array | |
( | |
[oauth_consumer_key] => xxxxxxx | |
[oauth_nonce] => VgBkN | |
[oauth_signature_method] => HMAC-SHA1 | |
[oauth_timestamp] => 1385558963 | |
[oauth_token] => I169SNBI3Y4Q6KLH1AMUYIBX7IQI6X | |
[oauth_verifier] => 1663029 | |
[oauth_version] => 1.0 | |
[order] => | |
[oauth_signature] => ltUI9bnEc/UvX6x7YrIFLdsQVfo= | |
) | |
[signature] => ltUI9bnEc%2FUvX6x7YrIFLdsQVfo%3D | |
[signed_url] => https://api.xero.com/oauth/AccessToken?oauth_consumer_key=xxxxxx&oauth_nonce=VgBkN&oauth_signature=ltUI9bnEc%2FUvX6x7YrIFLdsQVfo%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1385558963&oauth_token=I169SNBI3Y4Q6KLH1AMUYIBX7IQI6X&oauth_verifier=1663029&oauth_version=1.0&order= | |
[header] => OAuth oauth_consumer_key="xxxxxx", oauth_nonce="VgBkN", oauth_signature="ltUI9bnEc%2FUvX6x7YrIFLdsQVfo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1385558963", oauth_token="I169SNBI3Y4Q6KLH1AMUYIBX7IQI6X", oauth_verifier="1663029", oauth_version="1.0" | |
[sbs] => GET&https%3A%2F%2Fapi.xero.com%2Foauth%2FAccessToken&oauth_consumer_key%3Dxxxxxx%26oauth_nonce%3DVgBkN%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1385558963%26oauth_token%3DI169SNBI3Y4Q6KLH1AMUYIBX7IQI6X%26oauth_verifier%3D1663029%26oauth_version%3D1.0%26order%3D | |
) | |
cURL HEADER_OUT: | |
Array | |
( | |
[url] => https://api.xero.com/oauth/AccessToken?oauth_consumer_key=xxxxxx&oauth_nonce=VgBkN&oauth_signature=ltUI9bnEc%2FUvX6x7YrIFLdsQVfo%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1385558963&oauth_token=I169SNBI3Y4Q6KLH1AMUYIBX7IQI6X&oauth_verifier=1663029&oauth_version=1.0&order= | |
[content_type] => text/html; charset=utf-8 | |
[http_code] => 401 | |
[header_size] => 265 | |
[request_size] => 434 | |
[filetime] => -1 | |
[ssl_verify_result] => 0 | |
[redirect_count] => 0 | |
[total_time] => 0.627161 | |
[namelookup_time] => 0.003233 | |
[connect_time] => 0.121982 | |
[pretransfer_time] => 0.486627 | |
[size_upload] => 0 | |
[size_download] => 87 | |
[speed_download] => 138 | |
[speed_upload] => 0 | |
[download_content_length] => 87 | |
[upload_content_length] => 0 | |
[starttransfer_time] => 0.626985 | |
[redirect_time] => 0 | |
[redirect_url] => | |
[request_header] => GET /oauth/AccessToken?oauth_consumer_key=xxxxxx&oauth_nonce=VgBkN&oauth_signature=ltUI9bnEc%2FUvX6x7YrIFLdsQVfo%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1385558963&oauth_token=I169SNBI3Y4Q6KLH1AMUYIBX7IQI6X&oauth_verifier=1663029&oauth_version=1.0&order= HTTP/1.1 | |
User-Agent: Xero-OAuth-PHP Public | |
Host: api.xero.com | |
Accept-Encoding: deflate, gzip | |
Accept: application/xml | |
Content-Length: 0 | |
) | |
Response headers: | |
Array | |
( | |
[headers] => Array | |
( | |
[cache_control] => private | |
[content_type] => text/html; charset=utf-8 | |
[www_authenticate] => OAuth Realm="213.239.222.20" | |
[x_s] => 445761-O1VMAP04 | |
[strict_transport_security] => max-age=31536000 | |
[date] => Wed, 27 Nov 2013 13:29:23 GMT | |
[content_length] => 87 | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment