Forums / API
Possible bug in the Simple API
Forums
Forum Rules
-
Be nice
Even if you disagree with someone, keep it civil.
-
Stay on topic
If it’s not relevant, leave it out or start a new thread.
-
Don’t Spam
Re-re-re-re-posts drive us crazy.
-
Respect the Staff
We were members once, just like you.
Our Support Team
-
Mark
-
Ian
-
Tommy
-
Darnell
-
Zena
-
Rebecca
We’re here to help 10am–6pm Eastern, Monday–Friday.
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 Staff
You shouldn't be getting an error message, but that issue should be fixed now and will just return false.
Vinicius Teles
Brad,
Thanks a lot. It seems to be working just fine now.
Cheers,
Vinícius
Martin Müller
Bump:
Is it just me, or does the "page" parameter has no effect on the Simple API (v2)?
Example:
vimeo.com/api/v2/activity/brad/user_did.xml?page=1
is the same as
vimeo.com/api/v2/activity/brad/user_did.xml?page=3
but shouldn't according to the Simple API Documentation:
"Simple API responses include up to 20 items per page. By adding the page parameter to the URL, you can retrieve up to 3 pages of data."
Brad Dougherty Staff
Looks like this is just broken with activity. I'll get this fixed when I get a chance to.
Martin Müller
Thank you, this would be great!
Loyola University Plus
Did this page parameter issue ever get resolved?
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'));