Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Filter on custom parameter

6 replies [Last post]
Reply

Hi,

I created a custom parameter user_id to store the joomla user id with the video upload. I can easily sfilter on author, limit results etc. but how can i filter on my custom parameter?

Thnx!

Jelle

Reply

Unfortunately custom fields are only "dumb storage". That means that custom fields can not be filtered or sorted. While we do want to introduce that as a feature at some point, we don't know when we will introduce this.

Reply

Today we rolled out an update that allows for filtering by custom parameter.

See http://developer.longtailvideo.com/botr/system-api/methods/videos/list.html

Reply

Great!
Do I need to update php library?
Because it's not working for me...

My url looks something like this:

http://api.bitsontherun.com/v1/videos/list?direction=asc&order_by=date%253Adesc&result_limit=10&cust...

Before i used the author parameter so it looked like this:

http://api.bitsontherun.com/v1/videos/list?direction=asc&order_by=date%253Adesc&result_limit=10&auth...

That was working fine, or am I missing something here??

Reply

The API kit has not changed, but I see that in your querystring, you are not using the search: operator as is mentioned in the docs.

Reply

Thanx for the quick response!
You're right. I did custom.user_id = 79 where I should have done search:custom.user_id = 79.Now it works.

Is it possible to only return videos where there is an exact match?
Because if there's a video with user_id = 799 it will also retun that one..

Reply

Or is this where tags are for..

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options