Hi guys.
I've tried and tried for as long as i can rem but i still can't get the contacts of the user.
I'm coding this in JAVA and i managed to go through the painful steps of OAuth to get the auth_token that allows me to call the contact api with the user's permission.
I'm trying to make the following call.
String url = "http://social.yahooapis.com/v1/user/{GUID}/contacts?format=XML";
I've tried add the parameters on the URL QUERY and also in the AUTHORIZATION HEADER. I get different errors.
When i tried via the URL QUERY way,
I receive this error.
<yahoo:description>Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"</yahoo:description>
I'm pretty sure i sign it correctly. Below is my basestring.
QUOTE
GET&http%3A%2F%2Fsocial.yahooapis.com%2Fv1%2Fuser%2FZ46EVC3UWMNTWJLAZPSW6LYYO4%2Fcontacts&format%3DXML
%26oauth_consumer_key%3<CONSUMER_KEY HERE>
%26oauth_nonce%3D1261405635463241000
%26oauth_signature_method%3DHMAC-SHA1
%26oauth_timestamp%3D1261405635
%26oauth_token%3DA%25253DEwIGrWnKvwSa3Uu3LZDJt2hi_kLvsPyizr_lS4.TFT3SM9pOZwEfaOXjk437s0nwe9TRfdVnY7
5yHa0V8fdoGxiQmDooywq0CGgFor9_eKbD2bFh7tvCBhctPzslqJr4rUiym_7ci7dKbjPtZqs48tBmmKL
9CAoAIIsB_jbc1wUQPvQUzY49R.LexY41wGb9A8DgVIjVAEeRD.dssxdQNyXridUmfhvUTKwYc1qZAmdS
WgunMOkAkE5GRK9Fu90iq8Vof4AmiTxAi5ZadyNhNlkBpOmfjtUbivPycpTbVWLyqZ1hmFqP7O8G3rdq1
I14gqUE6ZYaxf70uumF7Zmm1H8esGnmB_rAECJrN5P370Ipt9eurIrsDkD6lMYJ68qYaPJzExPrtVCJCc
Yuz1E7xJRv5NqO8wIk8yLFpeEo.9hGuSiqrfcyBZATda2lNywlzWsfGsIo.DtXJS3i3ko2d3jx7qX24SN
.OQboYDCSDNtQOM3s_.Weemje50Qg.WOpg9mTMBDlxzF82q3x.2TPzv34F5735kZZuvQ17Et5wgkZN5bJ
FHZ8Tg7hpPS2BtCdorKBilA.Zg1qhZVSIXCE_jd8jCqrkhEUJAziUq2xtWt9lId49bHcXam6yhmcacX9T
ZNGX1asmSwacomxmfIADaHRed031wLoXiaIeA6iWnQClfTRSRnVbGsh3wFTNX5WZJ2NrAjX6fiur03cN9
.xQ.q.6lVTUvZ.5nA0_qwP1dO4J3_5h.p2KVUm.tZ47t85h61wsUMzX7L8jSWVcNfBjlNkWsTf_i6Lmzg-
%26realm%3Dyahooapis.com
And i'm signing the above with my <Consumer SECRET> &<OAuthTokenSecret>.
Where did i go wrong? Please some just assist.