0

BuddyAuthorization returning 404 error

Hi,

Below is my POST request and the HTTP header received, please could someone help me to fix this.

POST /v1/buddyauthorization/yahoo/<y! user id>?sid=mDxo4Y7s3RI36dn4STZv9TMdPjJ2Xn627IQ- HTTP/1.1
Host: rcore1.messenger.yahooapis.com
Accept: */*
Authorization: OAuth realm="yahooapis.com",oauth_version="1.0",oauth_consumer_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",oauth_nonce="493708824",oauth_timestamp="1280474769",oauth_token="A%3D6GRYhm7llSQwLaCeYMC9RTNBbUvT0hNCgElsVHbODUFlvi4V_mp_0RutzXYIy.cXIchx_eJbSBMzBC
9VR6DcYRxw3.YtiVfA1WTnGzTRquHyEw9wlYh2L2NbAkwslitB_.EAW15tcU4dOZmavSO3P9cxknIQBt3
yzI61wfWKyyULZWjpIVFT5BjreFSnuciti3tT1K8FY1ty4QaiL3ahyd31CnMwM5TbptAw0ConSNiC5Ch4
1lOR3Tu.LhjQsBvtsQn6lCcrIqT2_B_5RFNst2s9upSUkRWM_suouERK2.d98Wf.4jnv0EyFqVj32dT1j
dxZXESZA_6fkV0KPVoUaB6WYchP_nkSD.ng8hrla_auVNf2WOZxGkQes31WLf_GICoR6v14le2Uxan7Ec
Fz8Abo_sIPxF5IKRUYLTZiNP3fxjV1dI2JAN5YEot6ZSJVar6hPjcKdG61U9GQwbAB8n8.dEereTBxYch
kNsYq215vsP.GBNx_s58ljIJm5tHzA4WEOSxoPyOWa1eMiElvGvlUdL6eSUjJMgRkWWBDJcDN1Iz0Yirw
LTBtIlUIs.fAVR.uzHaSzno97DFmyjGd4YdjWHk92WI2hTHij0.x46n7OvY5PSmc3hXDGaXYeGHVMuyJq
yRrvo0uEklrDWUwEKkl9eJg_aouS3mrVRfyp5zs5fUt0BPTdZpZXJSSC3mRQ135nbtBHqmM7oKeaIFWCj
MKjWVKVnlR4RETenEek672oq8-",oauth_signature_method="PLAINTEXT",oauth_signature="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Content-Type: application/json;charset=utf-8
Content-Length: 58

HTTP/1.1 404 Not Found
Date: Fri, 30 Jul 2010 07:29:16 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Cache-Control: private
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

by
6 Replies
  • The documented URI for buddy authorization management is "/v1/buddyrequest/...". In the request you have posted you are using "/v1/buddyauthorization/..." which is invalid and hence resulting in a 404 Not Found response
    0
  • Hi Vivek,

    Thanks for your reply. Please refer to the example 2.38 in "Buddy List Management" under Yahoo! Messenger API Definitions, there it is mentioned "/v1/buddyrequest/yahoo/adderid?sid=msgrsessionid" like this. I tried "v1/buddyrequest/" this, it is working, I', getting "200", but the buddy is not added.

    Thanks,
    Karthik



    QUOTE (Vivek Aggarwal @ Aug 3 2010, 06:18 PM) <{POST_SNAPBACK}>
    The documented URI for buddy authorization management is "/v1/buddyrequest/...". In the request you have posted you are using "/v1/buddyauthorization/..." which is invalid and hence resulting in a 404 Not Found response
    0
  • Karthik,
    Messenger add/authorizations are bi-directional. Adding userA onto userB's buddylist does not mean that userB gets added onto userA's buddylist.

    Authorizing adderId in this manner will only ensure successful completion of the addition of addeeId (you) onto adderId's buddylist. If you want to further pursue the addition of adderId on addeeId's buddylist, you must submit a request using the Group List Management APIs with /v1/group/{groupname}/contact/{network}/{adderId}

    Hope this helps..

    QUOTE (Karthik @ Aug 3 2010, 07:26 PM) <{POST_SNAPBACK}>
    Hi Vivek,

    Thanks for your reply. Please refer to the example 2.38 in "Buddy List Management" under Yahoo! Messenger API Definitions, there it is mentioned "/v1/buddyrequest/yahoo/adderid?sid=msgrsessionid" like this. I tried "v1/buddyrequest/" this, it is working, I', getting "200", but the buddy is not added.

    Thanks,
    Karthik
    0
  • Vivek, thanks a lot for this clarification.

    -Karthik

    QUOTE (Vivek Aggarwal @ Aug 3 2010, 10:58 PM) <{POST_SNAPBACK}>
    Karthik,
    Messenger add/authorizations are bi-directional. Adding userA onto userB's buddylist does not mean that userB gets added onto userA's buddylist.

    Authorizing adderId in this manner will only ensure successful completion of the addition of addeeId (you) onto adderId's buddylist. If you want to further pursue the addition of adderId on addeeId's buddylist, you must submit a request using the Group List Management APIs with /v1/group/{groupname}/contact/{network}/{adderId}

    Hope this helps..
    0
  • Karthik,
    We've added more information about the add/authorization process in the FAQ now. Please refer to "Understanding the Contact Add and Authorization Process" located at http://developer.yahoo.com/messenger/guide...aq.html#d4e4354
    0
  • QUOTE (Vivek Aggarwal @ Aug 13 2010, 09:33 AM) <{POST_SNAPBACK}>
    Karthik,
    We've added more information about the add/authorization process in the FAQ now. Please refer to "Understanding the Contact Add and Authorization Process" located at http://developer.yahoo.com/messenger/guide...aq.html#d4e4354


    Thanks Vivek.
    0

Recent Posts

in Messenger IM SDK