Correct tweeter url for posting tweets
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Tue, 16 Oct 2012 10:01:10 +0200
changeset 703 a0772dbfb936
parent 702 9287df3d235a
child 704 5cb9af039528
Correct tweeter url for posting tweets
web/tweet_ajax.php
--- a/web/tweet_ajax.php	Mon Oct 15 19:11:47 2012 +0200
+++ b/web/tweet_ajax.php	Tue Oct 16 10:01:10 2012 +0200
@@ -18,7 +18,7 @@
      */
     $token = unserialize($_SESSION['TWITTER_ACCESS_TOKEN']);
     $client = $token->getHttpClient($configuration);
-    $client->setUri('http://twitter.com/statuses/update.json');
+    $client->setUri('https://api.twitter.com/1.1/statuses/update.json');
     $client->setMethod(Zend_Http_Client::POST);
     $client->setParameterPost('status', $_POST['status']);
     $response = $client->request();