From e2d4a6e24b2840bc94708b0b81516231880d928b Mon Sep 17 00:00:00 2001 From: xsuchy09 Date: Thu, 13 Jun 2013 09:47:49 +0300 Subject: [PATCH] Update tweet.php It is needed to use API v 1.1. API v1 is retired. --- tweet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweet.php b/tweet.php index 9036e23..4e8667f 100644 --- a/tweet.php +++ b/tweet.php @@ -29,7 +29,7 @@ 'user_secret' => 'A_USER_SECRET', )); -$code = $tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/update'), array( +$code = $tmhOAuth->request('POST', $tmhOAuth->url('1.1/statuses/update'), array( 'status' => 'My Twitter Message' )); @@ -37,4 +37,4 @@ tmhUtilities::pr(json_decode($tmhOAuth->response['response'])); } else { tmhUtilities::pr($tmhOAuth->response['response']); -} \ No newline at end of file +}