tengo un gran problema tratando de conectar con las API's de VIMEO
tengo un codigo que lo q hace es mandarle parametros para q realice una busqueda en vimeo y de ahi me devuelva un xml bien formado apra q menipule la info, este codigo hasta la anterior semana funcionaba de la siguiente manera
Código PHP:
function getVimeoResults($string){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
"http://vimeo.com/api/rest/v2?api_key=d97bd3a6b70db944f4f04bfdca506bfe &method=vimeo.videos.search&query='$string' ");
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$resultado = curl_exec ($ch);
$xml = new SimpleXMLElement( $resultado);
var_dump($xml);
foreach ($xml->videos[0]->attributes() as $att => $val) {
.............
}
}
Código PHP:
<rsp generated_in="0.0055" stat="fail">
<err code="97" msg="Missing signature"/>
</rsp>
Código PHP:
GET / HTTP/1.1
Host: http://vimeo.com/api/rest/v2:80
Authorization: OAuth realm="http://http://vimeo.com/api/rest/v2/"
oauth_consumer_key="d97bd3a6b70db944f4f04bfdca506bfe%20%20"
oauth_token="d97bd3a6b70db944f4f04bfdca506bfe%20%20"
oauth_nonce="d97bd3a6b70db944f4f04bfdca506bfe%20%20"
oauth_timestamp="1577836800"
oauth_signature_method="HMAC-SHA1"
oauth_version="1.0"
oauth_signature="RbB34v21Ys6giwzVPMpyGUUjz2U%3D"
Código PHP:
http://vimeo.com/api/rest/v2/?api_key=d97bd3a6b70db944f4f04bfdca506bfe&oauth_consumer_key=d97bd3a6b70db944f4f04bfdca506bfe%20%20&oauth_nonce=d97bd3a6b70db944f4f04bfdca506bfe%20%20&oauth_timestamp=1577836800&oauth_signature_method=HMAC-SHA1&oauth_signature=RbB34v21Ys6giwzVPMpyGUUjz2U%3D
Código PHP:
<rsp generated_in="0.0505" stat="fail">
<err code="304" msg="Invalid nonce"/>
</rsp>
espero me puedan echar una mano
gracias por leer mi post
saludos