I have beening using
http://social.yahooapis.com/v1/user/me/contacts to get contacts, but there are some strange issues.
when using request:
GET /v1/user/me/contacts?realm=yahooapis.com&oauth_consumer_key=dj0yJmk9VHdibDFmNFZ2OFFVJmQ9WVdrOVFtMXpOVUZVTjJNbWNHbzlPV
FV6TmpZM01UYzMmcz1jb25zdW1lcnNlY3JldCZ4PTQz&oauth_nonce=94008223003026651226916750122691675512269167941226916795&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1226916795&oauth_token=ap2xqr&oauth_version=1.0&oauth_signature=OVdQYhAycLKAqOm%2FV3dAQrt5yFA%3D HTTP/1.1
Authorization: OAuth realm="yahooapis.com", oauth_consumer_key="dj0yJmk9VHdibDFmNFZ2OFFVJmQ9WVdrOVFtMXpOVUZVTjJNbWNHbzlPVFV6TmpZM01UYzMmcz1
jb25zdW1lcnNlY3JldCZ4PTQz", oauth_nonce="94008223003026651226916750122691675512269167941226916795", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1226916795", oauth_token="ap2xqr", oauth_version="1.0", oauth_signature="OVdQYhAycLKAqOm%2FV3dAQrt5yFA%3D"
User-Agent: Java/1.5.0
Host: social.yahooapis.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
it responses with:
HTTP/1.1 401 Authorization Required
Date: Mon, 17 Nov 2008 10:11:32 GMT
WWW-Authenticate: OAuth oauth_problem="parameter_rejected", realm="yahooapis.com"
Content-Type: application/xml
Age: 0
Transfer-Encoding: chunked
Connection: keep-alive
Server: YTS/1.17.9
124
<?xml version='1.0' encoding='UTF-8'?>
<yahoo:error xmlns:yahoo='http://yahooapis.com/v1/base.rng'
xml:lang='en-US'>
<yahoo:description>Please provide valid credentials</yahoo:description>
</yahoo:error>
<!-- ws8.socdir.re1.yahoo.com uncompressed/chunked Mon Nov 17 02:11:32 PST 2008 -->
Then I turn to delete the parameter realm="yahooapis.com" in the request, however it responses with:
HTTP/1.1 401 Authorization Required
Date: Mon, 17 Nov 2008 10:31:25 GMT
WWW-Authenticate: OAuth oauth_problem="token_rejected", realm="yahooapis.com"
Content-Type: application/xml
Age: 0
Transfer-Encoding: chunked
Connection: keep-alive
Server: YTS/1.17.9
125
<?xml version='1.0' encoding='UTF-8'?>
<yahoo:error xmlns:yahoo='http://yahooapis.com/v1/base.rng'
xml:lang='en-US'>
<yahoo:description>Please provide valid credentials</yahoo:description>
</yahoo:error>
<!-- ws10.socdir.re1.yahoo.com uncompressed/chunked Mon Nov 17 02:31:25 PST 2008 -->
0
Any one have some suggestions? Thanks.