[sorenson-dev] Getting videos by Categories

3 views
Skip to first unread message

everdaniel

unread,
May 5, 2010, 3:00:09 PM5/5/10
to Sorenson Media Developer Group
Hi everyone!

I'm trying to get a list of videos by categories, but first I need to
get a list of all of the categories in the account.

What I did so far was copied the s360_asset.php file as
s360_category.php and rewrote the find method (the do_post part) to
this:

$data = parent::do_post("/categories?accountId=" . $account-
>customerId .
'&sessionId=' . $account->sessionId .
'&token=' . $account->token);

However, it's not working, can someone tell me what I'm doing wrong?

Thanks!

Ever Daniel

--
Check out Sorenson Media Developer docs, videos and articles at
http://developers.sorensonmedia.com

You received this message because you are subscribed to the Google
Groups "Sorenson Media Developers" group.
To post to this group, send email to
sorenson-med...@googlegroups.com
To unsubscribe from this group, send email to
sorenson-media-dev...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sorenson-media-developers?hl=en

abruno

unread,
May 5, 2010, 6:50:52 PM5/5/10
to Sorenson Media Developer Group
Oi Ever Daniel!

We will be updating our Category API tonight. Please check tomorrow.
Also you need to login first. You also need to do a do_get("/
categories?...). You don't need to pass the accountId, etc with do_get
to get all the categories.

I hope this helps.
Ana

On May 5, 12:00 pm, everdaniel <everdan...@gmail.com> wrote:
> Hi everyone!
>
> I'm trying to get a list of videos by categories, but first I need to
> get a list of all of the categories in the account.
>
> What I did so far was copied the s360_asset.php file as
> s360_category.php and rewrote the find method (the do_post part) to
> this:
>
> $data = parent::do_post("/categories?accountId=" . $account->customerId .
>
>             '&sessionId=' . $account->sessionId .
>             '&token=' . $account->token);
>
> However, it's not working, can someone tell me what I'm doing wrong?
>
> Thanks!
>
> Ever Daniel
>
> --
> Check out Sorenson Media Developer docs, videos and articles athttp://developers.sorensonmedia.com
Reply all
Reply to author
Forward
0 new messages