Re: [twitter-dev] Re: Gardenhose feed down to a trickle

2010-07-16 Thread Pascal Jürgens
Tomo,

John replied on another thread just minutes after you:

 I hoped we'd have an email out on Thursday about this, but I'd imagine it'll 
 go out on Friday. There isn't a problem with your client.

Pascal

On Jul 16, 2010, at 6:14 , Tomo Osumi wrote:

 Dear John,
 
 Could I have any updates about streaming api issues? I met the same
 situation as Sanjay's. both 'sample' and 'garden hose' streaming API
 have still 1/3 - 1/5 as much traffic as usual.
 
 Tomo
 http://twitter.com/elrana/



[twitter-dev] Re: Gardenhose feed down to a trickle

2010-07-16 Thread Tomo Osumi
Dear Pascal,

Noted with thanks!

On 7月16日, 午後3:49, Pascal Jürgens
lists.pascal.juerg...@googlemail.com wrote:
 Tomo,

 John replied on another thread just minutes after you:

  I hoped we'd have an email out on Thursday about this, but I'd imagine 
  it'll go out on Friday. There isn't a problem with your client.

 Pascal

 On Jul 16, 2010, at 6:14 , Tomo Osumi wrote:



  Dear John,

  Could I have any updates about streaming api issues? I met the same
  situation as Sanjay's. both 'sample' and 'garden hose' streaming API
  have still 1/3 - 1/5 as much traffic as usual.

  Tomo
 http://twitter.com/elrana/


[twitter-dev] Re: sample (gardenhose) feed slowdown

2010-07-16 Thread Tomo Osumi
Dear John,

Great thanks for your info.

My accounts to have streaming API traffic are @frostia_rina and
@frosita_solage . @frostia_rina is for garden hose on development
environment and @frostia_solage is for 'sample' on production
environment. The situation is the same as Tim. Both garden hose  and
sample have 1/3 - 1/5 as much traffic as usual. Hope you rescue me.

On 7月16日, 午後1:54, John Kalucki j...@twitter.com wrote:
 I hoped we'd have an email out on Thursday about this, but I'd imagine it'll
 go out on Friday. There isn't a problem with your client.

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



 On Thu, Jul 15, 2010 at 9:48 PM, Tim Haines tmhai...@gmail.com wrote:
  This was addressed in a previous email to the list. �...@jkalucki 
  acknowledged
  a bug and was going to report on it soon..

  On Fri, Jul 16, 2010 at 3:57 PM, Kam kamerondeckerhar...@gmail.comwrote:

  Hi, we've noticed that we're receiving about 1/4-1/3 the number of
  tweets that were coming in two days ago. This seems to have begun the
  night of 14.07 at around 23:54 EST. The connection to the stream was
  dropped, and when our client automatically reconnected we saw this
  decrease in the number of messages received.

  Has anyone experienced a similar problem or know of a reason why this
  happened?

  Admins: I can send along our account information in a email if you
  think it might be a whitelisting problem.

  Thanks!


Re: [twitter-dev] How is this a solution?

2010-07-16 Thread Decklin Foster
Excerpts from Cameron Kaiser's message of Fri Jul 16 01:00:55 -0400 2010:
 Actually, no. The process creates a completely new app key and secret
 cloned from the original one. They do not have anything in common with
 each other apart from the name and branding (and the user can change it
 later; it's just a regular old app key). You can see this in action by
 looking at TTYtter, which uses the process. They are not the same key
 and secret at all.

When was this process turned on? (I just checked out TTYtter and
indeed, it works.) I asked for an update a couple weeks ago but I
hadn't seen anything here or on the announce list, so I assumed other
things had taken priority.

-- 
things change.
deck...@red-bean.com


[twitter-dev] Twitter basic

2010-07-16 Thread TinyT
Hi, I want to find out how exactly Twitter works technically. I am a
utterly non-technical person (read social scientist). How is Twitter
built up technically, which layers, which programming languages are at
play? Also what algorithms are used by Twitter? I hope this is not too
trival for you guys, but it is crucial for me to dig beyond the
interface to start understanding Twitter. Thanks!!


[twitter-dev] Checking if a user still has authorized access of my application

2010-07-16 Thread PBro
Hi,

I would like to know if it is possible to check if a user still allows
my application to access his twitter account.
We are building an application that will post tweets on the user's
account and read new tweets from his account.
Therefore i would like to check if the user hasn't revoked access of
the application via his profile.
So, is there something like getPermissions or maybe a callback for
when a users revokes access?

Sincerely,
Patrick


[twitter-dev] oauth_callback breaks request_token call

2010-07-16 Thread Meerlol
Hi All,

I'm desperately trying to migrate to the OAuth API before the 16th of
august but the API is not working with me. The problem is a the
request_token stage of the flow. Whenever I add a oauth_callback
parameter to my request then the request fails with: Failed to
validate oauth signature and token. But I have no clue what I'm doing
wrong. Maybe someone can see my error. Here is the needed info

Method used: POST

Signature base: POSThttp%3A%2F%2Fapi.twitter.com%2Foauth
%2Frequest_tokenoauth_callback%3Dhttp%253A%252F%252Fmeerlo.com
%252Ftest%26oauth_consumer_key%3DwWR1oJDLxIl5lqApKEVw%26oauth_nonce
%3D1279283600-0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1279283600%26oauth_token%3D%26oauth_version%3D1.0

Authorization header:
Authorization: OAuth oauth_callback=http%3A%2F%2Fmeerlo.com%2Ftest,
oauth_consumer_key=wWR1oJDLxIl5lqApKEVw, oauth_nonce=1279283600-0,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279283600,
oauth_token=, oauth_version=1.0,
oauth_signature=8qOZv7mNLs8vfwnD8UplzW84Lh4%3D

I know that I can leave out the oauth_token but that makes no
difference. Anyone got a clue?

Regards,
Herman


Re: [twitter-dev] Twitter basic

2010-07-16 Thread M. Edward (Ed) Borasky

There's a somewhat high-level diagram at http://meb.tw/6Ajijd
--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

A mathematician is a device for turning coffee into theorems. - Paul Erdos


Quoting TinyT taina.buc...@gmail.com:


Hi, I want to find out how exactly Twitter works technically. I am a
utterly non-technical person (read social scientist). How is Twitter
built up technically, which layers, which programming languages are at
play? Also what algorithms are used by Twitter? I hope this is not too
trival for you guys, but it is crucial for me to dig beyond the
interface to start understanding Twitter. Thanks!!







Re: [twitter-dev] Re: Gardenhose feed down to a trickle

2010-07-16 Thread Taylor Singletary
Here's an update:
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/047365fe3cfa8a02

Taylor

On Fri, Jul 16, 2010 at 12:03 AM, Tomo Osumi tomo.os...@gmail.com wrote:

 Dear Pascal,

 Noted with thanks!

 On 7月16日, 午後3:49, Pascal Jürgens
 lists.pascal.juerg...@googlemail.com wrote:
  Tomo,
 
  John replied on another thread just minutes after you:
 
   I hoped we'd have an email out on Thursday about this, but I'd imagine
 it'll go out on Friday. There isn't a problem with your client.
 
  Pascal
 
  On Jul 16, 2010, at 6:14 , Tomo Osumi wrote:
 
 
 
   Dear John,
 
   Could I have any updates about streaming api issues? I met the same
   situation as Sanjay's. both 'sample' and 'garden hose' streaming API
   have still 1/3 - 1/5 as much traffic as usual.
 
   Tomo
  http://twitter.com/elrana/



[twitter-dev] A feed greater equivalent to the old gardenhose?

2010-07-16 Thread Sanjay
Just saw the posting about the reduction in the gardenhose (and
sprtizer) feeds ( http://t.co/d6o1npx ).  So for those of us who need
the additional data and are designed around it (and can consume it),
is there a way to get that level of feed back?  For me in particular
this is going to significantly hamper the app that I'm working on and
was looking to launch in a few weeks.

Help...?

Sanjay


Re: [twitter-dev] A feed greater equivalent to the old gardenhose?

2010-07-16 Thread Taylor Singletary
You can request greater levels of Streaming access by sending a message to
a...@twitter.com from the email address associated with your Twitter account.
It's best to describe in detail how you'll use the data (sampling, keyword
tracking, geo, and the number of variables and rates you're looking to
employ), as well as the benefits it brings to users and background
information about your organization and products.

Thanks,
Taylor

On Fri, Jul 16, 2010 at 7:07 AM, Sanjay san...@parekh.org wrote:

 Just saw the posting about the reduction in the gardenhose (and
 sprtizer) feeds ( http://t.co/d6o1npx ).  So for those of us who need
 the additional data and are designed around it (and can consume it),
 is there a way to get that level of feed back?  For me in particular
 this is going to significantly hamper the app that I'm working on and
 was looking to launch in a few weeks.

 Help...?

 Sanjay



Re: [twitter-dev] A feed greater equivalent to the old gardenhose?

2010-07-16 Thread Pascal Jürgens
In addition to the note from Taylor, I think it's a good idea to remind people 
that stream contents are identical - it's absolutely no use and a waste of 
resources to consume more than one sample stream. Just pick the largest one - 
that will contain all messages you can get.


Pascal

On Jul 16, 2010, at 16:07 , Sanjay wrote:

 Just saw the posting about the reduction in the gardenhose (and
 sprtizer) feeds ( http://t.co/d6o1npx ).  So for those of us who need
 the additional data and are designed around it (and can consume it),
 is there a way to get that level of feed back?  For me in particular
 this is going to significantly hamper the app that I'm working on and
 was looking to launch in a few weeks.
 
 Help...?
 
 Sanjay



Re: [twitter-dev] Checking if a user still has authorized access of my application

2010-07-16 Thread Thomas Woolway
I'd have thought calling verify_credentials would do it - you'll get a 401
and a specific error message to tell you that the key is no longer valid.

Alternatively, why not try to perform your actions (like posting a tweet or
retrieving tweets) and if they return a 401, use that to indicate that the
user has revoked permissions.

Tom

On Fri, Jul 16, 2010 at 11:59 AM, PBro brouwe...@gmail.com wrote:

 Hi,

 I would like to know if it is possible to check if a user still allows
 my application to access his twitter account.
 We are building an application that will post tweets on the user's
 account and read new tweets from his account.
 Therefore i would like to check if the user hasn't revoked access of
 the application via his profile.
 So, is there something like getPermissions or maybe a callback for
 when a users revokes access?

 Sincerely,
 Patrick


Re: [twitter-dev] oauth_callback breaks request_token call

2010-07-16 Thread Taylor Singletary
Hi Herman,

You shouldn't include the oauth_token parameter in the request token step
regardless.. Are you sure that you don't get a separate (but similar) error
when you aren't including the oauth_token parameter in either portion of the
request? Are you sure you are using the HTTP method POST when the request is
actually executed? What's the actual URL you are executing, does it include
any of these OAuth parameters?

Your signature base string seems correct in structure, as well as your
authorization header, properly escaped. Have you compared your timestamp to
the time returned by the server?

Taylor

On Fri, Jul 16, 2010 at 5:52 AM, Meerlol herman.mee...@gmail.com wrote:

 Hi All,


 I'm desperately trying to migrate to the OAuth API before the 16th of
 august but the API is not working with me. The problem is a the
 request_token stage of the flow. Whenever I add a oauth_callback
 parameter to my request then the request fails with: Failed to
 validate oauth signature and token. But I have no clue what I'm doing
 wrong. Maybe someone can see my error. Here is the needed info

 Method used: POST

 Signature base: POSThttp%3A%2F%2Fapi.twitter.com%2Foauth
 %2Frequest_tokenoauth_callback%3Dhttp%253A%252F%252Fmeerlo.com
 %252Ftest%26oauth_consumer_key%3DwWR1oJDLxIl5lqApKEVw%26oauth_nonce
 %3D1279283600-0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
 %3D1279283600%26oauth_token%3D%26oauth_version%3D1.0

 Authorization header:
 Authorization: OAuth oauth_callback=http%3A%2F%2Fmeerlo.com%2Ftest,
 oauth_consumer_key=wWR1oJDLxIl5lqApKEVw, oauth_nonce=1279283600-0,
 oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279283600,
 oauth_token=, oauth_version=1.0,
 oauth_signature=8qOZv7mNLs8vfwnD8UplzW84Lh4%3D

 I know that I can leave out the oauth_token but that makes no
 difference. Anyone got a clue?

 Regards,
 Herman



Re: [twitter-dev] Checking if a user still has authorized access of my application

2010-07-16 Thread Matt Harris
Tom is correct. The easiest way to check if your application is still
allowed by the user is to call verify_credentials. This is a read-only call
without any parameters which will return 200 OK if you are allowed access
and 401 if you are not.

Best,
Matt

On Fri, Jul 16, 2010 at 8:01 AM, Thomas Woolway priv...@tswoolway.co.ukwrote:

 I'd have thought calling verify_credentials would do it - you'll get a 401
 and a specific error message to tell you that the key is no longer valid.

 Alternatively, why not try to perform your actions (like posting a tweet or
 retrieving tweets) and if they return a 401, use that to indicate that the
 user has revoked permissions.

 Tom

 On Fri, Jul 16, 2010 at 11:59 AM, PBro brouwe...@gmail.com wrote:

 Hi,

 I would like to know if it is possible to check if a user still allows
 my application to access his twitter account.
 We are building an application that will post tweets on the user's
 account and read new tweets from his account.
 Therefore i would like to check if the user hasn't revoked access of
 the application via his profile.
 So, is there something like getPermissions or maybe a callback for
 when a users revokes access?

 Sincerely,
 Patrick





-- 


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


[twitter-dev] Re: oauth_callback breaks request_token call

2010-07-16 Thread Meerlol
Ok, this one might be useful for others as well. The application was
registered as a client instead of a browser app. My app is an iPhone
app but it uses the browser for the OAuth part, so it should have been
browser type. Created a new app with the type set to browser and it
works fine now.

On Jul 16, 2:52 pm, Meerlol herman.mee...@gmail.com wrote:
 Hi All,

 I'm desperately trying to migrate to the OAuth API before the 16th of
 august but the API is not working with me. The problem is a the
 request_token stage of the flow. Whenever I add a oauth_callback
 parameter to my request then the request fails with: Failed to
 validate oauth signature and token. But I have no clue what I'm doing
 wrong. Maybe someone can see my error. Here is the needed info

 Method used: POST

 Signature base: POSThttp%3A%2F%2Fapi.twitter.com%2Foauth
 %2Frequest_tokenoauth_callback%3Dhttp%253A%252F%252Fmeerlo.com
 %252Ftest%26oauth_consumer_key%3DwWR1oJDLxIl5lqApKEVw%26oauth_nonce
 %3D1279283600-0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
 %3D1279283600%26oauth_token%3D%26oauth_version%3D1.0

 Authorization header:
 Authorization: OAuth oauth_callback=http%3A%2F%2Fmeerlo.com%2Ftest,
 oauth_consumer_key=wWR1oJDLxIl5lqApKEVw, oauth_nonce=1279283600-0,
 oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279283600,
 oauth_token=, oauth_version=1.0,
 oauth_signature=8qOZv7mNLs8vfwnD8UplzW84Lh4%3D

 I know that I can leave out the oauth_token but that makes no
 difference. Anyone got a clue?

 Regards,
 Herman


[twitter-dev] Upload Image to TwitPic OAuth 401 Unauthorized

2010-07-16 Thread globaljobber
Hi,

Can anyone please help, been at this for days?

I'm working with ASP.NET C# and trying to upload photo image to
Twitpic.

I am trying to use the OAuth procedure, but keep getting

The remote server returned an error: (401) Unauthorized.


This is where I'm at...

I have all of the following after initial authentication and
redirection to the upload image page:


oauth_token = X
oauth_token_secret = XXX
nonce = 7913223
consumerKey = XXX
consumerSecret = XXX
timeStamp = 1279301514
sig = IISiFDlCSRFu%2fcy7GrXaQ6HgI5c%3d


As I understand it, I then need to put this lot into a HttpWebRequest
using POST, along with the image data.


I have created two headers.

X-Verify-Credentials-Authorization:OAuth
oauth_token=X,realm=http://
api.twitter.com/,oauth_token_secret=X,oauth_consumer_key=,oauth_signature_method=HMAC-
SHA1,oauth_timestamp=1279301514,oauth_nonce=7913223,oauth_version=1.0,oauth_signature=IISiFDlCSRFu
%2fcy7GrXaQ6HgI5c%3d


and..

X-Auth-Service-Provider:https://api.twitter.com/1/account/
verify_credentials.json


This is my upload image code..



private string UploadPhoto(byte[] binaryImageData, string ContentType,
string message, string filename, string _oAuth, string consumerKey,
string oauth_token, string timeStamp, string nonce, string sig)
{
string _response = string.Empty;

string boundary = Guid.NewGuid().ToString().Replace(-, );
string requestUrl = http://api.twitpic.com/2/upload.json;;
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(requestUrl);
string encoding = iso-8859-1;

request.PreAuthenticate = true;
request.ContentType = string.Format(multipart/form-data;
boundary={0}, boundary);
request.Method = POST;

string header = string.Format(--{0}, boundary);
string footer = string.Format(--{0}--, boundary);

StringBuilder contents = new StringBuilder();

contents.AppendLine(header);
contents.AppendLine(String.Format(Content-Disposition: form-
data; name=\{0}\, X-Auth-Service-Provider));
contents.AppendLine();
contents.AppendLine(https://api.twitter.com/1/account/
verify_credentials.json);

contents.AppendLine(header);
contents.AppendLine(String.Format(Content-Disposition: form-
data; name=\{0}\, X-Verify-Credentials-Authorization));
contents.AppendLine();
contents.AppendLine(_oAuth);

contents.AppendLine(header);
contents.AppendLine(String.Format(Content-Disposition: form-
data; name=\{0}\, messsage));
contents.AppendLine();
contents.AppendLine(message);

contents.AppendLine(header);
contents.AppendLine(String.Format(Content-Disposition: form-
data; name=\{0}\, key));
contents.AppendLine();
contents.AppendLine(consumerKey);


contents.AppendLine(header);

string fileContentType = ContentType;
string fileHeader = String.Format(Content-Disposition: file;
name=\{0}\; filename=\{1}\, media, filename);
string fileData =
Encoding.GetEncoding(encoding).GetString(binaryImageData);

contents.AppendLine(fileHeader);
contents.AppendLine(String.Format(Content-Type: {0},
fileContentType));
contents.AppendLine();
contents.AppendLine(fileData);

contents.AppendLine(footer);

byte[] bytes =
Encoding.GetEncoding(encoding).GetBytes(contents.ToString());
request.ContentLength = bytes.Length;

using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(bytes, 0, bytes.Length);

using (HttpWebResponse response =
(HttpWebResponse)request.GetResponse())
{
using (StreamReader reader = new
StreamReader(response.GetResponseStream()))
{
_response = reader.ReadToEnd();
}
}
}
return _response;
}


Thanks in advance.


[twitter-dev] api.twitter.com SSL cert expiring on 7-27-2010?

2010-07-16 Thread Carlos
After getting SSL errors on Windows Mobile 6.0 with connections to
api.twitter.com due to that OS not having that cert installed, I
started up firefox and connected to https://api.twitter.com and
noticed this see screenshot

http://twitpic.com/25ultr/full

It's listed as expiring on 7/27/2010. I'm sure that twitter is aware
of this and planning a cert change but since it's less than 2 weeks
away I thought I'd bring it up just in case.

Also, will the new cert be trusted by default on most current mobile
OSes?

-Carlos


Re: [twitter-dev] api.twitter.com SSL cert expiring on 7-27-2010?

2010-07-16 Thread John Adams
We have renewed the existing wildcard certificate and will be deploying it
soon to api.twitter.com and oauth.twitter.com.

It's from the same vendor, so there should be no issues.

-j

On Fri, Jul 16, 2010 at 11:26 AM, Carlos carlosju...@gmail.com wrote:

 After getting SSL errors on Windows Mobile 6.0 with connections to
 api.twitter.com due to that OS not having that cert installed, I
 started up firefox and connected to https://api.twitter.com and
 noticed this see screenshot

 http://twitpic.com/25ultr/full

 It's listed as expiring on 7/27/2010. I'm sure that twitter is aware
 of this and planning a cert change but since it's less than 2 weeks
 away I thought I'd bring it up just in case.

 Also, will the new cert be trusted by default on most current mobile
 OSes?

 -Carlos



[twitter-dev] Re: api.twitter.com SSL cert expiring on 7-27-2010?

2010-07-16 Thread Carlos
Being in IT for over 10 years, nothing is scarier to me than this
change shouldn't cause any problems. ;)

Is this a scheduled change? If so, when?
It would be nice if twitter kept a calendar updated for such things
with a link off of status.twitter.com. (Even if no outage is
expected.)

On Jul 16, 2:33 pm, John Adams j...@twitter.com wrote:
 We have renewed the existing wildcard certificate and will be deploying it
 soon to api.twitter.com and oauth.twitter.com.

 It's from the same vendor, so there should be no issues.

 -j







 On Fri, Jul 16, 2010 at 11:26 AM, Carlos carlosju...@gmail.com wrote:
  After getting SSL errors on Windows Mobile 6.0 with connections to
  api.twitter.com due to that OS not having that cert installed, I
  started up firefox and connected tohttps://api.twitter.comand
  noticed this see screenshot

 http://twitpic.com/25ultr/full

  It's listed as expiring on 7/27/2010. I'm sure that twitter is aware
  of this and planning a cert change but since it's less than 2 weeks
  away I thought I'd bring it up just in case.

  Also, will the new cert be trusted by default on most current mobile
  OSes?

  -Carlos


[twitter-dev] Search Confusion

2010-07-16 Thread Ted
Hello all,

I'm playing around with geolocated tweets in my app at www.spiggler.com

I've run into an issue today that is confusing me. I'm sure it was working
recently, but here goes:

A geo search works:
http://search.twitter.com/search.json?rpp=100geocode=51.58,-0.71,4.19km 

That search includes my tweet 

#spiggler location test #trackme

However, the following query (a subset) returns no results:

http://search.twitter.com/search.json?rpp=100geocode=51.58,-0.71,4.19kmq=%
23trackme 

Am I being thick?

Regards,
Ted




[twitter-dev] Anywherize usernames and userpictures on Drupal

2010-07-16 Thread Yngens
I've received negative response to my request to anywherize usernames
with no @-prefixe from the maintainer of Anywhereize module for Drupal
here: http://drupal.org/node/822308 and hope that this issue can be
addressed here.

I've got it working on my site for all the words prefixed with @-sign.
However, it would be very nice if all the usernames on my Drupal site
(which are exact Twitter usernames! I allow only Twitter users to
register) (without @-sign) and their profile pictures could have
@Anywhere features. How can this be achieved? Thanks!


[twitter-dev] Re: User Photo Loading Issues

2010-07-16 Thread Ron
Actually, my user's can even log-in on Twitter's webpage.  Has Twitter
gone belly up?

On Jul 16, 10:18 pm, Ron rbther...@gmail.com wrote:
 Anyone having trouble loading user avatar photos for their tweets? I
 seem to be getting very long delays with many photos not being
 returned at all.  Doesn't appear to be anything on the issue on the
 Twitter Status page...


[twitter-dev] Re: User Photo Loading Issues

2010-07-16 Thread Ron
Looks like a3.twimg.com is down.

On Jul 16, 11:07 pm, Ron rbther...@gmail.com wrote:
 Actually, my user's can even log-in on Twitter's webpage.  Has Twitter
 gone belly up?

 On Jul 16, 10:18 pm, Ron rbther...@gmail.com wrote:



  Anyone having trouble loading user avatar photos for their tweets? I
  seem to be getting very long delays with many photos not being
  returned at all.  Doesn't appear to be anything on the issue on the
  Twitter Status page...