Welcome Guest, Not a member yet? Register   Sign In
MeNeedz Twitter
#41

[eluser]Naveen Reddy[/eluser]
thank you so much... It worked!!
Well I was calling user timeline.. this is my controller code:
Code:
$twitusername = $this->input->post('twitusername');

         $twitpassword = $this->input->post('twitpassword');


         $this->load->library('twitter');
        $config['username'] = $twitusername;
          $config['password'] = $twitpassword;

          $this->twitter->init($config);
          $data=array();
     $data = $this->twitter->statuses_user_timeline();
    echo "<pre>";
     echo var_dump($data);
    
     echo "</pre>";

    echo $data[0]->user->followers_count;
And now I know the way to fetch the data from the returned array.
Just inquisitively want to know one thing.. Am I doing something wrong!?
And if any one can give me a clue that how to send the data received from the twitter to views?!
#42

[eluser]garycocs[/eluser]
Hi,

Just wondering if your library stopped working now the oAuth is up and running on twitter?

Thanks
Gary
#43

[eluser]hooflung64[/eluser]
Yep it is not working here. Such a shame this was such a great library.

Code:
Array ( [0] => HTTP/1.1 401 Unauthorized Date: Thu, 16 Sep 2010 17:44:03 GMT Server: hi Status: 401 Unauthorized WWW-Authenticate: OAuth realm="http://api.twitter.com" X-RateLimit-Limit: 0 X-RateLimit-Remaining: 0 X-Runtime: 0.01179 Content-Type: application/json; charset=utf-8 Content-Length: 74 X-RateLimit-Class: api Cache-Control: no-cache, max-age=300 X-RateLimit-Reset: 1284661880 Set-Cookie: k=98.70.63.177.1284659043637451; path=/; expires=Thu, 23-Sep-10 17:44:03 GMT; domain=.twitter.com Set-Cookie: guest_id=128465904363863150; path=/; expires=Sat, 16 Oct 2010 17:44:03 GMT Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCD1dpRsrAToHaWQiJTE0ZWE0M2E5YTYwZDgx%0AOGZiN2UxODNhNTc1ZjA2OGExIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%0AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--592d3c1a501f30a96a94cb22b9a2f1ce0096f71c; domain=.twitter.com; path=/ Expires: Thu, 16 Sep 2010 17:49:03 GMT Vary: Accept-Encoding X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Connection: close [1] => stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [code] => 53 [message] => Basic authentication is not supported ) ) ) ) invalid




Theme © iAndrew 2016 - Forum software by © MyBB