Welcome Guest, Not a member yet? Register   Sign In
Twitter library ported to CodeIgniter
#1

[eluser]taewoo[/eluser]
Ported from My Twitter PHP library with minor PHP error fixes. I'm leaving the original credits FYI..

Also, instead of echoing error, i changed it so that error is thrown so you know exactly where the code breaks.

Syntax:
Code:
$this->load->library('Twitter_Lib');
$this->twitter_lib->set_user_password($username, $password);
        
try {
   $this->twitter_lib->updateStatus($message);
}
catch(Exception $e)
{
   echo $e->getMessage(); return;
}
#2

[eluser]taewoo[/eluser]
I can't attach PHP files and this code is too long to copy/paste... where can i upload?
#3

[eluser]pistolPete[/eluser]
The wiki is the appropriate place: http://codeigniter.com/wiki/Special:Uploads
#4

[eluser]taewoo[/eluser]
I did this
- cp Twitter_Lib.php Twitter_Lib.php.txt
- then upload the Twitter_Lib.php.txt file

i still get the same error (as when I upload the .php file)

"The file you are attempting to upload has invalid content for its MIME type."
#5

[eluser]pistolPete[/eluser]
This might be the same issue as here: http://ellislab.com/forums/viewthread/106560/
#6

[eluser]taewoo[/eluser]
Ok. Got it
http://codeigniter.com/wiki/File:Twitter_Lib.tgz/




Theme © iAndrew 2016 - Forum software by © MyBB