API search for media completely ignoring kind field

6 views
Skip to first unread message

vaibhav mishra

unread,
May 19, 2011, 5:39:00 PM5/19/11
to mis...@googlegroups.com
here is what I am requesting

/api/oauth/v1/media.json?q=Jack&type=TvShow&count=50

and PFA  response(redacted)

same goes for type=Movie

it looks like API si completely ingnoring that bit of information

vaibhav mishra

unread,
May 19, 2011, 5:40:07 PM5/19/11
to mis...@googlegroups.com


Justin Thibault

unread,
May 19, 2011, 6:52:36 PM5/19/11
to misoapi
Correct me if I'm misunderstanding the question, but I believe the
issue may be related to the parameter names you're passing. To
differentiate between tv shows and movies, the api expects a param
called "kind", and it seems like you're passing "type." On my end,
everything behaves as expected with the parameters

/api/oauth/v1/media.json?q=Jackass&kind=TvShow&count=50

params:
q: Jackass
kind: TvShow
count: 50

or

/api/oauth/v1/media.json?q=Jackass&kind=Movie&count=25

params:
q: Jackass
kind: Movie
count: 25

Let me know if I'm not answering the right question, or if this
doesn't resolve your issue.

Justin

On May 19, 2:40 pm, vaibhav mishra <vinu76...@gmail.com> wrote:
> <https://lh5.googleusercontent.com/_8IgrExDrA8Y/TdWOIRNq-3I/AAAAAAAACA...>

vaibhav mishra

unread,
May 19, 2011, 7:04:44 PM5/19/11
to mis...@googlegroups.com
you were right,
my bad,
thanks.
Reply all
Reply to author
Forward
0 new messages