Re: [twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-09-02 Thread Pablo Augusto
Thanks Matt,

I have just put all to work with new oauth autentication method.

Now i saw that search return different user_id from other apis... i just
search about and see that only way to
workarround is a reverse screen_name lookup. I'll do it.

Now I'm improving a php class to get more efficiency.

Thanks in advanced for yout time.


best regards,
*
*
 *Pablo Augusto*
 MSN: m...@pabloaugusto.com
SKYPE: sk...@pabloaugusto.com
EMAIL: cont...@pabloaugusto.com
SITE: http://webtags.com.br

 [image: Linkedin] http://linkedin.com/in/pabloaugusto [image:
Twitter]http://twitter.com/pabloaugusto
 [image: Facebook][image: Flickr]
http://flickr.com/photos/pabloaugusto [image:
Youtube] http://youtube.com/pabloaugustoo [image:
FormSpring]http://formspring.me/pabloaugust0 [image:
LastFM] http://lastfm.com.br/user/pabloaugustoo [image:
DeviantART]http://deviantart.com/pabloaugustoo [image:
Tumblr] http://pabloaugusto.tumblr.com/ [image:
Vimeo]http://vimeo.com/pabloaugusto [image:
del.icio.us] http://del.icio.us/pabloaugusto [image:
Slideshare]http://slideshare.net/pabloaugusto [image:
Friendfeed] http://friendfeed.com/pabloaugusto



On Wed, Sep 1, 2010 at 12:25, Matt Harris thematthar...@twitter.com wrote:

 Hey Pablo,

 The Search index is only 5 days so it makes sense you can only get results
 for that period. Your query is correct and will provide access to the
 information Search knows about.

  The Streaming API will allow you to receive results from the time you
 connect to the API onwards. Information about the Streaming API can be found
 on our developer resources site:
 http://dev.twitter.com/pages/streaming_api

 We have a list of community written libraries which might be of interest:
 http://dev.twitter.com/pages/oauth_libraries

 Best,
 Matt


 On Tue, Aug 31, 2010 at 8:01 AM, Pablo Augusto em...@pabloaugusto.comwrote:

 Thanks for the reply.

 I just tested and its ok, but only can ger results to 2010-08-28 from now.
 Hav any way to workarround this?

 //return null is lower than 28º day
 $request = 
 http://search.twitter.com/search.atom?q=from:user+keyword+since:2010-08-27rpp=100page=
 .$j;

 One question.
 Any one knows a updated class for the twiter api? Or can show me any
 example of a current working code to search api or streaming api?
 I had read that streaming api is best to monitoring keywords and track
 users. Anyone here has write a blog post about streaming api with php? Or
 search api with php?


 It's just working, but i want se some examples of best practices in this
 area.


 Thanks in advanced.


 [image: Pablo Augusto]
 *Design e Desenvolvimento*
 MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 TWITTER: @pabloaugusto
 SITE: http://pabloaugusto.com
  On Tue, Aug 31, 2010 at 03:21, Matt Harris thematthar...@twitter.comwrote:

 Hey Pablo,

 The reason you are getting 100 results is because you are passing a
 results per page (rpp) value of 100. To access the next 100 results you need
 to request the next page, which you can do by setting the parameter 'page'
 equal to the page you want.

 You can find out more about search on our developer resources site:
 http://dev.twitter.com/doc/get/search

 Hope that helps,
 Matt

 On Mon, Aug 30, 2010 at 6:34 PM, Pablo Augusto 
 em...@pabloaugusto.comwrote:


 Hello,

 I'm wondering if its possible to get back the twits from one account for
 last 3 days for example.
 im useing a class that do the follow search to capture tweets:

 $request  = 
 'http://search.twitter.com/search.'.$this-http://search.twitter.com/search.%27.$this-
 type;
  $request .= '?q='.urlencode($this-query);

 Using the methos of this class i do the fololow search:

 $search = new TwitterSearch();
 $search-from('@username');
 $search-contains('#hashtag');
 $search-since(22554873450);
 $results = $search-rpp(100)-results();

 But i only get the last 100 results (the newest ever)
 I just try to put a low number at SINCE:

 for example: $search-since(21554873450);

 Buts aver show the last newest results.


 Anyone knows how can i get results older than last 100 newest in any
 querry, class, function, etc?

 if anyone can help, ill be graceful.



 *
 *
 *Pablo Augusto*
  MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 SITE: http://webtags.com.br

  [image: Linkedin] http://linkedin.com/in/pabloaugusto [image:
 Twitter] http://twitter.com/pabloaugusto [image: Facebook][image:
 Flickr] http://flickr.com/photos/pabloaugusto [image: 
 Youtube]http://youtube.com/pabloaugustoo [image:
 FormSpring] http://formspring.me/pabloaugust0  [image: 
 LastFM]http://lastfm.com.br/user/pabloaugustoo [image:
 DeviantART] http://deviantart.com/pabloaugustoo [image: 
 Tumblr]http://pabloaugusto.tumblr.com/ [image:
 Vimeo] http://vimeo.com/pabloaugusto [image: 
 del.icio.us]http://del.icio.us/pabloaugusto [image:
 Slideshare] http://slideshare.net/pabloaugusto [image: 
 

Re: [twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-09-01 Thread Matt Harris
Hey Pablo,

The Search index is only 5 days so it makes sense you can only get results
for that period. Your query is correct and will provide access to the
information Search knows about.

The Streaming API will allow you to receive results from the time you
connect to the API onwards. Information about the Streaming API can be found
on our developer resources site:
http://dev.twitter.com/pages/streaming_api

We have a list of community written libraries which might be of interest:
http://dev.twitter.com/pages/oauth_libraries

Best,
Matt

On Tue, Aug 31, 2010 at 8:01 AM, Pablo Augusto em...@pabloaugusto.comwrote:

 Thanks for the reply.

 I just tested and its ok, but only can ger results to 2010-08-28 from now.
 Hav any way to workarround this?

 //return null is lower than 28º day
 $request = 
 http://search.twitter.com/search.atom?q=from:user+keyword+since:2010-08-27rpp=100page=
 .$j;

 One question.
 Any one knows a updated class for the twiter api? Or can show me any
 example of a current working code to search api or streaming api?
 I had read that streaming api is best to monitoring keywords and track
 users. Anyone here has write a blog post about streaming api with php? Or
 search api with php?


 It's just working, but i want se some examples of best practices in this
 area.


 Thanks in advanced.


 [image: Pablo Augusto]
 *Design e Desenvolvimento*
 MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 TWITTER: @pabloaugusto
 SITE: http://pabloaugusto.com
  On Tue, Aug 31, 2010 at 03:21, Matt Harris thematthar...@twitter.comwrote:

 Hey Pablo,

 The reason you are getting 100 results is because you are passing a
 results per page (rpp) value of 100. To access the next 100 results you need
 to request the next page, which you can do by setting the parameter 'page'
 equal to the page you want.

 You can find out more about search on our developer resources site:
 http://dev.twitter.com/doc/get/search

 Hope that helps,
 Matt

 On Mon, Aug 30, 2010 at 6:34 PM, Pablo Augusto em...@pabloaugusto.comwrote:


 Hello,

 I'm wondering if its possible to get back the twits from one account for
 last 3 days for example.
 im useing a class that do the follow search to capture tweets:

 $request  = 
 'http://search.twitter.com/search.'.$this-http://search.twitter.com/search.%27.$this-
 type;
  $request .= '?q='.urlencode($this-query);

 Using the methos of this class i do the fololow search:

 $search = new TwitterSearch();
 $search-from('@username');
 $search-contains('#hashtag');
 $search-since(22554873450);
 $results = $search-rpp(100)-results();

 But i only get the last 100 results (the newest ever)
 I just try to put a low number at SINCE:

 for example: $search-since(21554873450);

 Buts aver show the last newest results.


 Anyone knows how can i get results older than last 100 newest in any
 querry, class, function, etc?

 if anyone can help, ill be graceful.



 *
 *
 *Pablo Augusto*
  MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 SITE: http://webtags.com.br

  [image: Linkedin] http://linkedin.com/in/pabloaugusto [image:
 Twitter] http://twitter.com/pabloaugusto [image: Facebook][image:
 Flickr] http://flickr.com/photos/pabloaugusto [image: 
 Youtube]http://youtube.com/pabloaugustoo [image:
 FormSpring] http://formspring.me/pabloaugust0  [image: 
 LastFM]http://lastfm.com.br/user/pabloaugustoo [image:
 DeviantART] http://deviantart.com/pabloaugustoo [image: 
 Tumblr]http://pabloaugusto.tumblr.com/ [image:
 Vimeo] http://vimeo.com/pabloaugusto [image: 
 del.icio.us]http://del.icio.us/pabloaugusto [image:
 Slideshare] http://slideshare.net/pabloaugusto [image: 
 Friendfeed]http://friendfeed.com/pabloaugusto


  --
 Twitter developer documentation and resources:
 http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




 --


 Matt Harris
 Developer Advocate, Twitter
 http://twitter.com/themattharris

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API 

Re: [twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-08-31 Thread Matt Harris
Hey Pablo,

The reason you are getting 100 results is because you are passing a results
per page (rpp) value of 100. To access the next 100 results you need to
request the next page, which you can do by setting the parameter 'page'
equal to the page you want.

You can find out more about search on our developer resources site:
http://dev.twitter.com/doc/get/search

Hope that helps,
Matt

On Mon, Aug 30, 2010 at 6:34 PM, Pablo Augusto em...@pabloaugusto.comwrote:


 Hello,

 I'm wondering if its possible to get back the twits from one account for
 last 3 days for example.
 im useing a class that do the follow search to capture tweets:

 $request  = 'http://search.twitter.com/search.'.$this-type;
  $request .= '?q='.urlencode($this-query);

 Using the methos of this class i do the fololow search:

 $search = new TwitterSearch();
 $search-from('@username');
 $search-contains('#hashtag');
 $search-since(22554873450);
 $results = $search-rpp(100)-results();

 But i only get the last 100 results (the newest ever)
 I just try to put a low number at SINCE:

 for example: $search-since(21554873450);

 Buts aver show the last newest results.


 Anyone knows how can i get results older than last 100 newest in any
 querry, class, function, etc?

 if anyone can help, ill be graceful.



 *
 *
 *Pablo Augusto*
  MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 SITE: http://webtags.com.br

  [image: Linkedin] http://linkedin.com/in/pabloaugusto [image: 
 Twitter]http://twitter.com/pabloaugusto
  [image: Facebook][image: Flickr] http://flickr.com/photos/pabloaugusto 
 [image:
 Youtube] http://youtube.com/pabloaugustoo [image: 
 FormSpring]http://formspring.me/pabloaugust0 [image:
 LastFM] http://lastfm.com.br/user/pabloaugustoo [image: 
 DeviantART]http://deviantart.com/pabloaugustoo [image:
 Tumblr] http://pabloaugusto.tumblr.com/ [image: 
 Vimeo]http://vimeo.com/pabloaugusto [image:
 del.icio.us] http://del.icio.us/pabloaugusto [image: 
 Slideshare]http://slideshare.net/pabloaugusto [image:
 Friendfeed] http://friendfeed.com/pabloaugusto


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-08-31 Thread Pablo Augusto
Thanks for the reply.

I just tested and its ok, but only can ger results to 2010-08-28 from now.
Hav any way to workarround this?

//return null is lower than 28º day
$request = 
http://search.twitter.com/search.atom?q=from:user+keyword+since:2010-08-27rpp=100page=
.$j;

One question.
Any one knows a updated class for the twiter api? Or can show me any example
of a current working code to search api or streaming api?
I had read that streaming api is best to monitoring keywords and track
users. Anyone here has write a blog post about streaming api with php? Or
search api with php?


It's just working, but i want se some examples of best practices in this
area.


Thanks in advanced.


[image: Pablo Augusto]
*Design e Desenvolvimento*
MSN: m...@pabloaugusto.com
SKYPE: sk...@pabloaugusto.com
EMAIL: cont...@pabloaugusto.com
TWITTER: @pabloaugusto
SITE: http://pabloaugusto.com
 On Tue, Aug 31, 2010 at 03:21, Matt Harris thematthar...@twitter.comwrote:

 Hey Pablo,

 The reason you are getting 100 results is because you are passing a results
 per page (rpp) value of 100. To access the next 100 results you need to
 request the next page, which you can do by setting the parameter 'page'
 equal to the page you want.

 You can find out more about search on our developer resources site:
 http://dev.twitter.com/doc/get/search

 Hope that helps,
 Matt

 On Mon, Aug 30, 2010 at 6:34 PM, Pablo Augusto em...@pabloaugusto.comwrote:


 Hello,

 I'm wondering if its possible to get back the twits from one account for
 last 3 days for example.
 im useing a class that do the follow search to capture tweets:

 $request  = 
 'http://search.twitter.com/search.'.$this-http://search.twitter.com/search.%27.$this-
 type;
  $request .= '?q='.urlencode($this-query);

 Using the methos of this class i do the fololow search:

 $search = new TwitterSearch();
 $search-from('@username');
 $search-contains('#hashtag');
 $search-since(22554873450);
 $results = $search-rpp(100)-results();

 But i only get the last 100 results (the newest ever)
 I just try to put a low number at SINCE:

 for example: $search-since(21554873450);

 Buts aver show the last newest results.


 Anyone knows how can i get results older than last 100 newest in any
 querry, class, function, etc?

 if anyone can help, ill be graceful.



 *
 *
 *Pablo Augusto*
  MSN: m...@pabloaugusto.com
 SKYPE: sk...@pabloaugusto.com
 EMAIL: cont...@pabloaugusto.com
 SITE: http://webtags.com.br

  [image: Linkedin] http://linkedin.com/in/pabloaugusto [image: 
 Twitter]http://twitter.com/pabloaugusto
  [image: Facebook][image: Flickr] http://flickr.com/photos/pabloaugusto 
 [image:
 Youtube] http://youtube.com/pabloaugustoo [image: 
 FormSpring]http://formspring.me/pabloaugust0 [image:
 LastFM] http://lastfm.com.br/user/pabloaugustoo [image: 
 DeviantART]http://deviantart.com/pabloaugustoo [image:
 Tumblr] http://pabloaugusto.tumblr.com/ [image: 
 Vimeo]http://vimeo.com/pabloaugusto [image:
 del.icio.us] http://del.icio.us/pabloaugusto [image: 
 Slideshare]http://slideshare.net/pabloaugusto [image:
 Friendfeed] http://friendfeed.com/pabloaugusto


  --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




 --


 Matt Harris
 Developer Advocate, Twitter
 http://twitter.com/themattharris

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] How to get results older than last 100 tweets from a profile or search

2010-08-30 Thread Pablo Augusto
Hello,

I'm wondering if its possible to get back the twits from one account for
last 3 days for example.
im useing a class that do the follow search to capture tweets:

$request  = 'http://search.twitter.com/search.'.$this-type;
 $request .= '?q='.urlencode($this-query);

Using the methos of this class i do the fololow search:

$search = new TwitterSearch();
$search-from('@username');
$search-contains('#hashtag');
$search-since(22554873450);
$results = $search-rpp(100)-results();

But i only get the last 100 results (the newest ever)
I just try to put a low number at SINCE:

for example: $search-since(21554873450);

Buts aver show the last newest results.


Anyone knows how can i get results older than last 100 newest in any querry,
class, function, etc?

if anyone can help, ill be graceful.



*
*
*Pablo Augusto*
 MSN: m...@pabloaugusto.com
SKYPE: sk...@pabloaugusto.com
EMAIL: cont...@pabloaugusto.com
SITE: http://webtags.com.br

 [image: Linkedin] http://linkedin.com/in/pabloaugusto [image:
Twitter]http://twitter.com/pabloaugusto
 [image: Facebook][image: Flickr]
http://flickr.com/photos/pabloaugusto [image:
Youtube] http://youtube.com/pabloaugustoo [image:
FormSpring]http://formspring.me/pabloaugust0 [image:
LastFM] http://lastfm.com.br/user/pabloaugustoo [image:
DeviantART]http://deviantart.com/pabloaugustoo [image:
Tumblr] http://pabloaugusto.tumblr.com/ [image:
Vimeo]http://vimeo.com/pabloaugusto [image:
del.icio.us] http://del.icio.us/pabloaugusto [image:
Slideshare]http://slideshare.net/pabloaugusto [image:
Friendfeed] http://friendfeed.com/pabloaugusto

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en