Welcome Guest, Not a member yet? Register   Sign In
Haughin twitter library and update profile
#1

[eluser]luisfmgoncalves[/eluser]
Hey guys...

I've been using Haughin's Twitter library and works quite cool! (BTW, thanks Elliot).

Now I'm trying to update the user profile from my web site but, using the same rules I do for all the other methods, dont seem to work... The method is not presented here: http://www.haughin.com/code/twitter/

But, if you open the twitter library, you can see that it is define in the methods array:

Code:
private $_methods = array(
     'statuses/public_timeline' => array('http' => 'get', 'auth' => FALSE),
     'statuses/friends_timeline' => array('http' => 'get', 'auth' => TRUE),
     'statuses/user_timeline' => array('http' => 'get',    'auth' => FALSE),
     ...
     [b]'account/update_profile' => array('http' => 'post', 'auth' => TRUE),[/b]
     ....

In my code I do (like to all other methods):

Code:
$data = $this->twitter->call('account/update_profile', array('name' => $name, 'url' => $web, 'location' => $location, 'description' => $bio));

I double checked the content of $name, $web, $location and $bio, and everything is correct. The cariable $data is empty when I can this method and the profile is not updated.

Any of you can help me?

Thanks

Luis Gonçalves
#2

[eluser]luisfmgoncalves[/eluser]
help?
#3

[eluser]luisfmgoncalves[/eluser]
I was doing something wrong... Done now.




Theme © iAndrew 2016 - Forum software by © MyBB