[twitter-dev] Home_timeline after tweet destroy

2010-07-23 Thread luisg
Hi there...

I'm experience something strange, I think...
If I do a tweet destroy through my application and after that I get
the home_timeline with the property count=20, I'm not getting the 20
tweets that I should get. I'm getting just 19.
If I do another tweet destroy and execute home_timeline again, I will
get only 18... and so on...

Am I doing something wrong? Is there a way to force to get the 20
tweets?

Thanks,

Luis


[twitter-dev] Re: Home_timeline after tweet destroy

2010-07-23 Thread luisg
Hi Pascal,

Thanks for your reply.
What you mean with cursors?

I have a way to solve this problem:

1- get the home_timeline
2- count the number of tweets got from (1) and if length  20 I do
another home_timeline call with page=2

I think this might work. The problem is, I need to do 2 call to
Twitter and I don't think that's a good way...

That's the type of solution your mean? You have better solution?

Thanks a lot,

Luis

On Jul 23, 11:13 am, Pascal Jürgens
lists.pascal.juerg...@googlemail.com wrote:
 Hi Luis,

 I might be wrong there, but I think this is the way it works because of 
 twitter's caching and distribution architecture. You can never assume to get 
 the full amount of tweets or users - some might be filtered, deleted or 
 whatnot. If you need more, just get the next page/set using cursors.

 Pascal

 On 23.Jul2010, at 10:18, luisg wrote:

  Hi there...

  I'm experience something strange, I think...
  If I do a tweet destroy through my application and after that I get
  the home_timeline with the property count=20, I'm not getting the 20
  tweets that I should get. I'm getting just 19.
  If I do another tweet destroy and execute home_timeline again, I will
  get only 18... and so on...

  Am I doing something wrong? Is there a way to force to get the 20
  tweets?

  Thanks,

  Luis


[twitter-dev] Re: Home_timeline after tweet destroy

2010-07-23 Thread luisg
This means that the count property is not something that you can
trust, right?

Luis

On Jul 23, 11:40 am, luisg luisfmgoncal...@gmail.com wrote:
 Hi Pascal,

 Thanks for your reply.
 What you mean with cursors?

 I have a way to solve this problem:

 1- get the home_timeline
 2- count the number of tweets got from (1) and if length  20 I do
 another home_timeline call with page=2

 I think this might work. The problem is, I need to do 2 call to
 Twitter and I don't think that's a good way...

 That's the type of solution your mean? You have better solution?

 Thanks a lot,

 Luis

 On Jul 23, 11:13 am, Pascal Jürgens

 lists.pascal.juerg...@googlemail.com wrote:
  Hi Luis,

  I might be wrong there, but I think this is the way it works because of 
  twitter's caching and distribution architecture. You can never assume to 
  get the full amount of tweets or users - some might be filtered, deleted or 
  whatnot. If you need more, just get the next page/set using cursors.

  Pascal

  On 23.Jul2010, at 10:18, luisg wrote:

   Hi there...

   I'm experience something strange, I think...
   If I do a tweet destroy through my application and after that I get
   the home_timeline with the property count=20, I'm not getting the 20
   tweets that I should get. I'm getting just 19.
   If I do another tweet destroy and execute home_timeline again, I will
   get only 18... and so on...

   Am I doing something wrong? Is there a way to force to get the 20
   tweets?

   Thanks,

   Luis


[twitter-dev] Re: Home_timeline after tweet destroy

2010-07-23 Thread luisg
Hi,
Thanks for your replies.

@John: I check the documentation (http://dev.twitter.com/doc/get/
statuses/user_timeline), and there says:

Count
'Specifies the number of records to retrieve. Must be less than or
equal to 200. '

Tell me, f you read this, you associate the Cout option to a 'no more
than' or to a 'exactly'?
Reading the description I associate it to a 'exactly'... Just that.

I have to find another solution for what I'm trying to do.

Thanks a lot guys,

Luis

On Jul 23, 3:48 pm, John Kalucki j...@twitter.com wrote:
 The count parameter means 'no more than', not 'exactly'. We do read-repair
 on home timeline status_id-based vectors as we gather the statuses. It's not
 practical to fan-out deletes to the materialized home timeline vector. In
 nearly all display cases, displaying 19 or 20 tweets is equivalent. The
 client is either in a loop, paging through for a since_id, or the user is
 likely to click more anyway.

 -John Kaluckihttp://twitter.com/jkalucki
 Infrastructure, Twitter Inc.

 On Fri, Jul 23, 2010 at 1:18 AM, luisg luisfmgoncal...@gmail.com wrote:
  Hi there...

  I'm experience something strange, I think...
  If I do a tweet destroy through my application and after that I get
  the home_timeline with the property count=20, I'm not getting the 20
  tweets that I should get. I'm getting just 19.
  If I do another tweet destroy and execute home_timeline again, I will
  get only 18... and so on...

  Am I doing something wrong? Is there a way to force to get the 20
  tweets?

  Thanks,

  Luis


[twitter-dev] Re: Problems Loading Profile Images

2010-07-21 Thread luisg
I'm having the same problem too... But just sometimes.
Anyway, looks like Twitter is better now... At least is not so slow as
was a couple of weeks ago.

On Jul 21, 4:59 am, Ron rbther...@gmail.com wrote:
 Anyone noticing problems loading profile images (slow, no image
 returned, hanging...)?  Seems to show up mostly on Public and Search
 endpoints.


[twitter-dev] Re: Home_timeline and retweets

2010-07-19 Thread luisg
Well, that dont solve my problem!

If I use user_timeline I will get only the tweets and the retweets
done by me... I want that, but I want the tweets and the retweets done
by my followers (and the ones I'm following) too.

Open the following options in different tabs in your browser (imagine
your user is called XPTO):
1. login with XPTO account and go to http://twitter.com (this is
home_timeline)
2. access http://twitter.com/XPTO (this is user_timeline)

Can you see the differences now?

Basically I want home_timeline, but with the retweeted_status property
when is a retweet!

Luis


On Jul 8, 9:33 am, Steve 25tol...@gmail.com wrote:
 Perhaps *I'm* missing something but can't you just use the
 user_timeline for this? It's what I'm doing, and after discovering the
 include_rts flag you can get all your own activity in this one
 request.

 On a sidenote: the include_rts flag is mentioned 
 inhttp://dev.twitter.com/doc/get/statuses/user_timelinebut isn't
 mentioned 
 inhttp://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_t...
 which caused me some annoyance as I didn't know the former existed
 until very recently and had been using the latter as my development
 guide.

 On Jul 7, 12:55 pm,luisgluisfmgoncal...@gmail.com wrote:

  Hello,

  and thanks for your reply.
  When I said ridiculous, I don't meant to offend you cause I REALLY
  appreciate your work. I was just discussing my point of view. Sorry
  for that.

  About the retweets: Imagine I get my home_timeline. I will get the
  'normal' tweets (posted by me via web, for example), the retweets I
  did and the tweets (and retweets) done by the ones I'm following. The
  thing is, how can I identify if a element from the home_timeline is a
  'normal' tweet or a retweet done by me?

  For example, in the retweets done by the people you are following, you
  have the retweeted_status and with that I know that is a retweet
  instead of a 'normal' tweet by him/her. But with my own, I dont know.

  The goal is I want to add the Undo(retweet) in my application. To do
  the undo I need to know which of those are retweets.

  You understand my problem? Maybe I'm missing something. If so, I'm
  being ridiculous :)

  Thanks a lot,

  Luis

  On Jul 6, 7:01 am, Raffi Krikorian ra...@twitter.com wrote:

   i don't think ridiculous is the right term :P  we're constantly evolving
   the API to match up with what our developers are trying to do!

   so - that being said - what are you looking for?  are you trying to figure
   out which tweets on the home timeline has the authenticating user 
   retweeted?

   On Mon, Jul 5, 2010 at 2:58 PM,luisgluisfmgoncal...@gmail.com wrote:
So, instead of 1, now I have to do 2 call (one for the home_timeline
and another for the retweets_of_me).

I started to understand the 'Tiwtter is over capacity' error!

...ridiculous...

On Jul 5, 6:17 pm, Thomas Woolway priv...@tswoolway.co.uk wrote:
 I don't think that you're doing anything wrong - it's just a quirk of 
 the
 API - you don't get any info in your home timeline on stuff you
retweeted.

 I think this is because of the condition that you should never see a
retweet
 if you would have seen it already in your timeline. This stops you 
 from
 seeing the latest popular tweet retweeted 100 times from each of your
 followers if you follow the person who originally tweeted it. 
 However, I
 guess it also stops you seeing that you have retweeted a tweet, as
 theoretically you've already seen it.

 I think I've made that more complicated than it actually is...

 The only thing that you can do is to get the Home Timeline and then 
 merge
 retweets_of_me in over the top.

 Tom

 On Mon, Jul 5, 2010 at 4:03 PM,luisgluisfmgoncal...@gmail.com wrote:
  Can somebody help?

  Maybe I'm doing something wrong.
  For example, if account A has Account B as follower and vice-versa,
  and if account A retweets tweet XPTO made by account B, shouldn't 
  the
  tweet XPTO appear with retweet_status property if we request the
  home_timeline?

  Please help,

  Luis

  On Jul 3, 4:45 pm,luisgluisfmgoncal...@gmail.com wrote:
   Hello everybody,

   I'm having a problem lately with the retweets. In the API
   documentation and about the home_timeline says:

   'Returns the 20 most recent statuses, including retweets, posted 
   by
   the authenticating user and that user's friends. This is the
   equivalent of /timeline/home on the Web.'

   The problem is, when I request the home_timeline, none of my 
   tweets
   have the 'retweeted_status' that should be present if it is a
retweet.

   But if I request 'retweeted_by_me' I get all the information,
   including the 'retweeted_status'.

   Can someone tell me what's wrong? Something changed?

   Thanks,

   Luis

   --
   Raffi Krikorian
   Twitter 

[twitter-dev] Re: problem with statuses/destroy

2010-07-07 Thread luisg
Hello,

Actually I have that working, and I do noticed some strange behavior
too.

The thing I notice is, when you delete a tweet from your application,
and then if you get the tweets (through the API too) the tweet you
deleted before will not be there anymore. So, the thing really works.
But if you go to the Twitter webpage, the tweet remains there for a
while even if you refresh the page.
Is like if the Twitter web page is not synchronized with the results
from the API.

Maybe you are having the same problem...

Cumprimentos,

Luis

On Jul 7, 12:27 am, Matt Harris thematthar...@twitter.com wrote:
 Hi Claudia,

 Where are you seeing the Tweet get displayed? Is this on the website or
 through a particular API request?
 Matt

 On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari 



 claudia.avcalleg...@gmail.com wrote:
  Hello!
  I'm using the api statuses / destroy with OAuth to delete messages.
  Returns HTTP = 200, I see that decreases the amount of tweets that
  shows the profile of the account. But the message continues and it is
  not excluded.
  Got a problem with this api or is missing some procedure.
  Can you give me a light?

  Thanks
  Claudia A. V. Callegari
  Brazil

  In portuguese

  Ola !
  Estou usando a api statuses/destroy  com  oauth  para excluir
  mensagens.
  Retorna  http = 200 , vejo que diminui a quantidade de tweets que
  mostra no perfil da conta. Porém  a mensagem  continua la  e não é
  excluida.
  Tem algum problema com essa api  ou será que falta algum procedimento.
  Podem me dar uma luz ?

  Obrigada
  Claudia A. V. Callegari
  Brasil

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris


[twitter-dev] Re: Home_timeline and retweets

2010-07-07 Thread luisg
Hello,

and thanks for your reply.
When I said ridiculous, I don't meant to offend you cause I REALLY
appreciate your work. I was just discussing my point of view. Sorry
for that.

About the retweets: Imagine I get my home_timeline. I will get the
'normal' tweets (posted by me via web, for example), the retweets I
did and the tweets (and retweets) done by the ones I'm following. The
thing is, how can I identify if a element from the home_timeline is a
'normal' tweet or a retweet done by me?

For example, in the retweets done by the people you are following, you
have the retweeted_status and with that I know that is a retweet
instead of a 'normal' tweet by him/her. But with my own, I dont know.

The goal is I want to add the Undo(retweet) in my application. To do
the undo I need to know which of those are retweets.

You understand my problem? Maybe I'm missing something. If so, I'm
being ridiculous :)

Thanks a lot,

Luis


On Jul 6, 7:01 am, Raffi Krikorian ra...@twitter.com wrote:
 i don't think ridiculous is the right term :P  we're constantly evolving
 the API to match up with what our developers are trying to do!

 so - that being said - what are you looking for?  are you trying to figure
 out which tweets on the home timeline has the authenticating user retweeted?



 On Mon, Jul 5, 2010 at 2:58 PM, luisg luisfmgoncal...@gmail.com wrote:
  So, instead of 1, now I have to do 2 call (one for the home_timeline
  and another for the retweets_of_me).

  I started to understand the 'Tiwtter is over capacity' error!

  ...ridiculous...

  On Jul 5, 6:17 pm, Thomas Woolway priv...@tswoolway.co.uk wrote:
   I don't think that you're doing anything wrong - it's just a quirk of the
   API - you don't get any info in your home timeline on stuff you
  retweeted.

   I think this is because of the condition that you should never see a
  retweet
   if you would have seen it already in your timeline. This stops you from
   seeing the latest popular tweet retweeted 100 times from each of your
   followers if you follow the person who originally tweeted it. However, I
   guess it also stops you seeing that you have retweeted a tweet, as
   theoretically you've already seen it.

   I think I've made that more complicated than it actually is...

   The only thing that you can do is to get the Home Timeline and then merge
   retweets_of_me in over the top.

   Tom

   On Mon, Jul 5, 2010 at 4:03 PM, luisg luisfmgoncal...@gmail.com wrote:
Can somebody help?

Maybe I'm doing something wrong.
For example, if account A has Account B as follower and vice-versa,
and if account A retweets tweet XPTO made by account B, shouldn't the
tweet XPTO appear with retweet_status property if we request the
home_timeline?

Please help,

Luis

On Jul 3, 4:45 pm, luisg luisfmgoncal...@gmail.com wrote:
 Hello everybody,

 I'm having a problem lately with the retweets. In the API
 documentation and about the home_timeline says:

 'Returns the 20 most recent statuses, including retweets, posted by
 the authenticating user and that user's friends. This is the
 equivalent of /timeline/home on the Web.'

 The problem is, when I request the home_timeline, none of my tweets
 have the 'retweeted_status' that should be present if it is a
  retweet.

 But if I request 'retweeted_by_me' I get all the information,
 including the 'retweeted_status'.

 Can someone tell me what's wrong? Something changed?

 Thanks,

 Luis

 --
 Raffi Krikorian
 Twitter Platform Teamhttp://twitter.com/raffi


[twitter-dev] Re: problem with statuses/destroy

2010-07-07 Thread luisg
Maybe something with the browser cache, no?

On Jul 7, 1:24 pm, Claudia A. V. Callegari
claudia.avcalleg...@gmail.com wrote:
 Hi!

 After using my api for deleting tweets, I looked at the site own
 twitter.
 I did the test on another Internet site that also deletes tweets, he
 had the same problem.
 This morning, without changing anything in my api, I took the test
 again and it worked.
 I believe had some temporary problem on twitter.

 Thanks

 Hugs
 Claudia A. V. Callegari
 Brasil

 On 6 jul, 19:27, Matt Harris thematthar...@twitter.com wrote:

  Hi Claudia,

  Where are you seeing the Tweet get displayed? Is this on the website or
  through a particular API request?
  Matt

  On Tue, Jul 6, 2010 at 9:48 AM, Claudia A. V. Callegari 

  claudia.avcalleg...@gmail.com wrote:
   Hello!
   I'm using the api statuses / destroy with OAuth to delete messages.
   Returns HTTP = 200, I see that decreases the amount of tweets that
   shows the profile of the account. But the message continues and it is
   not excluded.
   Got a problem with this api or is missing some procedure.
   Can you give me a light?

   Thanks
   Claudia A. V. Callegari
   Brazil

   In portuguese

   Ola !
   Estou usando a api statuses/destroy  com  oauth  para excluir
   mensagens.
   Retorna  http = 200 , vejo que diminui a quantidade de tweets que
   mostra no perfil da conta. Porém  a mensagem  continua la  e não é
   excluida.
   Tem algum problema com essa api  ou será que falta algum procedimento.
   Podem me dar uma luz ?

   Obrigada
   Claudia A. V. Callegari
   Brasil

  --

  Matt Harris
  Developer Advocate, Twitterhttp://twitter.com/themattharris


[twitter-dev] Re: Home_timeline and retweets

2010-07-05 Thread luisg
Can somebody help?

Maybe I'm doing something wrong.
For example, if account A has Account B as follower and vice-versa,
and if account A retweets tweet XPTO made by account B, shouldn't the
tweet XPTO appear with retweet_status property if we request the
home_timeline?

Please help,

Luis


On Jul 3, 4:45 pm, luisg luisfmgoncal...@gmail.com wrote:
 Hello everybody,

 I'm having a problem lately with the retweets. In the API
 documentation and about the home_timeline says:

 'Returns the 20 most recent statuses, including retweets, posted by
 the authenticating user and that user's friends. This is the
 equivalent of /timeline/home on the Web.'

 The problem is, when I request the home_timeline, none of my tweets
 have the 'retweeted_status' that should be present if it is a retweet.

 But if I request 'retweeted_by_me' I get all the information,
 including the 'retweeted_status'.

 Can someone tell me what's wrong? Something changed?

 Thanks,

 Luis


[twitter-dev] Re: Home_timeline and retweets

2010-07-05 Thread luisg
So, instead of 1, now I have to do 2 call (one for the home_timeline
and another for the retweets_of_me).

I started to understand the 'Tiwtter is over capacity' error!

...ridiculous...


On Jul 5, 6:17 pm, Thomas Woolway priv...@tswoolway.co.uk wrote:
 I don't think that you're doing anything wrong - it's just a quirk of the
 API - you don't get any info in your home timeline on stuff you retweeted.

 I think this is because of the condition that you should never see a retweet
 if you would have seen it already in your timeline. This stops you from
 seeing the latest popular tweet retweeted 100 times from each of your
 followers if you follow the person who originally tweeted it. However, I
 guess it also stops you seeing that you have retweeted a tweet, as
 theoretically you've already seen it.

 I think I've made that more complicated than it actually is...

 The only thing that you can do is to get the Home Timeline and then merge
 retweets_of_me in over the top.

 Tom

 On Mon, Jul 5, 2010 at 4:03 PM, luisg luisfmgoncal...@gmail.com wrote:
  Can somebody help?

  Maybe I'm doing something wrong.
  For example, if account A has Account B as follower and vice-versa,
  and if account A retweets tweet XPTO made by account B, shouldn't the
  tweet XPTO appear with retweet_status property if we request the
  home_timeline?

  Please help,

  Luis

  On Jul 3, 4:45 pm, luisg luisfmgoncal...@gmail.com wrote:
   Hello everybody,

   I'm having a problem lately with the retweets. In the API
   documentation and about the home_timeline says:

   'Returns the 20 most recent statuses, including retweets, posted by
   the authenticating user and that user's friends. This is the
   equivalent of /timeline/home on the Web.'

   The problem is, when I request the home_timeline, none of my tweets
   have the 'retweeted_status' that should be present if it is a retweet.

   But if I request 'retweeted_by_me' I get all the information,
   including the 'retweeted_status'.

   Can someone tell me what's wrong? Something changed?

   Thanks,

   Luis


[twitter-dev] Re: Need example about get info twittercounter api

2010-07-05 Thread luisg
Not sure if you can get all that info with the Twitter API. But for
followers and tweets, you can get them using user/show:

...
followers_count1031/followers_count
...
statuses_count3390/statuses_count
...

check here: 
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0friends

The number of friends, maybe with this one:
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0friends

Luis

On Jul 5, 8:55 am, doremon dungdet...@gmail.com wrote:
 - Now i want to make site get some info like twittercounter.com, But i
 can not get full information like twittercounter . So i have some
 questions.
 1.The information at twittercounter.com only twittercounter can get
 from twitter ?
 ex : 866 Followers      616 Following   111 Tweets      #107,543
 Twitter rank
     -1 yesterday         -48 yesterday    +0 yesterday
 107,482
    +101 on average     -6 on average   +2 on average        yesterday

 - And information follow weekly, monthly, 3 monthly,... for draw
 amcharts.

 2. If twitter has support please help me how can register for get this
 information ( or i must payment for get this information).


[twitter-dev] Home_timeline and retweets

2010-07-03 Thread luisg
Hello everybody,

I'm having a problem lately with the retweets. In the API
documentation and about the home_timeline says:

'Returns the 20 most recent statuses, including retweets, posted by
the authenticating user and that user's friends. This is the
equivalent of /timeline/home on the Web.'

The problem is, when I request the home_timeline, none of my tweets
have the 'retweeted_status' that should be present if it is a retweet.

But if I request 'retweeted_by_me' I get all the information,
including the 'retweeted_status'.

Can someone tell me what's wrong? Something changed?

Thanks,

Luis


[twitter-dev] Re: Twitter Abrahams library

2010-06-24 Thread luisg
I manage with:

$CONSUMER_KEY = $this-config-item('CONSUMER_KEY');
$CONSUMER_SECRET = $this-config-item('CONSUMER_SECRET');

$connection = new TwitterOAuth($CONSUMER_KEY, $CONSUMER_SECRET);

$response = json_decode($connection-http('http://api.twitter.com/1/
statuses/public_timeline.json', 'GET'));

The $response object have the 20 most recent tweets.

Thanks

On Jun 23, 11:39 am, luisg luisfmgoncal...@gmail.com wrote:
 Hello all,

 I'm testing Abraham twitter library and works really nice.

 But I have a doubt for more simple stuff... Imagine that I want to do
 a call to twitter without authenticate first. For example, to get the
 last 20 public tweets I dont need to authenticate first, right? So,
 you have any example how to do it?

 I looked at the http method in twitteroauth class and I tried
 something like:

 $content = json_decode($connection-http('https://api.twitter.com/1/
 statuses/public_timeline.json', 'GET'));

 but my doubt is how can I create the $connection object? I tried
 something like:

 $connection = new TwitterOAuth($CONSUMER_KEY, $CONSUMER_SECRET);

 But didn't work.
 Can you help me?

 P.S.: sorry for the stupid question...


[twitter-dev] Twitter Abrahams library

2010-06-23 Thread luisg
Hello all,

I'm testing Abraham twitter library and works really nice.

But I have a doubt for more simple stuff... Imagine that I want to do
a call to twitter without authenticate first. For example, to get the
last 20 public tweets I dont need to authenticate first, right? So,
you have any example how to do it?

I looked at the http method in twitteroauth class and I tried
something like:

$content = json_decode($connection-http('https://api.twitter.com/1/
statuses/public_timeline.json', 'GET'));

but my doubt is how can I create the $connection object? I tried
something like:

$connection = new TwitterOAuth($CONSUMER_KEY, $CONSUMER_SECRET);

But didn't work.
Can you help me?

P.S.: sorry for the stupid question...



[twitter-dev] Re: Hi

2010-06-23 Thread luisg
Hi there...

Actually I'm using oauth with 2 diferent libraries: Haughin (http://
www.haughin.com/code/twitter/) and Abraham (http://github.com/abraham/
twitteroauth) for a web page I'm almost finishing.
But, I'm not sure if this will solve your problem...
I think that Twitter have some serious problems. I'm always getting a
'Twitter is over capacity' message, especially during the afternoon
(I'm in Holand, so GMT+1). In the morning works ok, and I think is
because people from America are sleeping :)
Am I right? You have this kind of problems too?

On Jun 23, 8:45 am, bharani kumar bharanikumariyer...@gmail.com
wrote:
 Hi ,

 I have  integrated twitter in my web site using PHP CURL , But its tooo slow
 , Most of the time am getting the TRY AGAIN ERROR

 Is there any alternate way for twitter ,

 I find there is another way using OAUTH ,

 Not sure but for that we should install the PEAR module ,

 Is there anything othere then OAuth service ,

 Thanks

 --
 Regards
 B.S.Bharanikumarhttp://php-mysql-jquery.blogspot.com/


[twitter-dev] Re: Twitter Oauth Integration

2010-06-22 Thread luisg
web or desktop?

On Jun 22, 3:35 pm, Anil kumar M.S ms.anilkuma...@gmail.com wrote:
 Hi All,
 Can you please help me in integrating Oauth to our app  ,

 thanks
 Anilkumar


[twitter-dev] Re: elliot haughin oAuth lib

2010-06-22 Thread luisg
Hello,

I'm using that library with CI too, but I did test that option...
what kind of issue?
BTW, you can retweet or edit user profile using haughin oAuth lib?

Thanks

On Jun 15, 7:41 pm, Peter Denton petermden...@gmail.com wrote:
 Hello,
 Is anyone using elliot haughin oAuth lib for codeigniter? If so, Im having
 an issue with $this-twitter-call('friendships/exists' and would love to
 know if you have had experienced issues with that as well.

 Cheers


[twitter-dev] Haughin library and update_profile

2010-05-31 Thread luisg
Hey,

I'm developing a web application using the Haughin library. It works
quite cool.

Now I was trying to update the user profile: name, location, url and
description but I not getting it... I'm doing like:

$user = $this-twitter-call('account/update_profile', array('name' =
$name, 'url' = $web, 'location' = $location, 'description' =
$desc));

But I'm getting an empty response and the profile is not updated...

Any of you did this before?


[twitter-dev] Re: One account to rule them all: questions

2010-04-21 Thread luisg
Hi,

Thanks for your reply!

About the usernames and passwords, I know that we should not send them
to twitter. We should give that information in
request_token.authorize_url

In my application, after I login with the 'main account' I have a link
'add account' that basically send user to twitter again to enter some
new credentials: the new sub account credentials that I want to add.
What happen is that I'm already login, so I get the message:

'An application would like to connect to your account
The application (app_name) by (company_name) would like the ability to
access and update your data on Twitter. Sign out if you want to
connect to an account other than (main_account).'

So, with this I have to options:
a) press 'Sign out' I will loose my main account session, but I don't
want that... I just want to retrieve the new sub account information
from twitter, but keep the same main session.
b) If I just press 'Allow' I will get the main account information,
that I don't need because I already have it.

I want the new sub account information - access token and secret - so
I can tweet to that account using just the main account.

so the flow is like:
enter my application -- press 'login with twitter' --- redirect_to
twitter --- enter main account credentials --- redirect back to my
application --- 'add account' option ---  redirect_to twitter ---
NOW WHAT?

Do you understand my problem?

On Apr 20, 4:05 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Luis,

 I first want to make very clear that you shouldn't store logins and
 passwords. Twitter's API will never return to you the password for a user,
 and with the exception of using xAuth for Desktop  Mobile applications, you
 should never be sending logins and passwords to the Twitter API. Basic Auth
 will be deprecated in June and you should basically act as if it doesn't
 exist now.

 If your application is a web application, you should be using OAuth to first
 establish a request token, then send the user to our OAuth Authorization
 screen where they'll enter their account credentials, after which they'll be
 sent to the oauth_callback URL (your application) that you specified in the
 request token step. You'll then exchange that request token for an access
 token, which you can then store in your database for further use until the
 permission is revoked by your user.

 Login with Twitter is not a means for you to store account credentials for
 re-use through mechanization or otherwise with the Twitter.com website.

 This diagram illustrates the OAuth flow 
 succinctly:http://oauth.net/core/diagram.png

 To Kovshenin's point, Twitter will be rolling out a Contributors API feature
 when it's ready. This allows for a single Twitter account to be managed by
 sub-accounts, so that @reallycoolcompany's tweets come from
 @reallycoolcompany but @jessica or @donald who work at @reallycoolcompany
 don't have to know the account credentials for @reallycoolcompany to tweet
 from the account. This is still a ways out.

 Hope this helps clear it up.

 Taylor Singletary
 Developer Advocate, Twitterhttp://twitter.com/episod



 On Tue, Apr 20, 2010 at 6:41 AM, luisg luisfmgoncal...@gmail.com wrote:
  Hello people,

  I'm trying to do something that I don't know if will work. Let me
  explain the main idea:

  1) A user 'login with twitter' in my application;
  2) This user should have the possibility to 'add account'. This means
  that, if a user owns more than 1 account, we will associate the 1st
  account (the one he logged in: main account) and the new he want to
  add (sub account). The goal is to tweet to sub-accounts as well as
  edit sub-account details from main account.

  The thing is, after I login with the main account, and if a want to
  add a new sub-account, I have to go to twitter, enter sub-account user
  and passwords, to get all the information so I can store in my DB.
  But, when I give this account name and password, I don't want to login
  (cause I'm already with the main account), I just want to retrieve the
  information (especially the access token and secret).

  Is possible to get access token and secret giving the account name and
  password but without login? Doing that with human interaction would be
  great, but I need to go to twitter always, right?

  Any of you have an idea how can I do this?

  Thanks,

  Luis Gonçalves

  --
  Subscription settings:
 http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] One account to rule them all: questions

2010-04-20 Thread luisg
Hello people,

I'm trying to do something that I don't know if will work. Let me
explain the main idea:

1) A user 'login with twitter' in my application;
2) This user should have the possibility to 'add account'. This means
that, if a user owns more than 1 account, we will associate the 1st
account (the one he logged in: main account) and the new he want to
add (sub account). The goal is to tweet to sub-accounts as well as
edit sub-account details from main account.

The thing is, after I login with the main account, and if a want to
add a new sub-account, I have to go to twitter, enter sub-account user
and passwords, to get all the information so I can store in my DB.
But, when I give this account name and password, I don't want to login
(cause I'm already with the main account), I just want to retrieve the
information (especially the access token and secret).

Is possible to get access token and secret giving the account name and
password but without login? Doing that with human interaction would be
great, but I need to go to twitter always, right?

Any of you have an idea how can I do this?

Thanks,

Luis Gonçalves


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] oauth authentication and Ruby (without rails)

2010-03-31 Thread luisg
Sorry to bother you, but I'm trying to do something here, but I don't
know if it's possible.
I'm trying to build a system where users send a text message from the
mobile and I need to create a tweet with that message content and the
user credentials that are associated to that mobile number.
I want that my application post tweets with the following structure:

(example2)
(USERNAME_A) message from userA
34 minutes ago via (APPLICATION_NAME)

(USERNAME_B) message from userB
35 minutes ago via (APPLICATION_NAME)

To do that, I registered a new application here: 
http://twitter.com/oauth_clients/new

After that I create this code (RUBY):

client = TwitterOAuth::Client.new(
   :consumer_key = @consumer_key,
   :consumer_secret = @consumer_secret
)
request_token = client.request_token

puts #{request_token.authorize_url}\n
puts Hit enter when you have completed authorization.
pin = STDIN.readline.chomp

access_token = client.authorize(
  request_token.token,
  request_token.secret,
  :oauth_verifier = pin
)

client.update('Tweet test...')

And with this I can tweet using oauth.

But I have 2 questions:
1- Can I use the same application to different users so I can do
tweets like shown in example 2 (diferentes users but the same
application name)?
2- Is there a way to insert the pin automatically without human
interaction? I tried to parse the page, but I think it's impossible,
because the PIN it's not in generated code...

Can you help me?

Thanks

Luis


-- 
To unsubscribe, reply using remove me as the subject.


[twitter-dev] Re: Tweeting with different users but same application?

2010-03-30 Thread luisg
No batches...
We are just building a system where people input their tweets via
mobile devices. we are using the database as spool for those messages
while they are being send out to twitter.
That's why I wanted to have the same application share by different
users, so I can have tweets like this:

(User) message from (user)
11:38 AM Mar 26th via (application_name)

Do you have any kind of solution for this?

On Mar 30, 12:02 am, John Meyer john.l.me...@gmail.com wrote:
 On 3/29/2010 1:05 PM, Abraham Williams wrote:

  How would it be against Twitter's TOS? A single application posting
  statuses for multiple accounts. Sounds like many popular and well known
  applications. If the application is misleading users or posting spam
  then those are subject to TOS violations and actions by Twitter.

  Since they are authenticated request the will be per user and not based
  on the IP.

 Depends upon the use.  A program sending out multiple updates from
 various users could be construed as spam depending upon the number of
 messages.  and what triggers the twit?  Is it an item being inserted or
 run as a batch all at one time?

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words REMOVE ME as the subject.


[twitter-dev] Tweeting with different users but same application?

2010-03-29 Thread luisg
Hello people.

I have a doubt here... Can you help me?

The thing is, I created a twitter account and my own twitter
application. Than I wrote a small Ruby program that allow me to post
tweets in twitter. So, my tweets are like:

(USERNAME_HERE) Tweet from backend ruby code...
11:38 AM Mar 26th via (APPLICATION_HERE)

Where USERNAME_HERE is the username associated to the owner of the
application and the APPLICATION_HERE is the name of the application I
created. This is working.
But I want to use the same application to post tweets with different
users. Something like:

User1 message from user1
11:38 AM Mar 26th via application_test

User2 message from user2
11:39 AM Mar 26th via application_test

User3 message from user3
11:40 AM Mar 26th via application_test

So, in this case you have different users (user1, user2 and user3)
using the same application (application_test). Is this possible?

Thanks

Luis

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words REMOVE ME as the subject.