0

OAuth Consumer Key Problem

When trying to retrieve a users email using http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc, we are receiving the following error:

CODEBOX
{"error":{"lang":"en-US","description":"Please provide valid credentials. OAuth oauth_problem=\"parameter_rejected: oauth_consumer_key\", realm=\"yahooapis.com\""}}


The strange issue we're having is that this is working fine in all of our development environments, but failing in our live environment. We are using the exact same credentials and code in our dev and live environments. Our Oauth process is working fine up to the point of retrieving the users email.

Our consumer key is: dj0yJmk9Y25wTFd0VFRCemxNJmQ9WVdrOVRXNU9NVkpFTnpZbWNHbzlNVEEzTXpreU5UWXkmcz1jb25z
dW1lcnNlY3JldCZ4PTY3


Any help with this would be most appreciated.

Cheers

by
5 Replies
  • Hi,

    It looks like the host that your consumer key is registered with
    hasn't been verified. Can you please verify it first?

    Also can you please send us the complete HTTP request headers
    for both your dev and live environments so we can check?

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • QUOTE (omiga @ Sep 8 2010, 03:03 PM) <{POST_SNAPBACK}>
    It looks like the host that your consumer key is registered with
    hasn't been verified. Can you please verify it first?


    We are in the process of verifing, however the documentation states that the user will receive a warning (which is fine until we publicly launch the feature), not that this is a fundemental requirement. It does not explain why it works from within our development environments.

    QUOTE (omiga @ Sep 8 2010, 03:03 PM) <{POST_SNAPBACK}>
    Also can you please send us the complete HTTP request headers
    for both your dev and live environments so we can check?


    Working Dev Requests
    CODE
    newRequest.addPayload url :: https://api.login.yahoo.com/oauth/v2/get_token?oauth_consumer_key=dj0yJmk9SW04aFhQeHBrNGNNJmQ9WVdrOU1UbEJOVEk1TTJVbWNHbzlNVEUxT
    mpJek56YzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD02Nw--&oauth_nonce=649aa33cec57eb50f7910df81946df9f&oauth_session_handle=ANLyhEzNr457MREAxQvO59gzUMvYCyzvrtr4Q9duTKffXSFX&oauth_signature=1nm0%2BZseEl8kazrRgalXoVF3DiY%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1284458239&oauth_token=A%3DnaVUx5mZtTDNHdqbf50REIPWRDE8sDJ.izc9_iekkFkVV4r3JlRcHrgu5ZUQyS.imxK1IN1S_8X6PX
    jGXIlgfszS6gdAMVJuPXGawG7tORdA8waeJfQVundwThGpL3Jf_WHramTk6Hh3T5NXJIdBj8a8K3wNpKu
    BtTz7dAsnkI9ZHvrhfxuCuWrHlwIpeQgwOuOmohuTM0PxCV2LE7OWgCdnedH8YbNAW0Ww4LLMYmA1u8KC
    1WM9tzOVH2nTGkOuNWmS4LlAMGDFL87wMf3eYE8Fr8y2XdO9KCc53IKATgHPH.9Z4nw8hlOtL2r0XiEI5
    X8V8QsInyXTY.cf5t1BMarTxvGM5Aiz.A0lvMWbsILQTqAuNPO4eZ2QdCWZOdXaZlyjPaH73UNM2QnSAV
    iaLa4Y8meJy.tC_PLjJNoFFKw86Q_uXocLH9TkQy1vU3.P9C6PD5walyv5A7ESj9NTQ1JUbimQdmv7DGW
    pBiimg2Gjs0JwKsu_rpqgux8bzN3JZX9VLwIJw_rw7klRiXaQwK6_jFct3YO.6yHGjmdYCbOMAUFtqOXj
    u6p20v5KrGvV5B_4CPS4.4TvJvKC7JxIcC7ZLyzz2eAHzc.rIN5Q2Mtg7oHI4j2uxy21wBz0Dt5C2fzqu
    d4MdCjWXbwHBpaw4zMeJt5_CHPRnbUHeNlBSKL.o0l2Bq0RN5gRFCmgRLPG.oRKqLZSZpWJr_QnxKbp_V
    g..TMecMRj2.DyNWWGq4al&oauth_version=1.0

    CODE
    newRequest.addPayload url :: http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc?oauth_consumer_key=dj0yJmk9SW04aFhQeHBrNGNNJmQ9WVdrOU1UbEJOVEk1TTJVbWNHbzlNVEUxT
    mpJek56YzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD02Nw--&oauth_nonce=4bc62db1cd4bac541f2752b0105ede63&oauth_signature=XKCpWNqjeb2nAQkHFQGcVXV8skk%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1284458239&oauth_token=A%3DWYmOODHuuDsVT9HpS6AoM.Xd2WfKSxzzc6M2b2WT3RSWuE.WgHmJhr.wlm.KAzvHp4yP5CyLwCuNn2
    iV3OJKq76RG9kVFc9t5NiW5daxpP.dRjPTfzFp3Tji6hN0XbWbmXd.PVT6i3_B6BYeJzhkVOGLU_0qIEI
    _JrFta5TGX51GAFjNzo38z3sDzm5Lr8r0j2X8ZuaQrVVMgsS1epB3ehEWAOWyPAmOEcxLDl4o715TFN6P
    DGTPK4uvaIyqm3SwkGG93itb6Jp0rITiPuoBSBQ_ngQ2.ZYytB0eqNpQaouPbjuBHcmmXe974RcJB0i8m
    fr0GqB7ksT.WGcHfPA4AY9sloTLanQ47wkD.YS22BuT9s46atH.tQeK52VF08D4L7F0G8NGisaESxohEa
    RyActH4LeVxmiGCR1NsLTcHNGC4RcFBFGZvZahJxPcNAm4UZXp6gyxTquVmpiDbo27uU4TwHHBnm.iPdh
    s2OoG6I89Nm8ZojaUBw2oTc_r3pywT5i8E174nCHjlbIpAt8trH0Y9rymNrL.gugyjcmp0WrdVdqvcsox
    yThNzNtY5p5gsMdYvRX_VSov.zWGmjzCxsjV28.sXamI66elIPo59moFWmPuunPJPmb0x4H9GWcE.5z07
    5.FO6mBdJiBN.AFKFB4ejCP.yUX5eOhXRyN61SBuMoiJYoIKQWgUHz075pFAP_DzbI9O9cvVdh6o5LldA
    7o2aoCN8PrWDxotE1w6al1&oauth_version=1.0

    newRequest.addPayload bodyContents :: {"method": "ListMessages", "params": [{
    "fid": "Inbox",
    "groupBy": "unRead",
    "startMid": 0,
    "numMid": 0,
    "startInfo": 0,
    "numInfo": 6
    }]}


    Failing Production Requests
    CODE
    newRequest.addPayload url :: https://api.login.yahoo.com/oauth/v2/get_token?oauth_consumer_key=dj0yJmk9SW04aFhQeHBrNGNNJmQ9WVdrOU1UbEJOVEk1TTJVbWNHbzlNVEUxT
    mpJek56YzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD02Nw--&oauth_nonce=9f697110e83aa629f40043d36eaf669d&oauth_session_handle=ANLyhEzNr457MREAxQvO59gzUMvYCyzvrtr4Q9duTKffXSFX&oauth_signature=yHwcgkp%2B4Gil49C0S7UTCz07wek%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1284732806&oauth_token=A%3DOrkbkT_6mF88lHlbVm3RhJTO6HYWGbjlzfABnSmr2twq4WuJi5meA59Sr9.DMQdJ1dX9R7m7Hm26sQ
    Ab_5HTslfgpYXPtzbp5X2bC4yM7mmdLJhYemaKEijP.O7Tg9K4rEfy987NjGxXQCaJ6u2v6.hIT7.7R6x
    dIiti90wYG07V6pVwIyPkDDZBq_GVvGtwnkO7ruaSsYbmyLQuiLCve.0tR.5v.GI83nVC0aYqAcVjLIQj
    yDl9QUxscPmIUzNaCkOY21wE93NPNc1fTApbQhkMkX1d_jzXzz7TlIJjHi6hGG1YTY8VX543zuuSQuGGl
    3nCcnXCFFe8TXJNxCYWYse3dc8mdLAgMH2rQYlBwcvvcisqLg.ODR_jB2YdixtgcmRBlzVpJ1uRMcgtIY
    Qcp09TQaW2Xky1X3O2WvoNvEvvQdn4xQv6ksU2RGhA8oOQXT2BWL1XNKkjOYjul5CZbtRO6CRmr0v8YcQ
    sKrZmOUq.mUJOPeO_9yre9hDveEVh8aXCBTSyCqagZsIM2f9EZgIOjOwP6zc_8hjhz33OuizIsZV7i8ji
    r4bEbTcaRukRF5l_xJDaVfOJCaiKL.zDYXk5c3ApI8jQEvGBrPnJCf5Z35rQz3trRIvVmtLYV9bDmy48U
    yQGXyYrOJlHZ1VjYFlDIBDvOUrh3BBkY.undUO0AfYyv1aXTCxaAxQn.E_msi2W.lgAmpXhGfP3Gr8x0b
    EcXuGQY5ih0KxKzHcgRTgu&oauth_version=1.0

    CODE
    newRequest.addPayload url :: http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc?oauth_consumer_key=dj0yJmk9SW04aFhQeHBrNGNNJmQ9WVdrOU1UbEJOVEk1TTJVbWNHbzlNVEUxT
    mpJek56YzJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD02Nw--&oauth_nonce=20d6cfc1a4426ac65524efa66c0f8779&oauth_signature=Z13%2Fo7QBLJKY7b%2F3x2bUP%2FrnxvA%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1284732807&oauth_token=A%3DjtbZz7XDriWky2MxBSwC4ORlbKBhVzVbhCDWCZMCQ.lv4oxXtGdDZc3eGXfnIV4cxGqQJbF63jOnYR
    3qkSqYPnhvZrQy.hu6yRdUVBZ3ZfPPn.vNB7LLrs8vV06rtshcCnTp6zKSdRjWapH.JvXW6Fr2r7tSVQ.
    DG0HanSYNKPk5hJ.OpNmlirp0hQvLuQp_BejfrbAzZbcGvkP7JuJWTK5_Nbi_xTTNsgRjB0evAdGp4UzW
    Bl7ozh.aCTTrhn_PHXQwrbfqCsjyCC4z_RzdUk7pyimU7LYH2.gYvG2bk9YebVwR.jRDJ.Tw.fS0O67Ce
    z7cR5l6Y4Ob4Rk3HWwXt88uXQ.kArQjS5.Ic.BidVZ5xEJ8fBMupUUXTl6djSKJsEexm8ku8jtqOLKox6
    Y_IebKv6nyZpJzIUYhO3guxpmt47a_o147PkZGeduH86sxBaN137YvU2lCJKL2azFxl_xtZQKRM1KXznX
    pH34x9uJBvvtfR7GjSUy3bm_nCk3cYmJT1cqmAmn6GyRi4_rF16Yk1vxCGWwjhcR4S3kLFbMTAsokZiWi
    HXBcmXPLbumDlpuy76GE8cbqjhyFUR86uP4DuiQVYtCZhnRR9Krp7htr4tiZdIz1SD1yj2HXvIBKRA6nS
    9WvA9fve7aVlEcuZHXoUfbJiZWYVAEVOOoR6RaX0I8pkHEDBSvL93T6k6V8nNKlGAX6sgULe23wkCPvQY
    kV7VlhHjSmCXWPK5WPYT7O&oauth_version=1.0

    newRequest.addPayload bodyContents :: {"method": "ListMessages", "params": [{
    "fid": "Inbox",
    "groupBy": "unRead",
    "startMid": 0,
    "numMid": 0,
    "startInfo": 0,
    "numInfo": 6
    }]}
    0
  • Hi,

    Sorry I don't know the reason either. So I move this topic to
    the Mail WS forum.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Have you compared all the headers between your dev and production environment? Please double check to make sure they both are sending the same set of headers.
    0
  • Also we were unable to replicate your problem at our end.

    --R


    QUOTE (Gitanjali @ Nov 18 2010, 12:39 PM) <{POST_SNAPBACK}>
    Have you compared all the headers between your dev and production environment? Please double check to make sure they both are sending the same set of headers.
    0

Recent Posts

in Yahoo! Mail Web Services API