[twitter-dev] Re: Updating the APIs authentication limiting policy

2009-08-02 Thread Jesse Stay
A timeframe would be very helpful. This is turning out to be a headache as
I'm testing. If my own user is having to log in over and over to test my
app, I'm quickly hitting the verify_credentials limit (and I'm even using
OAuth).  I'm getting really frustrated.
Jesse

On Fri, Jul 31, 2009 at 8:01 PM, Bob Thomson stormid...@googlemail.comwrote:


 Hi Doug,

 Is there a timescale for rolling back / making the change to the new
 scheme?

 We're just putting the finishing touches to moving to OAuth and we're
 experiencing the issue when using verify_credentials to get the users
 basic details once we've got the token back from the authentication
 process. We're experiencing the issue when:

 1. Testing our login and authentication processes
 2. When users login and logout of our application frequently

 A heads up on when these changes will be made would be useful. Thanks,

 Bob

 On Jul 29, 6:37 pm, Grant Emsley grant.ems...@gmail.com wrote:
  Locked out of authenticated resources for that account, or will that
  IP not be able to login to any account?
 
  On Jul 29, 1:14 pm, Doug Williams d...@twitter.com wrote:
 
   Ray,For clarity, we will roll back the current restriction of 15 calls
 per
   user per hour to account/verify_credentials, and implement the proposed
   scheme:
 
... we will limit the total number of unsuccessful
attempts to access authenticated resources to 15 an hour per user per
 IP
address. If a single IP address makes 15 attempts to access a
protected resource unsuccessfully for a given user (as indicated by
 an
   HTTP 401),
then the user will be locked out of authenticated resources from that
IP address for 1 hour.
 
   Thanks,
   Doug
 
   On Wed, Jul 29, 2009 at 9:51 AM, Ray rvizz...@testlabs.com wrote:
 
Doug,
 
I'm in a similar situation as that voiced by TinBlue.  This change
 has
affected our iPhone App.  We also want to encourage you to rollback
this change ASAP.
 
When you say This approach is what we are going to take., do you
mean rolling back the fix so as not to affect multiple, successful,
authorized logins?  I'm hopeful that this approach means that our
apps will not be affected yet again by changing to a new auth
approach.
 
I appreciate you all keeping this thread informed.
 
Ray
 
On Jul 27, 11:23 am, Doug Williams d...@twitter.com wrote:
 Thanks to everyone who has contributed feedback. This approach is
 what we
 are going to take.
 Alex will be making this change shortly. I will update this thread
 when
 there is timeframe to share.
 
 Thanks,
 Doug
 
 On Mon, Jul 27, 2009 at 7:52 AM, TinBlue tinb...@gmail.com
 wrote:
 
  What is happening?
 
  This rollback is taking far too long for something that has
 affected a
  lot of people!
 
  On Jul 25, 2:32 pm, Dewald Pretorius dpr...@gmail.com wrote:
   Doug,
 
   I would prefer to adopt OAuth instead of writing code for Basic
 Auth.
 
   So, you guys need to move OAuth out of public beta into full
   production sooner rather than later. :-)
 
   I manage 100,000+ Twitter accounts, and I simply cannot take on
 the
   support workload of answering user tickets when there's a snag
 with
   OAuth beta.
 
   I monitor these forums and the API Issues and still see too
 many
OAuth
   issues being reported to give me a level of comfort that I can
 safely
   switch over to OAuth.
 
   On Jul 24, 5:46 pm, Doug Williams d...@twitter.com wrote:
 
Well said Joshua.
 
Dewald, you have identified the risk of using basic
 authentication.
If
your users being locked out due to malicious behavior, you
 should
either implement further user-level rate limiting on your
 side or
adopt OAuth.
 
Are there any other glaring omissions in our thinking or
 should we
proceed with this as our solution?
 
Thanks,
Doug
 
On Fri, Jul 24, 2009 at 11:08 AM, Joshua Perryj...@6bit.com
 
wrote:
 
 Jim's concern is valid, fortunately OAuth is immune to
brute-force
  attacks
 once the access key has been issued to an application. For
 this
  reason alone
 I would urge people to switch to OAuth if at all possible.
  I
would
  hope
 (and assume) that if login attempts for an account are
 locked out
  that a
 user would still be able to successfully use an already
authorized
  OAuth
 driven application.
 
 Unfortunately allowing a successful un/pw login while an
 account
is
  locked
 out even when the correct password is presented effectively
bypasses
  the
 whole reason for a lockout in the first place, preventing
brute-force
 password attempts.  If an attacker used a dictionary or
brute-force
  attack
 and the account was locked out after 15 attempts, then they
 could
  

[twitter-dev] Submitting Actionscript OAuth Library

2009-08-02 Thread Coderanger

I have created an Actionscript class and examples for using OAuth in
Flex/Air. How do I go about adding this to the OAuth examples page for
others to use?


[twitter-dev] Re: Submitting Actionscript OAuth Library

2009-08-02 Thread Duane Roelands

This is a good question.  I'd like to submit the TwitterOAuth library
I use for .NET, as well.

On Aug 2, 4:15 am, Coderanger d...@coderanger.com wrote:
 I have created an Actionscript class and examples for using OAuth in
 Flex/Air. How do I go about adding this to the OAuth examples page for
 others to use?


[twitter-dev] Re: Showing Twitter profile information on OAuth sites - rate limit problem

2009-08-02 Thread Duane Roelands

Caching the data seems like the right solution.  Profile ins't the
sort of stuff that changes daily.  I would think you could update an
individual profile daily (or less).

On Aug 1, 7:14 pm, Scott Aikin haw...@gmail.com wrote:
 I've got an OAuth site that lets people register through Twitter to
 create a profile and post to my site.  When you see comments or posts
 by these users I show their Twitter profile information and have been
 retrieving it with users/show.  The problem is that I can only show
 this information 150 times each hour which quickly runs out.  What is
 the best-practices method for accomplishing this?  Do I need to cache
 their profile information and update it via my crontab?  I like the
 real-time nature of my current solution, but with the 150 limit it's
 just not going to work.  Any suggestions?


[twitter-dev] Re: Submitting Actionscript OAuth Library

2009-08-02 Thread Abraham Williams
You can email the links here or to a...@twitter.com

Abraham

On Sun, Aug 2, 2009 at 06:34, Duane Roelands duane.roela...@gmail.comwrote:


 This is a good question.  I'd like to submit the TwitterOAuth library
 I use for .NET, as well.

 On Aug 2, 4:15 am, Coderanger d...@coderanger.com wrote:
  I have created an Actionscript class and examples for using OAuth in
  Flex/Air. How do I go about adding this to the OAuth examples page for
  others to use?




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] Fun140 and Truetwit developers

2009-08-02 Thread Aaron Brazell
I'm assuming whoever the developer is behind these two sites is also on this
list. There is a lot of concern among twiytter users about your apps sending
auto dms to people. It's perceived as abusive and spammy and I agree. After
getting a tweaked toucan in my DM inbox, I wonder why I have to put up
with this. Unfortunately, unlike Facebook, users can't opt out of these
spammy things.
I've asked Twitter to look into your apps, but I'm also making a personal
plea to figure out another way of doing this and allowing people to opt out
of messages from your apps. Or better yet, opt in.

-- 
Aaron Brazell
web:: www.technosailor.com
phone:: 410-608-6620
skype:: technosailor
twitter:: @technosailor


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Dale Merritt
I think that should be standard.  Opt in only (put in Twitter TOS)

On Sun, Aug 2, 2009 at 7:47 AM, Aaron Brazell emmenset...@gmail.com wrote:

 I'm assuming whoever the developer is behind these two sites is also on
 this list. There is a lot of concern among twiytter users about your apps
 sending auto dms to people. It's perceived as abusive and spammy and I
 agree. After getting a tweaked toucan in my DM inbox, I wonder why I have
 to put up with this. Unfortunately, unlike Facebook, users can't opt out of
 these spammy things.
 I've asked Twitter to look into your apps, but I'm also making a personal
 plea to figure out another way of doing this and allowing people to opt out
 of messages from your apps. Or better yet, opt in.

 --
 Aaron Brazell
 web:: www.technosailor.com
 phone:: 410-608-6620
 skype:: technosailor
 twitter:: @technosailor




-- 
Dale Merritt
Fol.la MeDia, LLC


[twitter-dev] Re: Newbie Question about signing requests

2009-08-02 Thread JDG
http://oauth.net/core/1.0/#signing_process

On Sat, Aug 1, 2009 at 17:16, CB claudijo.boro...@gmail.com wrote:


 I am testing the Twitter API for a Firefox extension I am writing, and
 trying out the OAuth flow for desktop clients, as described on
 http://twitterapi.pbworks.com/Authentication.

 I get stuck in the very first step The application uses oauth/
 request_token to obtain a request token from twitter.com. and have a
 newbie question about the signing.

 I construct a GET request which looks similar to this:

 http://twitter.com/oauth/request_token?oauth_consumer_key=
 my_clients_consumer_keyoauth_signature_method=HMAC-SHA1oauth_timestamp=my_time_stampoauth_nonce=my_nonce?oauth_signature=missing_this_part???

 My question: What string is actually to be signed with HMAC-SHA1 and
 included as value for oauth_signature? (I am using the sha1 javascript
 implementation from http://pajhome.org.uk/crypt/md5/)

 I figure I should encode my client's consumer secret with my client's
 consumer key, but I only get Failed to validate oauth signature and
 token.

 Sorry for this dumb question, but I hope someone can point me in the
 right direction.

 Thanks.




-- 
Internets. Serious business.


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Jesse Stay
Agreed.  These things have to stop.

On Sun, Aug 2, 2009 at 10:53 AM, Dale Merritt mogul...@gmail.com wrote:

 I think that should be standard.  Opt in only (put in Twitter TOS)


 On Sun, Aug 2, 2009 at 7:47 AM, Aaron Brazell emmenset...@gmail.comwrote:

 I'm assuming whoever the developer is behind these two sites is also on
 this list. There is a lot of concern among twiytter users about your apps
 sending auto dms to people. It's perceived as abusive and spammy and I
 agree. After getting a tweaked toucan in my DM inbox, I wonder why I have
 to put up with this. Unfortunately, unlike Facebook, users can't opt out of
 these spammy things.
 I've asked Twitter to look into your apps, but I'm also making a personal
 plea to figure out another way of doing this and allowing people to opt out
 of messages from your apps. Or better yet, opt in.

 --
 Aaron Brazell
 web:: www.technosailor.com
 phone:: 410-608-6620
 skype:: technosailor
 twitter:: @technosailor




 --
 Dale Merritt
 Fol.la MeDia, LLC



[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Kevin Mesiab
While I laud them for what is obviously a successful campaign, this is
getting a little ridiculous... http://screencast.com/t/XB7jPjnBWlr


On Sun, Aug 2, 2009 at 7:04 AM, Jesse Stay jesses...@gmail.com wrote:

 Agreed.  These things have to stop.


 On Sun, Aug 2, 2009 at 10:53 AM, Dale Merritt mogul...@gmail.com wrote:

 I think that should be standard.  Opt in only (put in Twitter TOS)


 On Sun, Aug 2, 2009 at 7:47 AM, Aaron Brazell emmenset...@gmail.comwrote:

 I'm assuming whoever the developer is behind these two sites is also on
 this list. There is a lot of concern among twiytter users about your apps
 sending auto dms to people. It's perceived as abusive and spammy and I
 agree. After getting a tweaked toucan in my DM inbox, I wonder why I have
 to put up with this. Unfortunately, unlike Facebook, users can't opt out of
 these spammy things.
 I've asked Twitter to look into your apps, but I'm also making a personal
 plea to figure out another way of doing this and allowing people to opt out
 of messages from your apps. Or better yet, opt in.

 --
 Aaron Brazell
 web:: www.technosailor.com
 phone:: 410-608-6620
 skype:: technosailor
 twitter:: @technosailor




 --
 Dale Merritt
 Fol.la MeDia, LLC





-- 
Kevin Mesiab
CEO, Mesiab Labs L.L.C.
http://twitter.com/kmesiab
http://mesiablabs.com
http://retweet.com


[twitter-dev] Replying to direct messages

2009-08-02 Thread Duane Roelands

The direct_messages/new request does not accept any sort of in-reply-
to parameter.  Am I correct in assuming that a reply to a direct
message is sent as a normal status update via statuses/update (with
in_reply_to_status_id set and the username in the text).

Does Twitter know that in_reply_to_status_id was a direct message and
send the reply as a direct message?

How do I ensure that a reply to a direct message is correctly sent as
a direct message?


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Dossy Shiobara


On 8/2/09 10:47 AM, Aaron Brazell wrote:

I've asked Twitter to look into your apps, but I'm also making a
personal plea to figure out another way of doing this and allowing
people to opt out of messages from your apps. Or better yet, opt in.


You opt out by unfollowing whomever DM's you.  Didn't we have this exact 
discussion on this very list no more than 3 months ago?


--
Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Dean Collins

I don't get why people are so uptight about direct messages.

If you aren't getting value from following someone...or having someone
following you - then unsubscribe.

FFS the only issue is for people who want to inflate their numbers by
having a 'huge' following number.

 

 

Regards,

Dean Collins
www.MyTwitterButler.com 




-Original Message-
From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of Dossy
Shiobara
Sent: Sunday, August 02, 2009 3:07 PM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] Re: Fun140 and Truetwit developers


On 8/2/09 10:47 AM, Aaron Brazell wrote:
 I've asked Twitter to look into your apps, but I'm also making a
 personal plea to figure out another way of doing this and allowing
 people to opt out of messages from your apps. Or better yet, opt in.

You opt out by unfollowing whomever DM's you.  Didn't we have this exact

discussion on this very list no more than 3 months ago?

-- 
Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
   He realized the fastest way to change is to laugh at your own
 folly -- then you can let go and quickly move on. (p. 70)


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Aaron Brazell
On Sun, Aug 2, 2009 at 3:07 PM, Dossy Shiobara do...@panoptic.com wrote:

 You opt out by unfollowing whomever DM's you.  Didn't we have this exact
 discussion on this very list no more than 3 months ago?


If it was just me, then I would. Sometimes the people are people I want to
follow or are friends that have tried these things out and ended up sending
requests inadvertently. It's not fair to penalize the user for that.
On the other hand, it's clearly not just me as the responses have already
shown. It's clearly something that is much more abusive.
-- 
Aaron Brazell
web:: www.technosailor.com
phone:: 410-608-6620
skype:: technosailor
twitter:: @technosailor


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Aaron Brazell
On Sun, Aug 2, 2009 at 3:21 PM, Dean Collins d...@cognation.net wrote:


 I don't get why people are so uptight about direct messages.

 If you aren't getting value from following someone...or having someone
 following you - then unsubscribe.

 FFS the only issue is for people who want to inflate their numbers by
 having a 'huge' following number.


Everyone has their reasons and it's not the role of this list to question
users motives. However, it is the role of this list to bring up issues of
quality and QA in general, among other things.
-- 
Aaron Brazell
web:: www.technosailor.com
phone:: 410-608-6620
skype:: technosailor
twitter:: @technosailor


[twitter-dev] Re: Replying to direct messages

2009-08-02 Thread Abraham Williams
Direct messages have no concept of threading and in_reply_to_status_id will
be ignored. To send a DM use direct_messages/new.

Abraham

On Sun, Aug 2, 2009 at 13:35, Duane Roelands duane.roela...@gmail.comwrote:


 The direct_messages/new request does not accept any sort of in-reply-
 to parameter.  Am I correct in assuming that a reply to a direct
 message is sent as a normal status update via statuses/update (with
 in_reply_to_status_id set and the username in the text).

 Does Twitter know that in_reply_to_status_id was a direct message and
 send the reply as a direct message?

 How do I ensure that a reply to a direct message is correctly sent as
 a direct message?




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, Wisconsin, United States


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Andrew Badera
On Sun, Aug 2, 2009 at 10:47 AM, Aaron Brazell emmenset...@gmail.comwrote:

 I'm assuming whoever the developer is behind these two sites is also on
 this list. There is a lot of concern among twiytter users about your apps
 sending auto dms to people. It's perceived as abusive and spammy and I
 agree. After getting a tweaked toucan in my DM inbox, I wonder why I have
 to put up with this. Unfortunately, unlike Facebook, users can't opt out of
 these spammy things.
 I've asked Twitter to look into your apps, but I'm also making a personal
 plea to figure out another way of doing this and allowing people to opt out
 of messages from your apps. Or better yet, opt in.

 --
 Aaron Brazell
 web:: www.technosailor.com
 phone:: 410-608-6620
 skype:: technosailor
 twitter:: @technosailor



I think AutoDMs are obnoxious except in a few extremely rare cases. TrueTwit
is one of them. You only incur a DM by following someone who wishes to
verify the sincerity of your follow, the intent of your follow. Don't like
it? Don't follow. Want to cry me a river? Either follow less or suck it up.
I'm much more responsive to new, verified followers than I have been to any
given new follow in many, many spam-filled months now.

I'm tired of seeing twitter email notifications about spambots and bambibots
following me. I'd rather you [random person] be irked as a consequence of
following me than me be irked sometimes dozens of times a day by bambi spam.
Are you following me because you have genuine interest and want to have a
conversation? Excellent, then I'm sure the slightly raised barrier of entry
won't be a problem for you.

TrueTwit is the most valuable, useful, awesome Twitter third-party app I've
seen in months. Maybe ever.

Thanks-
- Andy Badera
- and...@badera.us
- Google me: http://www.google.com/search?q=andrew+badera
- This email is: [ ] bloggable [x] ask first [ ] private


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Caliban Darklock

On Sun, Aug 2, 2009 at 1:04 PM, Andrew Baderaand...@badera.us wrote:

 TrueTwit is the most valuable, useful, awesome Twitter third-party app I've
 seen in months. Maybe ever.

I particularly love how all you have to do is see one TrueTwit DM, go
sign up for TrueTwit yourself, and stop getting those messages ever
again! You can follow all the people you want, and you're
auto-verified. I got two of those TrueTwit messages when I was
auto-following people through Twollo, and just signed up myself. Now I
don't get them anymore!

Wait... how does that stop spammers, again? It looks like it may just
add the step sign up at TrueTwit to the account creation process
before you hook up your spambot to the account.

Worthless, if you ask me.


[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Andrew Badera
On Sun, Aug 2, 2009 at 4:10 PM, Caliban Darklock cdarkl...@gmail.comwrote:


 On Sun, Aug 2, 2009 at 1:04 PM, Andrew Baderaand...@badera.us wrote:
 
  TrueTwit is the most valuable, useful, awesome Twitter third-party app
 I've
  seen in months. Maybe ever.

 I particularly love how all you have to do is see one TrueTwit DM, go
 sign up for TrueTwit yourself, and stop getting those messages ever
 again! You can follow all the people you want, and you're
 auto-verified. I got two of those TrueTwit messages when I was
 auto-following people through Twollo, and just signed up myself. Now I
 don't get them anymore!

 Wait... how does that stop spammers, again? It looks like it may just
 add the step sign up at TrueTwit to the account creation process
 before you hook up your spambot to the account.

 Worthless, if you ask me.



Interesting, I was unaware of that mechanism. (Goes to show you how often I
follow these days I guess ... )

That does put a different spin on it. I'd like to see that go away, and then
my point stands.

--ab


[twitter-dev] Re: track syntax

2009-08-02 Thread Tom Fitzgerald

Joel,

For some reason when I try your code I get a timeout error. Any
suggestions? What you have is exactly what I'm looking for. It could
really help me out a jam, thanks!

On Jul 27, 4:02 pm, Joel Strellner j...@twitturly.com wrote:
 Here is a working example of how to do /track:

 $count = 1;
 $startparsing = false;

 $keyword_needles[] = 'keyword1';
 $keyword_needles[] = 'keyword2';
 $keyword_needles[] = 'keyword3';
 $keyword_needles[] = 'keyword4';

 // if your keywords have spaces, they must be urlencoded (twitter does not
 support phrases, only the first keyword will be used, the space character
 and after will be ignored)
 foreach ($keyword_needles AS $i=$needle) {
     $keyword_needles[$i] = urlencode($needle);

 }

 $poststr = 'track=' . implode(',', $keyword_needles);
 $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 30);
 if (!$fp) {
     echo $errstr ($errno)\n;} else {

     $out = POST /track.json HTTP/1.1\r\n;
     $out .= Host: stream.twitter.com\r\n;
     $out .= User-Agent: YourUserAgent\r\n;
     $out .= Referer:http://yourdomain.com\r\n;;
     $out .= Content-Type: application/x-www-form-urlencoded\r\n;
     $out .= Authorization: Basic  .
 base64_encode(username:password).\r\n;
     $out .= Content-length:  . strlen($poststr) . \r\n;
     $out .= Connection: Close\r\n\r\n;
     $out .= $poststr . \r\n\r\n;

     fwrite($fp, $out);
     while (!feof($fp)) {
         $line = fgets($fp, 4096);
         if ($startparsing) {
             if (trim($line) != '') {
                 //echo trim($line) . \n;
                 $tweet_obj = json_decode(trim($line));
                 // do your stuff here
             }
         }
         else {
             // view the header lines: uncomment the below line
             //echo trim($line) . \n;

             $header_arr[] = $line;
             $headercount = count($header_arr)-1;

             if (trim($header_arr[$headercount]) == '') {
                 $startparsing = true;
                 $count = 1;
                 unset($header_arr, $headercount);
             }
         }
         if (trim($line) != '') $count++;
     }
     fclose($fp);



 }
 On Mon, Jul 27, 2009 at 11:18 AM, Joseph northwest...@gmail.com wrote:

  I am trying to use the track streaming API, but I'm having trouble
  with the syntax. The example shows how to use a tracking list stored
  in a file in the format: track = word1, word2, etc..

  I tried the following (following a successful fsockopen call to
  stream.twitter.api:

  POST /track.json track = Palin, #fubar HTTP/1.1 Host:
  stream.twitter.com User-Agent: UserAgent Authorization: Basic
  cGXybmFzc3TzZGV2OlBhcm5hMzT1Mzl4MDMz Connection: Close

  and I am getting the following error code: HTTP/1.1 400 Bad Request

  The actual relevant test PHP code is:

  $fp = fsockopen($url, 80, $errno, $errstr, 30);
  if (!$fp) {
     echo $errstr ($errno)\n;
  } else {
     echo file handle: .$fp.br/;
     $header = POST /track.json track = $trackTerms HTTP/1.1\r\n;
     $header .= Host: stream.twitter.com\r\n;
     $header .= User-Agent: UserAgent\r\n;
     $header .= Authorization: Basic  . base64_encode($twitUsername .
  ':' . $twitPwd).\r\n;
     $header .= Connection: Close\r\n\r\n;
     echo $header.br/;
     fwrite($fp, $header);
     $line = fgets($fp, 4096);
     echo $line;
     fclose($fp);
  }


[twitter-dev] Pagination limit for REST API(3200)

2009-08-02 Thread dp

When the REST API limit for using count/page reaches 3200 for a
particular user account, does it mean that that user account can never
use count/page parameters any-more??

Does this limit reset?



[twitter-dev] Re: 2 week advance notice: changes to /friends/ids and /followers/ids

2009-08-02 Thread janole

Hi Alex,

 In two weeks, we'll be addressing this with a change in back-end
 infrastructure. The page parameter will be replaced with a cursor

does this mean the page parameter won't work anymore after the
change?

What's happening to those calls to the API still containing the
page=x parameter?

Cheers
Ole

--
Jan Ole Suhr
s...@mobileways.de
http://twitter.com/janole


[twitter-dev] Re: Submitting Actionscript OAuth Library

2009-08-02 Thread Coderanger

 You can email the links here or to a...@twitter.com

Ok, my simple class is http://www.coderanger.com/twitcher/OAuth.zip
with a sample FlexBuilder project at 
http://www.coderanger.com/twitcher/OAuthTwitterTest.zip.
Comments welcome.


[twitter-dev] Re: track syntax

2009-08-02 Thread Joel Strellner

Other than my username and password, this is an example that I know is
working:

?php
$count = 1;
$startparsing = false;

$keyword_needles[] = 'twitter';
$keyword_needles[] = 'keyword2';
$keyword_needles[] = 'keyword3';
$keyword_needles[] = 'keyword4';

// if your keywords have spaces, they must be urlencoded (twitter does
not support phrases, only the first keyword will be used, the space
character and after will be ignored)
foreach ($keyword_needles AS $i=$needle) {
$keyword_needles[$i] = urlencode($needle);
}

$poststr = 'track=' . implode(',', $keyword_needles);
$fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
if (!$fp) {
echo $errstr ($errno)\n;
} else {

$out = POST /track.json HTTP/1.1\r\n;
$out .= Host: stream.twitter.com\r\n;
$out .= User-Agent: YourUserAgent\r\n;
$out .= Referer: http://yourdomain.com\r\n;;
$out .= Content-Type: application/x-www-form-urlencoded\r\n;
$out .= Authorization: Basic  . base64_encode
(username:password).\r\n;
$out .= Content-length:  . strlen($poststr) . \r\n;
$out .= Connection: Close\r\n\r\n;
$out .= $poststr . \r\n\r\n;

fwrite($fp, $out);
while (!feof($fp)) {
$line = fgets($fp, 4096);
if ($startparsing) {
if (trim($line) != '') {
echo trim($line) . \n;
$tweet_obj = json_decode(trim($line));
// do your stuff here
}
}
else {
// view the header lines: uncomment the below line
echo trim($line) . \n;

$header_arr[] = $line;
$headercount = count($header_arr)-1;

if (trim($header_arr[$headercount]) == '') {
$startparsing = true;
$count = 1;
unset($header_arr, $headercount);
}
}
if (trim($line) != '') $count++;
}
fclose($fp);
}
?

The only changes I made was to echo things out and I added a keyword
that I was sure would have volume - twitter.  It did take a little bit
of time to connect.  I am assuming that that is because of their
current load though, and not the script.



On Aug 2, 2:25 am, Tom Fitzgerald ccexpe...@gmail.com wrote:
 Joel,

 For some reason when I try your code I get a timeout error. Any
 suggestions? What you have is exactly what I'm looking for. It could
 really help me out a jam, thanks!

 On Jul 27, 4:02 pm, Joel Strellner j...@twitturly.com wrote:

  Here is a working example of how to do /track:

  $count = 1;
  $startparsing = false;

  $keyword_needles[] = 'keyword1';
  $keyword_needles[] = 'keyword2';
  $keyword_needles[] = 'keyword3';
  $keyword_needles[] = 'keyword4';

  // if your keywords have spaces, they must be urlencoded (twitter does not
  support phrases, only the first keyword will be used, the space character
  and after will be ignored)
  foreach ($keyword_needles AS $i=$needle) {
      $keyword_needles[$i] = urlencode($needle);

  }

  $poststr = 'track=' . implode(',', $keyword_needles);
  $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 30);
  if (!$fp) {
      echo $errstr ($errno)\n;} else {

      $out = POST /track.json HTTP/1.1\r\n;
      $out .= Host: stream.twitter.com\r\n;
      $out .= User-Agent: YourUserAgent\r\n;
      $out .= Referer:http://yourdomain.com\r\n;;
      $out .= Content-Type: application/x-www-form-urlencoded\r\n;
      $out .= Authorization: Basic  .
  base64_encode(username:password).\r\n;
      $out .= Content-length:  . strlen($poststr) . \r\n;
      $out .= Connection: Close\r\n\r\n;
      $out .= $poststr . \r\n\r\n;

      fwrite($fp, $out);
      while (!feof($fp)) {
          $line = fgets($fp, 4096);
          if ($startparsing) {
              if (trim($line) != '') {
                  //echo trim($line) . \n;
                  $tweet_obj = json_decode(trim($line));
                  // do your stuff here
              }
          }
          else {
              // view the header lines: uncomment the below line
              //echo trim($line) . \n;

              $header_arr[] = $line;
              $headercount = count($header_arr)-1;

              if (trim($header_arr[$headercount]) == '') {
                  $startparsing = true;
                  $count = 1;
                  unset($header_arr, $headercount);
              }
          }
          if (trim($line) != '') $count++;
      }
      fclose($fp);

  }
  On Mon, Jul 27, 2009 at 11:18 AM, Joseph northwest...@gmail.com wrote:

   I am trying to use the track streaming API, but I'm having trouble
   with the syntax. The example shows how to use a tracking list stored
   in a file in the format: track = word1, word2, etc..

   I tried the following (following a successful fsockopen call to
   stream.twitter.api:

   POST /track.json track = Palin, #fubar HTTP/1.1 Host:
   stream.twitter.com User-Agent: UserAgent Authorization: Basic
   cGXybmFzc3TzZGV2OlBhcm5hMzT1Mzl4MDMz Connection: Close

   and I am getting the 

[twitter-dev] Re: Fun140 and Truetwit developers

2009-08-02 Thread Josh Roesslein
Agree that seems like a big hole for bot creators to get by the system.

On Sun, Aug 2, 2009 at 3:10 PM, Caliban Darklock cdarkl...@gmail.comwrote:


 On Sun, Aug 2, 2009 at 1:04 PM, Andrew Baderaand...@badera.us wrote:
 
  TrueTwit is the most valuable, useful, awesome Twitter third-party app
 I've
  seen in months. Maybe ever.

 I particularly love how all you have to do is see one TrueTwit DM, go
 sign up for TrueTwit yourself, and stop getting those messages ever
 again! You can follow all the people you want, and you're
 auto-verified. I got two of those TrueTwit messages when I was
 auto-following people through Twollo, and just signed up myself. Now I
 don't get them anymore!

 Wait... how does that stop spammers, again? It looks like it may just
 add the step sign up at TrueTwit to the account creation process
 before you hook up your spambot to the account.

 Worthless, if you ask me.




-- 
Josh


[twitter-dev] Re: Search is no longer indexing Portuguese (pt) tweets

2009-08-02 Thread caio ariede

OMG!

Anyone from Twitter Team can reply this issue?

What's wrong?

What can I do?

Help!

Caio Ariede
http://caioariede.com/



On Sat, Aug 1, 2009 at 11:02 AM, Vincent Nguyenkureik...@gmail.com wrote:
 You're right!
 Maybe it's twitter's bug then!


 2009/8/1 caio ariede caio.ari...@gmail.com

 But why this tweet:

 http://search.twitter.com/search?lang=ptq=framework+from%3Acaioariede

 Isn't appear in this search:

 http://search.twitter.com/search?lang=allq=307.to

 The language is set to all! Anyone can explain?

 The http://307.to/ just stopped to catch many tweets from API.

 Caio Ariede
 http://caioariede.com/



 On Sat, Aug 1, 2009 at 10:46 AM, Vincent Nguyenkureik...@gmail.com
 wrote:
  Yes, it's just for you!
  I think it causes by no one post a link with 307.to in Portugese!
  Looking at bit.ly or so and you see Twitter works fine!
 
  2009/8/1 caio ariede caio.ari...@gmail.com
 
  It's just for me?
 
  Caio Ariede
  http://caioariede.com/
 
 
 
  On Fri, Jul 31, 2009 at 1:52 PM, caio ariedecaio.ari...@gmail.com
  wrote:
   The results in english is fine:
  
   - http://search.twitter.com/search?lang=allq=307.to
  
   Results in portuguese, simple doesn't return nothing:
  
   - http://search.twitter.com/search?lang=ptq=307.to
  
   But yes, there is portuguese tweets with 307.to string:
  
   -
   http://search.twitter.com/search?lang=ptq=framework+from%3Acaioariede
  
   What's the problem? Thx!
  
   Caio Ariede
   http://caioariede.com/
  
 
 




[twitter-dev] Daylight savings

2009-08-02 Thread Matt

Is it possible to get a user's actual time including daylight savings?


Matt


[twitter-dev] Re: Daylight savings

2009-08-02 Thread JDG
What do you mean? The time of a tweet? If so, you have the created_at
parameter in the status object which is the UTC time of the tweet, and the
user object within the status object lists the user's utc_offset. Using
that, you're able to get the exact time of the tweet, relative of course to
the user's honesty in setting their time zone.

On Sun, Aug 2, 2009 at 17:43, Matt mattroberts...@gmail.com wrote:


 Is it possible to get a user's actual time including daylight savings?


 Matt




-- 
Internets. Serious business.


[twitter-dev] Python Twitter library (Tango) renamed to Twython

2009-08-02 Thread Ryan McGrath

Hey,

I figured it's worth dropping a note here about a name change of a
Python library I wrote to wrap Twitter's API, as some people from this
list took some interest in it when I first announced it. *shrug*

The library (Tango) has been renamed to Twython, simply because I
realized (and subsequently had a lot of people kindly point out to me)
that there are quite a few other notable open source efforts named
Tango already. It's still located on GitHub and such, and can be found
at the following link. Still looking for anyone who'd like to
contribute, definitely needs more documentation!

http://github.com/ryanmcgrath/twython/tree/master

As an aside, Tango's currently listed on the API Wiki for Twitter. I'd
like to apologize for throwing such a trivial request out there, but
could anyone change the name and link there? GitHub doesn't
automatically forward repos if you name change, so I see the potential
for confusion there...

Thanks!

- Ryan McGrath


[twitter-dev] set the from [Application]

2009-08-02 Thread Pek

how do you set the from field when you tweet from the API. Right now
mine says from API. I'd like it to say from [My Application]

I've set all the fields necessary from the apps settings