0

OST_OAUTH_SIGNATURE_INVALID_ERROR

Hi there,

I've been mailing with Aby Philip from Yahoo to get an answer to my issue. He and the YQL Team suggested me to take this issue to the developer forum.

Let me explain the issue I have with the Yahoo API all of a sudden (once it was working just fine).

When I do a search, for example this one:
http://query.yahooapis.com/v1/yql?diagnost...RytEciF4c0pw%3d

The service replies "Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_SIGNATURE_INVALID_ERROR", realm="yahooapis.com"
Once, this was working, but did someone change something on the API?

When I do the same request on the public url:
http://query.yahooapis.com/v1/public/yql?d...ml&q=select * from search.web(0%2C1000) where query%3D"'bank of schotland'" | sort(field%3D"date"%2C descending%3D"true")

I get a correct reply with search results.

Why? What I'm I overlooking?

Thanks,
Rolf

by
6 Replies
  • Hi,

    How are you creating the first URL? Are you using our SDK?

    Thanks -Paul
    YQL Team

    QUOTE (teezirecare @ Mar 24 2011, 08:45 AM) <{POST_SNAPBACK}>
    Hi there,

    I've been mailing with Aby Philip from Yahoo to get an answer to my issue. He and the YQL Team suggested me to take this issue to the developer forum.

    Let me explain the issue I have with the Yahoo API all of a sudden (once it was working just fine).

    When I do a search, for example this one:
    http://query.yahooapis.com/v1/yql?diagnost...RytEciF4c0pw%3d

    The service replies "Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_SIGNATURE_INVALID_ERROR", realm="yahooapis.com"
    Once, this was working, but did someone change something on the API?

    When I do the same request on the public url:
    http://query.yahooapis.com/v1/public/yql?d...ml&q=select * from search.web(0%2C1000) where query%3D"'bank of schotland'" | sort(field%3D"date"%2C descending%3D"true")

    I get a correct reply with search results.

    Why? What I'm I overlooking?

    Thanks,
    Rolf
    0
  • No, I don't use the SDK. I create this url by simulating the YQL console. Why? Is it wrong?

    QUOTE (Paul Donnelly @ Mar 25 2011, 12:14 PM) <{POST_SNAPBACK}>
    Hi,

    How are you creating the first URL? Are you using our SDK?

    Thanks -Paul
    YQL Team
    0
  • Yes that is wrong.

    You need the SDK to form the URL which does the OAUTH signing. If you don't want to deal with OAUTH you can use the public endpoint, which means you'll have lower access limits..

    Per IP limits:

    /v1/public/*: 1,000 calls per hour; (not using OAUTH)
    /v1/yql/*: 10,000 calls per hour; (using OAUTH)

    The SDK is located here for various languages: https://github.com/yahoo/

    and the various languages are listed as yos-social-<lang> (eg. yos-social-php5, yos-social-java)

    Here is an example on how to sign your calls using php: http://developer.yahoo.com/yql/guide/yql-c...es.html#sdk_yql

    and java script: http://developer.yahoo.com/yui/3/examples/yql/yql-oauth.html


    Thanks -Paul
    YQL Team
    0
  • Hi Paul,

    I am using some OAuth library that has been used by me for years to access the Yahoo search, but I don't know what has changed, but this library was causing the issues I described above. Did you make the signing more strict? Thanks to some of your links, I ended up 'Googling' for a more simple and better OAuth class, since the libraries you are suggesting are way too complicated and big for my purpose, which is just a basic YQL search query. So, I found a new good and lightweight library: http://andy.edinborough.org/tag/yql

    Maybe a good one to suggest to your users who are looking for only basic request signing.

    Thank you for you help,
    Rolf
    0
  • HI Paul,

    It is very hard to use YQL. It's public url throws "table locked out" error most of the time.

    I tried to work with the SDK that you mentioned but it is too hard and complicated. When I have already provided consumer key and secret then why it is expecting me to sign in using my yahoo id. It just don't make any sense.

    Thanks,
    Mandeep.
    0
  • When I have already provided consumer key and secret then why it is expecting me to sign in using my yahoo id. It just don't make any sense.

    0

Recent Posts

in YQL