require './tmhOAuth.php'; require './tmhUtilities.php';
$tmhOAuth = new tmhOAuth(array( 'consumer_key' => 'key', 'consumer_secret' => 'key', 'user_token' => 'key', 'user_secret' => 'key', 'curl_ssl_verifypeer' => false ));
$code = $tmhOAuth->request('POST', $tmhOAuth->url('1.1/statuses/update'), array( "status" => "$tweet_msg"));
if ($code == 200) { // tmhUtilities::pr(json_decode($tmhOAuth->response['response'])); echo"등록: $title_db ok<br>"; } else { tmhUtilities::pr($tmhOAuth->response['response']); echo"중복 fail<br>"; }
==================================================================
$code = $tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/update'), array( "
api 1.1 으로 업데이트 함 1은 작동 안함
$code = $tmhOAuth->request('POST', $tmhOAuth->url('1.1/statuses/update'), array( "
|