rauth icon indicating copy to clipboard operation
rauth copied to clipboard

Yahoo Boss Signature

Open macedd opened this issue 9 years ago • 4 comments

Despite being configured properly, headers sent, signature generated, etc Yahoo boss api keep throwing an error

u'Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"

Here is the code

from rauth import OAuth1Service

key = ''
secret = ''

yahoo = OAuth1Service(
    name='yahoo',
    consumer_key=key,
    consumer_secret=secret)

session = yahoo.get_session()
req = session.request('GET', 'https://yboss.yahooapis.com/ysearch/web?q=search&start=0&format=json', True, 'yahooapis.com')

print req.json()
print req.request.body
print req.request.url
print req.request.headers

Sounds like the signature is not generating properly for the consumer

https://developer.yahoo.com/boss/search/boss_api_guide/oauth.html

macedd avatar Jul 05 '15 03:07 macedd

Hello @thiagof , may be you should give a shot to yahoo-oauth which based on rauth. It supports OAuth1 and OAuth2

josuebrunel avatar Jul 07 '15 08:07 josuebrunel

@thiagof ever resolve this? I do not see you the part where you are signing the request in your code

jmgamboa avatar Feb 08 '16 21:02 jmgamboa

Couldnt solve. Think I've done my own class using requests_oauthlib

macedd avatar Feb 08 '16 23:02 macedd

@jmgamboa @thiagof could you please make sure you have the right consumer key and secret. The default consumer key and consumer secret won't work for. As for yahoo gemini, yahoo boss requires special credentials ( You need to pay for them ). If it still doesn't work you can check the issue #183

josuebrunel avatar Feb 09 '16 05:02 josuebrunel