Solutions-Nitriques/oembed_field — Issue #17: IP blocking vimeo musings
Author: andrewminton
Created: 2011-11-26 12:17:58+00:00
State: open

Hey Nitriques, I know we've discussed this before and this isn't a Oembed Field issue as such, but it might effect others on Shared Hosting if the range of IP's they are using are used excsessively on the Vimeo API and they end up having the IP range blocked.

Is there anything we can do with this approach for Vimeo specifically to provide more info to the API in the driver using this method?

This code is from the Vimeo API forum:

$id = 'vimeo video id';
$url = "vimeo.com/api/v2/video/$id.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$stringData = curl_exec($ch);
curl_close($ch);
$objectData = unserialize($stringData);

Not sure where I'd place this in the Code if at all?