Vinicius Teles

Vinicius Teles

I believe there's a bug in the simple API, that has been introduced recently. When I try to fetch a JSON of a list of clips, passing as a parameter a page number that is invalid, I get a response that is not a JSON. So a program trying to deal with it freaks out because it can't parse the response.

For instance, the link below returns a valid JSON:

vimeo.com/api/user523055/clips.json?page=1

On the other hand, the link below returns a content that clearly isn't a JSON. Besides, this content really looks like an error in the PHP code of Vimeo.

vimeo.com/api/user523055/clips.json?page=2

Returns:

<br />
<b>Warning</b>: array_combine() [<a href='function.array-combine'>function.array-combine</a>]: Both parameters should have at least 1 element in <b>/home/production/vimeo/controllers/vimeo.controller.simpleapi.php</b> on line <b>150</b><br />
false

Is anyone else facing the same problem?

Thanks,

Vinícius

Brad Dougherty

Brad Dougherty Staff

You shouldn't be getting an error message, but that issue should be fixed now and will just return false.

Vinicius Teles

Vinicius Teles

Brad,

Thanks a lot. It seems to be working just fine now.

Cheers,

Vinícius

Brad Dougherty

Brad Dougherty Staff

Looks like this is just broken with activity. I'll get this fixed when I get a chance to.

Chibi Moku

Chibi Moku Plus

its possible to merge two pages?
$video1 = simplexml_load_string(curl_get($api_endpoint . '/videos.xml'));
$video2 = simplexml_load_string(curl_get($api_endpoint . '/videos.xml?page=2'));

This conversation is missing your voice. Please join Vimeo or log in.

Forums

Forum Rules

  1. Be nice

    Even if you disagree with someone, keep it civil.

  2. Stay on topic

    If it’s not relevant, leave it out or start a new thread.

  3. Don’t Spam

    Re-re-re-re-posts drive us crazy.

  4. Respect the Staff

    We were members once, just like you.

+ Learn more

Our Support Team

  • Mark Mark
  • Ian Ian
  • Tommy Tommy
  • Darnell Darnell
  • Zena Zena
  • Rebecca Rebecca

We’re here to help 10am–6pm Eastern, Monday–Friday.