CodeIgniter Forums
Haughin's twitter library, can't update status w/ basic auth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Haughin's twitter library, can't update status w/ basic auth (/thread-29790.html)



Haughin's twitter library, can't update status w/ basic auth - El Forum - 04-21-2010

[eluser]Noor[/eluser]
Hi everyone
Help me please.
I'm using elliot's twitter library, I can read some data (timeline), but I can't update my status with basic auth.


Haughin's twitter library, can't update status w/ basic auth - El Forum - 04-21-2010

[eluser]Phil Sturgeon[/eluser]
Why not post an error message or some example code? Otherwise we don't know what you doing (or what you are doing wrong).


Haughin's twitter library, can't update status w/ basic auth - El Forum - 04-25-2010

[eluser]Noor[/eluser]
Thank you for your reply phill, I like your libraries.

But I don't see any error message here.
Here's my code
Code:
$this->load->library('twitter');
            
$username = "twitter_username";
$password = "twitter_password";
            
$this->twitter->auth($username, $password);

$this->twitter->call('statuses', 'update', array('status' => $this->input->post('status')));

but it's working when I use to read timeline
Code:
$data['timeline'] = $this->twitter->call('statuses/user_timeline');



Haughin's twitter library, can't update status w/ basic auth - El Forum - 04-29-2010

[eluser]Unknown[/eluser]
Summer Student -

Did you find the answer? i'm facing the same problem even i can't show timeline for my profile..
Will you give me setting in your config/config.php ?

thanks alot


Haughin's twitter library, can't update status w/ basic auth - El Forum - 04-29-2010

[eluser]Phil Sturgeon[/eluser]
Well it doesn't matter as Basic Auth is being pulled within the next 8 weeks. Start using oAuth guys.