I’m currently trying to use the Yahoo API directly with php. I already use the oauth-php library with some Google API and it works like a charm.
But the yahoo API don’t like authorization headers which oauth-php uses. I see the PECL Oauth has an option to select how the authorization parameter is sent but can’t find any equivalent in the almost non-existent documentation of oauth-php. So my question is: is it possible to select this method with oauth-php or should I start working on some patch ?
Edit: changed the title to reflect what the root cause of the problem was.
In case it can help another lost soul I got it at last.
So Oauth-php stores tokens in a varchar(64) field in the oauth_consumer_token table. At least, in the downloadable r175 version; it was changed to varchar(255) in the r188 source of the installer.
But Yahoo!’s token are a lot longer than that (790 bytes at least) which means you have to change the table structure to have the colum oct_token as TEXT. And to do that, you have to drop a foreign key then an index.
Modified library/store/mysql/mysql.sql :