Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/03/2013, 06:28
charlyta
 
Fecha de Ingreso: junio-2008
Mensajes: 291
Antigüedad: 15 años, 10 meses
Puntos: 9
Actualizar twitter con tmhOAuth.php

Buenas. Antes de nada, decir que he leído la documentación oficiel del API de Twitter y la del código de tmhOAuth.php. Tras realizar los pasos adecuados una y mil veces, no he podido actualizar mi twitter. Los códigos de acceso son correctos y el app en twitter también. A ver qué se os puede ocurrir. Gracias de antemano. Por supuesto los de aquí abajo son falsos

Código PHP:
require 'tmhOAuth.php';
require 
'tmhUtilities.php';
$tmhOAuth = new tmhOAuth(array(

        
'consumer_key'               => 'Yke8Br9g04hfghdfh',
        
'consumer_secret'            => 'KdD3ztMsrrOILExnqUK6BfPeBZjuiWXcQghfgh',
        
'user_token'                 => '92957047-5Fd3zgF3cVJn2e62wyXPfgh',
        
'user_secret'                => 'UvtNsSyyLhUitwQyYT5SxKWcy7zFQj0FNghf',
));

$code $tmhOAuth->request('POST'$tmhOAuth->url('1/statuses/update'), array(
  
'status' => 'My Twitter Message'
));

if (
$code == 200) {
  
tmhUtilities::pr(json_decode($tmhOAuth->response['response']));
} else {
  
tmhUtilities::pr($tmhOAuth->response['response']);