Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter-Twitter Library
#21

[eluser]btray77[/eluser]
..deleted, figured out problem..

-Brad
#22

[eluser]alijanah[/eluser]
This may sound stupid but I’m a newbie to API programming but not a PHP or CodeIgniter newbie. I tried this API and have followed as per below :-

This is just an example, not necessarily the search call.

Code:
$this->load->library(’twitter’);
$this->twitter->auth(’user’, ‘pass’);
$timeline = $this->twitter->search(’trends’);
var_dump($timeline);

Now my question is that are all the calls to the API returned as a JSON object array ? Do I have to decode all the calls for the other functions as a JSON object ? Can anybody show some practical examples of a controller with a calls for this API which shows how to decode the JSON and also maybe passing it through the view.
Thanks.
#23

[eluser]Alan Wizemann[/eluser]
Great work, trying it out now. The RSS one from Elliot uses the '?' symbol in the URL. I don't like that, but his library works very well (FYI).
#24

[eluser]hugle[/eluser]
Hello everyone...
I somehow can't update my status..

I'm using this:
Code:
$this->load->library('twitter');
$this->twitter->auth('user','pass');
$out = $this->twitter->call('statuses/update', array('status' => 'trying the twitter lib'));
var_dump($out);
answer I get is: NULL

I have also changed config.php with
Code:
$config['permitted_uri_chars'] = 'a-z ? 0-9~%.:_\-';
$config['uri_protocol']    = "PATH_INFO";

I wonder why I still can't post the tweets to my account..?

Thank you
#25

[eluser]pragmatical[/eluser]
Hi hugle,
I have the same problem
#26

[eluser]hugle[/eluser]
[quote author="pragmatical" date="1276099555"]Hi hugle,
I have the same problem[/quote]
hi, try this:
http://ellislab.com/forums/viewthread/139557/




Theme © iAndrew 2016 - Forum software by © MyBB