0

Desperately need help - can't send Accept headers via YQl

Hi everyone!
Wasted the whole day and can't understand where i'm wrong.
I'm trying to use the moviedb api, the eqistying tables support deprecated 2.1 api, so i decided to develope a table, supporting v3. (api documentation: http://docs.themoviedb.apiary.io/#people)

Initially I just wanted to use fetch data module from yahoo pipes but http error 406 was always returned.

Then I read doucmentation where it was said "Accept: application/json" header needed.

I spent many hours trying to understand how to send this header.... with no succes (tried several things such as y.execute() etc.)

Finally, I decided to create my own table, especially when it looked so simple (thanks to the sticky post here)
I also found in documentation that paramType="header" could be used.

My futile efforts resulted in https://raw.github.com/bromium/yql-tables/master/themoviedb3/person/credits/themoviedb3.person.credits.xml
But still with no succes, as you may notice i tried various ways (using paramType and various javascript statements) - but couldn't succeed.

I always was receiving null as a result, i tried it in console and in YQL yahoo pipes module. Nothing.

So I desperately nned help form the community, because I don't know how to overcome this irritating obstacle (I seem to be doing everything right, but the result is negative)




by
2 Replies
  • In addition: moreover, I checked the responce using debugging tools in api (through apiary.io/)
    It sayst the api request is valid, so why is yql always returning null results? what am i doing wrong? is this a bug in yql which wasted 2 days of my life?
    0
  • I just signed up for apiary.io for an API key.. waiting for an invite before I can test our your table.

    Thanks -Paul
    YQL Team
    0

Recent Posts

in YQL