[twitter-dev] Re: friends/ids requires authentication now?

2010-09-17 Thread UncleYa
This error disappead when I started my app in another browser. Then I
restarted my main browser (FireFox 3.6) and there were no erros too.
Maybe that were cashing bugs or something else, but not Twitter API
problems...

Mikhail aka UncleYa

On Sep 16, 6:28 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi UncleYa,

 We have some lingering issues from the basic auth shut off that result in
 the occasional, incorrect error like this when being rate limited. Hope to
 have those all cleaned up soon.

 Part of your post suggests you may have been getting a different kind of
 error when you application was accessing these methods.. do you know what
 errors you were receiving? You should be prepared for a few different kinds
 of exceptions when accessing any resources..

 Taylor

 On Thu, Sep 16, 2010 at 5:24 AM, UncleYa m1xx...@gmail.com wrote:
  Hello. Today I was testing my web-application that uses friends/ids
  API function. First several times all was correct. But later
  application stopped working. That isn't rate limiting. And, when I
  call this function through browser (entering something like this
  http://api.twitter.com/1/friends/ids/uncleyaru.xml;) it returns
  error code=53Basic authentication is not supported/error.
  Will this function be rate limited or it's temporary? Thank you.

  --
  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] Search API

2010-09-17 Thread Travis Beauvais
I have been experimenting with the search API and every search I try
only goes back to Spet 12 (calls being made on Sept 16). No matter how
many results there are it always stops on Sept 12. Is there a limit I
don't know about?

-- 
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] 401s from http://stream.twitter.com/statuses/filter

2010-09-17 Thread John Kalucki
Streaming still supports basic auth, but User Streams and Site Streams
endpoints only support OAuth.

If you are getting 401s, chances are you are violating a connection policy.

-John


On Thu, Sep 16, 2010 at 6:27 PM, Aaron Rankin aran...@sproutsocial.comwrote:

 I'm seeing plenty of 401s returned from the
 http://stream.twitter.com/statuses/filter
 endpoint. This is still supporting basic auth, correct?

 --
 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] Problems with xAuth in Flash (Adobe AIR)

2010-09-17 Thread andy
Hello everyone,

I have problems to use xAuth in a own Twitter application. I have
register an Application and was activated for xauth. I have develop an
Adobe AIR Application which used ActionScript 3.0. In addition, I use
the ActionScript 3 library for oAuth, which is refer in the Twitter
docomentation for ActionScript developers. (http://code.google.com/p/
oauth-as3/)
Unfortunately I can not get a successful response from the twitter
server. I would describe you to my approach and I hope that everyone
can give me a help.

At first time, I create my parameters. For this I used the
OAuthRequestClass from the oauth-as3 library. This class, I have
added the xauth parameter. In the following a Code-snipped:

var curDate:Date = new Date();
var uuid:String = UIDUtil.getUID(curDate);

_requestParams[oauth_consumer_key] = _consumer.key;
_requestParams[oauth_consumer_secret] = 
_consumer.secret;
_requestParams[oauth_nonce] = uuid;
_requestParams[oauth_signature_method] = 
signatureMethod.name;
_requestParams[oauth_timestamp] =
String(curDate.time).substring(0, 10);
_requestParams[oauth_version] = 1.0;
_requestParams[x_auth_mode] = client_auth;
_requestParams[x_auth_password] = password;
_requestParams[x_auth_username] = user;

_requestParams[oauth_token] = _token.key;
_requestParams[oauth_token_secret] = _token.secret;

// generate the signature
var signature:String = 
signatureMethod.signRequest(this);
_requestParams[oauth_signature] = signature;

The Signantur is determined by the following function throw the class
OAuthSignatureMethod_HMAC_SHA1 from the oauth-as3 library:

public function signRequest(request:OAuthRequest):String {
// get the signable string
var toBeSigned:String = request.getSignableString();

// get the secrets to encrypt with
var sSec:String = 
URLEncoding.encode(request.consumer.secret) + 
if (request.token)
sSec += 
URLEncoding.encode(request.token.secret);

// hash them
var hmac:HMAC = Crypto.getHMAC(sha1);
var key:ByteArray = Hex.toArray(Hex.fromString(sSec));
var message:ByteArray = 
Hex.toArray(Hex.fromString(toBeSigned));

var result:ByteArray = hmac.compute(key,message);
var ret:String = Base64.encodeByteArray(result);

return ret;
}

In the variable toBeSigned is included my OAuth signature base
string:
POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_tokenoauth_consumer_key%3D..myConsumerKey...%26oauth_nonce
%3D5653B8B9-87E3-89DA-3857-1E9E70C56F5C%26oauth_signature_method
%3DHMAC-SHA1%26oauth_timestamp%3D1284708921%26oauth_version
%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password
%3D..myTwitterUsername..%26x_auth_username%3D..myTwitterPassword..

Additionally, I have at this point trying to use the parameters
oauth_consumer_secret and oauth_token.

In my variable aSec is including. myConsumerKey++myOAuthToken.

For the variable aSec I have test following combinations:
myConsumerKey++myOAuthToken
myConsumerKey++myOAuthTokenSecret
myConsumerSecret++myOAuthToken
myConsumerSecret++myOAuthTokenSecret

Since the Twitter documentation to the oauth-as3 library reference, I
assume that runs the encryption correctly.
Perhaps at this point but made a mistake. Can everyone encrypt one
time the words hello, world and tell me how this would look like
encrypted, which is also in use xauth? My result after the above code
would look like: ijqEvNDQBl6X8XXTcER8fQLgCXM=

After this I create my OAuth HTTP Authorisation header. The header
name is Authorization and the header value is the following:
OAuth oauth_nonce=5653B8B9-87E3-89DA-3857-1E9E70C56F5C,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1284708921,
oauth_consumer_key=...myConsumerKey...,
oauth_signature=...myCreatedSignanture..., oauth_version=1.0


I send a Request with this url to the twitter server:
https://api.twitter.com/oauth/access_token?x_auth_mode=client_authx_auth_password=..myTwitterPasswordx_auth_username=..MyTwitterUsername...

In the following

In the following my ActionScript code by I make my request to your
server.

var postVariables:String = ?
x_auth_mode=client_authx_auth_password=+password
+x_auth_username=+user;

var params:URLVariables = new URLVariables();
params.x_auth_mode = client_auth;
   

[twitter-dev] Failed to validate oauth signature and token with xAuth

2010-09-17 Thread mlowicki
Hello!,

We're implementing widget for Opera browser and we got xAuth access
lately. I'm trying to get access token but without any success so far
- http://dpaste.com/hold/244795/. generated POST seems to be exactly
the same as on http://dev.twitter.com/pages/xauth :

POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_tokenoauth_consumer_key%3Dkkk%26oauth_nonce
%3D0.5114195354710362%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1284633641688%26oauth_version
%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dpassword
%26x_auth_username%3Dusername

Any idea where is the problem?

BR,
Michał Łowicki

-- 
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 do i retrieve tweets on the friends_timeline using oauth

2010-09-17 Thread Lyra
I want to retrieve friends tweets to display on my website. I was
previously using basic authentication but this no longer works.

The site is a coded in coldfusion and I  have set up an application on
the Twitter site so i have a consumer key etc. But i don't know what
to do next.

Any help or advice would be great.

-- 
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] User authentication verify

2010-09-17 Thread yasiraja
Hi,
 Previously our application used basic authentication for
connecting twitter users into our application, and after the
twitter's  announcement from change from basic authentication to
OAuth, we changed our application for oauth,
The login of the user to our application works fine :

The problem  we face is one the user is logged into our application
using twitter account, initially the twitter asks for the complete
authentication and allows the user to login into application ..If i
open twitter.com in a separate tab in the same browser, i was
automatically logged In in the twitter.

If i logout in twitter , simultaneously i should be automatically
logged out from my application and vice versa ..
How can i approach this using twitter4j-core -api..

Please revert me asap

-- 
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] Twitter xAuth using MGTwitterEngine

2010-09-17 Thread Khanh Nguyen
Hi all,

I sent the request to get approvals from Twitter for using xAuth, and
Twitter has approved.
But I still got error as below:

=
m2010-09-17 16:43:25.317 me360[2189:207] m_authenticateRequest =
4FE4401C-6976-4FA7-8957-6CB684F980AC
2010-09-17 16:43:29.349 me360[2189:207] Twitter request failed!
(4FE4401C-6976-4FA7-8957-6CB684F980AC) Error: Operation could not be
completed. (HTTP error 401.) ((null))
=

In code, I did as follow:
twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
[twitterEngine setConsumerKey:myConsumerKey secret:MyConsumerSecret];
[twitterEngine getXAuthAccessTokenForUsername:_username
password:_password];

But I got failed. And the access token could not be reached in this
delegate:
(void)accessTokenReceived:(OAToken *)token forRequest:(NSString
*)connectionIdentifier

Did I miss something or steps? I tried many times but seem I could not
resolve this issue.
Can you give me idea? or example?

Many thanks
Khanh

-- 
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 Update ourTwitter status with ASP

2010-09-17 Thread twitterceylan
Hello I found to bellow asp code for update twitter status, but it not
work.

Please help me for this aim.

%
Response.Buffer = True
Dim xml
Set xml = Server.CreateObject(Microsoft.XMLHTTP)

twitter_username = username   'change to your twitter username
twitter_password = password   'change to your twitter password

new_status = visit strangework.com!   'change to your new status

xml.Open POST, http://;  twitter_username  :  twitter_password
 @twitter.com/statuses/update.xml?status= 
server.URLencode(new_status), False
xml.setRequestHeader Content-Type, content=text/html;
charset=iso-8859-1
xml.Send

Response.Write xml.responseText 'view Twitter's response

Set xml = Nothing
%

-- 
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] API doesn't respond to my status update request. JS - XmlHTTPRequest.

2010-09-17 Thread Kakysha
I use XmlHTTPRequest in JavaScript (actually, i write Google Chrome
Extension)
Api successfully gives me all the tokens (i use oAuth OOB) the twitter
returns me a PIN code, then it successfully changed to acces token,
and on the final stage - attemp to update status it doesnt return any
response (((
I try to send Authorization header (i think, all right with it), and i
try to send authorization fields directly in POST body, but nothing ((

My code is :

message = {method: post, action: accessor.serviceProvider.actionURL,
parameters: [[status,Yahoo]]};
var requestBody = OAuth.formEncode(message.parameters);
OAuth.completeRequest(message,
{ consumerKey   : accessor.consumerKey
, consumerSecret: accessor.consumerSecret
, token : token
, tokenSecret   : token_secret
});
var authorizationHeader = OAuth.getAuthorizationHeader(,
message.parameters);
var requestAction = new XMLHttpRequest();
requestAction.onreadystatechange = function() {
if (requestAction.readyState == 4) {
alert(requestAction.status+ +requestAction.statusText
 +\n+requestAction.getAllResponseHeaders()
 +\n+requestAction.responseText);
}
};
requestAction.open(message.method, message.action, true);
requestAction.setRequestHeader(Authorization, authorizationHeader);
requestAction.setRequestHeader(Content-Type, application/x-www-form-
urlencoded);
requestAction.send(requestBody);

-- 
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] twitter host url and port

2010-09-17 Thread ap
Hi all,
   Actually i am developing twitter application.While making
connection to the twitter server which host url and port number i have
to give that i dont know.
 Please if anyone knows it help me in it.

-- 
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] Search API

2010-09-17 Thread Taylor Singletary
Hi Travis,

The Search API's corpus of tweets is a rolling window that generally only
goes back about 5 days, sometimes less depending on tweet velocity. We hope
to some day offer a much larger pool of tweets for searching.

Taylor

On Thu, Sep 16, 2010 at 10:50 PM, Travis Beauvais tbeauv...@gmail.comwrote:

 I have been experimenting with the search API and every search I try
 only goes back to Spet 12 (calls being made on Sept 16). No matter how
 many results there are it always stops on Sept 12. Is there a limit I
 don't know about?

 --
 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


Re: [twitter-dev] Failed to validate oauth signature and token with xAuth

2010-09-17 Thread Tom van der Woerdt
Base String looks fine. What's the complete request you are making? (the
POST /oauth/access_token HTTP/1.1 part)

Tom


On 9/17/10 10:04 AM, mlowicki wrote:
 Hello!,
 
 We're implementing widget for Opera browser and we got xAuth access
 lately. I'm trying to get access token but without any success so far
 - http://dpaste.com/hold/244795/. generated POST seems to be exactly
 the same as on http://dev.twitter.com/pages/xauth :
 
 POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
 %2Faccess_tokenoauth_consumer_key%3Dkkk%26oauth_nonce
 %3D0.5114195354710362%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1284633641688%26oauth_version
 %3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dpassword
 %26x_auth_username%3Dusername
 
 Any idea where is the problem?
 
 BR,
 Michał Łowicki
 

-- 
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] twitter host url and port

2010-09-17 Thread Taylor Singletary
Hi there,

The Twitter API runs on standard web service ports: Port 80 for non-secure
traffic and Port 443 for SSL-based traffic.

The Twitter REST API lives at api.twitter.com. Most resources representing
Twitter features are under versioned naming schemes, such as
http://api.twitter.com/1/statuses/home_timeline.xml.

The Twitter Search API lives at search.twitter.com. For instance,
http://search.twitter.com/search.json?q=%23newtwitter

The Twitter Streaming API lives at a variety of URLs depending on the
production-readiness of the stream.

You can find out a bit more about all the APIs at
http://dev.twitter.com/doc/

Taylor

On Fri, Sep 17, 2010 at 2:14 AM, ap aniketphadat...@gmail.com wrote:

 Hi all,
   Actually i am developing twitter application.While making
 connection to the twitter server which host url and port number i have
 to give that i dont know.
  Please if anyone knows it help me in it.

 --
 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


Re: [twitter-dev] API doesn't respond to my status update request. JS - XmlHTTPRequest.

2010-09-17 Thread Taylor Singletary
Hi there,

What's the value of accessor.serviceProvider.actionURL when you're trying to
update status? I'm not familiar with the OAuth library used here, can you
tell me more about it?

Thanks,
Taylor

On Fri, Sep 17, 2010 at 3:32 AM, Kakysha ezhikvd...@gmail.com wrote:

 I use XmlHTTPRequest in JavaScript (actually, i write Google Chrome
 Extension)
 Api successfully gives me all the tokens (i use oAuth OOB) the twitter
 returns me a PIN code, then it successfully changed to acces token,
 and on the final stage - attemp to update status it doesnt return any
 response (((
 I try to send Authorization header (i think, all right with it), and i
 try to send authorization fields directly in POST body, but nothing ((

 My code is :

 message = {method: post, action: accessor.serviceProvider.actionURL,
 parameters: [[status,Yahoo]]};
 var requestBody = OAuth.formEncode(message.parameters);
 OAuth.completeRequest(message,
 { consumerKey   : accessor.consumerKey
 , consumerSecret: accessor.consumerSecret
 , token : token
 , tokenSecret   : token_secret
 });
 var authorizationHeader = OAuth.getAuthorizationHeader(,
 message.parameters);
 var requestAction = new XMLHttpRequest();
 requestAction.onreadystatechange = function() {
 if (requestAction.readyState == 4) {
 alert(requestAction.status+ +requestAction.statusText
  +\n+requestAction.getAllResponseHeaders()
  +\n+requestAction.responseText);
 }
 };
 requestAction.open(message.method, message.action, true);
 requestAction.setRequestHeader(Authorization, authorizationHeader);
 requestAction.setRequestHeader(Content-Type, application/x-www-form-
 urlencoded);
 requestAction.send(requestBody);

 --
 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


Re: [twitter-dev] Failed to validate oauth signature and token with xAuth

2010-09-17 Thread Matt Harris
Hey Michal

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

On Sep 17, 2010, at 1:04, mlowicki mlowi...@gmail.com wrote:

 1284633641688

-- 
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] Failed to validate oauth signature and token with xAuth

2010-09-17 Thread Matt Harris
Ok no idea what happened with my previous email.

Anyway your timestamp is in milliseconds when it should be in seconds. 

Give that a go and let us know what happens.

Matt

On Sep 17, 2010, at 1:04, mlowicki mlowi...@gmail.com wrote:

 Hello!,
 
 We're implementing widget for Opera browser and we got xAuth access
 lately. I'm trying to get access token but without any success so far
 - http://dpaste.com/hold/244795/. generated POST seems to be exactly
 the same as on http://dev.twitter.com/pages/xauth :
 
 POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
 %2Faccess_tokenoauth_consumer_key%3Dkkk%26oauth_nonce
 %3D0.5114195354710362%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D1284633641688%26oauth_version
 %3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dpassword
 %26x_auth_username%3Dusername
 
 Any idea where is the problem?
 
 BR,
 Michał Łowicki
 
 -- 
 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] Twitter client to get updates

2010-09-17 Thread ram
I want to write a twitter notification client.
 When anyone who I follow tweets I need to get a notification so that
I can go and fetch the tweeted message.

Is this possible and allowed ?

Thanks
Ram

-- 
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] Re: How To Update ourTwitter status with ASP

2010-09-17 Thread Rich
That's using Basic Auth which has been removed from the API, you need
to use oAuth now.

You could try something like this (http://scottdesapio.com/
VBScriptOAuth/) I've not actually tried this myself as I've not used
Classic ASP in over 6 years now.

Richard

On Sep 17, 12:55 pm, twitterceylan gm.cey...@gmail.com wrote:
 Hello I found to bellow asp code for update twitter status, but it not
 work.

 Please help me for this aim.

 %
 Response.Buffer = True
 Dim xml
 Set xml = Server.CreateObject(Microsoft.XMLHTTP)

 twitter_username = username 'change to your twitter username
 twitter_password = password 'change to your twitter password

 new_status = visit strangework.com!         'change to your new status

 xml.Open POST, http://;  twitter_username  :  twitter_password
  @twitter.com/statuses/update.xml?status= 
 server.URLencode(new_status), False
 xml.setRequestHeader Content-Type, content=text/html;
 charset=iso-8859-1
 xml.Send

 Response.Write xml.responseText         'view Twitter's response

 Set xml = Nothing
 %

-- 
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] User authentication verify

2010-09-17 Thread Taylor Singletary
Hi there,

Twitter doesn't support any kind of seamless-session integration as you're
looking for. Your application is one thing. Twitter is another. Being logged
into your application is a completely separate state than being logged in to
Twitter.

Taylor

On Fri, Sep 17, 2010 at 2:03 AM, yasiraja rajaya...@gmail.com wrote:

 Hi,
 Previously our application used basic authentication for
 connecting twitter users into our application, and after the
 twitter's  announcement from change from basic authentication to
 OAuth, we changed our application for oauth,
 The login of the user to our application works fine :

 The problem  we face is one the user is logged into our application
 using twitter account, initially the twitter asks for the complete
 authentication and allows the user to login into application ..If i
 open twitter.com in a separate tab in the same browser, i was
 automatically logged In in the twitter.

 If i logout in twitter , simultaneously i should be automatically
 logged out from my application and vice versa ..
 How can i approach this using twitter4j-core -api..

 Please revert me asap

 --
 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


Re: [twitter-dev] How do i retrieve tweets on the friends_timeline using oauth

2010-09-17 Thread Taylor Singletary
Hi Lyra,

I don't know much about working in ColdFusion, or using OAuth in Cold Fusion
but this thread might help you:
http://stackoverflow.com/questions/997708/coldfusion-oauth-twitter-api

I know that some folks delegate OAuth operations to a Java class.

Taylor

On Fri, Sep 17, 2010 at 1:55 AM, Lyra hpeters...@gmail.com wrote:

 I want to retrieve friends tweets to display on my website. I was
 previously using basic authentication but this no longer works.

 The site is a coded in coldfusion and I  have set up an application on
 the Twitter site so i have a consumer key etc. But i don't know what
 to do next.

 Any help or advice would be great.

 --
 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] User Background Error

2010-09-17 Thread Mike
Well, I recently updated my Twitter background from an image to just a
solid color. @mikehelmick

On an application that is using the Twitter API, I am pulling in the
users background, but on my page; it still shows my previous
background image rather than just a solid color.

Hope to see a fix for this. :)

-- 
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] Really need assistance with a basic user timeline

2010-09-17 Thread Mike
Hello all,

I am pulling my hair out trying to find an answer to this problem and
what seems like a simple problem really isn't turning out to have a
simple answer.

All I want to do is list the most recent tweets and retweets in my
account on my website.  I used to do this easily using PHP and cURL
but that feature has been broken since Twitter moved to oAuth.  Now I
want to duplicate this functionality but I just cannot seem to
understand how to do it.  All of the tutorials I've read are for
creating apps with sign ins and updating your accounts, but all I want
is the dang FEED - no updating status, no direct messages, just my
stream.

Can someone please help me?  I am frantic.

Thanks,

Mike

-- 
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] Really need assistance with a basic user timeline

2010-09-17 Thread Taylor Singletary
Hi Mike,

If your intention is to just fetch the tweets you author and the retweets
you create, you can make an unauthenticated request to something along the
lines of :

GET
http://api.twitter.com/1/statuses/user_timeline.atom?screen_name=episodinclude_rts=true

Without using OAuth, you can make a call such as this up to 150 times a day
from a single IP address. If you prefer RSS to ATOM, just change the
extension to .rss (or .json, or .xml). Replace the screen_name value with
your own screen name.

Thanks,
Taylor

On Fri, Sep 17, 2010 at 12:27 PM, Mike mikemcl...@gmail.com wrote:

 Hello all,

 I am pulling my hair out trying to find an answer to this problem and
 what seems like a simple problem really isn't turning out to have a
 simple answer.

 All I want to do is list the most recent tweets and retweets in my
 account on my website.  I used to do this easily using PHP and cURL
 but that feature has been broken since Twitter moved to oAuth.  Now I
 want to duplicate this functionality but I just cannot seem to
 understand how to do it.  All of the tutorials I've read are for
 creating apps with sign ins and updating your accounts, but all I want
 is the dang FEED - no updating status, no direct messages, just my
 stream.

 Can someone please help me?  I am frantic.

 Thanks,

 Mike

 --
 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] Re: Tweet Button counter url encoding

2010-09-17 Thread themattharris
Just wanted to let you know we've deployed some changes which should
have fixed this issue.
@themattharris

On Sep 14, 11:38 pm, Remo remo.siegw...@gmail.com wrote:
 Hi Matt

 Thank you for your response!

 The #newtwitter looks great btw!

 Cheers
 Remo

-- 
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] Re: problem in twitter share

2010-09-17 Thread themattharris
Just wanted to let you know we've deployed some changes which should
have fixed this issue.
@themattharris


On Sep 8, 8:09 am, Tom van der Woerdt i...@tvdw.eu wrote:
 There's currently a bug involving URLs that include an  character.

 Tom

 On 9/8/10 1:02 PM, swati wrote:



  script src=http://platform.twitter.com/widgets.js; type=text/
  javascript/script
  div
     a href=http://twitter.com/share; class=twitter-share-button
        data-url=http://125.63.90.181/SPARC1/Functional/JobDetails.aspx?
  JobID=616links=true

        data-text= %=Name %
        data-related=anywhere:The Javascript API
        data-count=none
       Tweet/a

  when i pass data url as http://125.63.90.181/SPARC1/Functional/
  JobDetails.aspx?JobID=616links=true it says:

  'url' parameter does not contain a valid URL.

  what should i change to post it as a valid url

  please help 

-- 
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] Re: Really need assistance with a basic user timeline

2010-09-17 Thread Mike
I suggest using http://github.com/abraham/twitteroauth

Set up an application on http://dev.twitter.com/apps/new
Plug the CONSUMER_KEY and CONSUMER_SECRET you get after creating the
App into the TwitterOAuth script.

Run the script and login, etc. In callback.php; you'll need to print_r
on $_SESSION and save those tokens as strings.

Then you'll want to make a connection to the TwitterOAuth with the
tokens you have and do:
$connection-get('statuses/user_timeline');
$connection-get('statuses/retweeted_by_me');

And you'll be able to structure a list of tweets from that data.

Ultimately, if you are not TOO concerned about having your retweets on
your site, and your tweets are not protected; you can make a
SimpleXMLElement from:
http://api.twitter.com/version/statuses/user_timeline.xml?screen_name=yourscreenname

And structure a list from that feed.
If you need any help and just want me to do it, I might have a little
free time tonight. Give me a holler at m...@michaelhelmick.com


On Sep 17, 3:27 pm, Mike mikemcl...@gmail.com wrote:
 Hello all,

 I am pulling my hair out trying to find an answer to this problem and
 what seems like a simple problem really isn't turning out to have a
 simple answer.

 All I want to do is list the most recent tweets and retweets in my
 account on my website.  I used to do this easily using PHP and cURL
 but that feature has been broken since Twitter moved to oAuth.  Now I
 want to duplicate this functionality but I just cannot seem to
 understand how to do it.  All of the tutorials I've read are for
 creating apps with sign ins and updating your accounts, but all I want
 is the dang FEED - no updating status, no direct messages, just my
 stream.

 Can someone please help me?  I am frantic.

 Thanks,

 Mike

-- 
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] Failed to validate oauth signature and token with xAuth

2010-09-17 Thread Michał Łowicki
Hi Matt!

Even with:

var timestamp = Math.round(new Date().getTime() / 1000);

still the same problem.

2010/9/17 Matt Harris mhar...@twitter.com

 Ok no idea what happened with my previous email.

 Anyway your timestamp is in milliseconds when it should be in seconds.

 Give that a go and let us know what happens.

 Matt

 On Sep 17, 2010, at 1:04, mlowicki mlowi...@gmail.com wrote:

  Hello!,
 
  We're implementing widget for Opera browser and we got xAuth access
  lately. I'm trying to get access token but without any success so far
  - http://dpaste.com/hold/244795/. generated POST seems to be exactly
  the same as on http://dev.twitter.com/pages/xauth :
 
  POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
  %2Faccess_tokenoauth_consumer_key%3Dkkk%26oauth_nonce
  %3D0.5114195354710362%26oauth_signature_method%3DHMAC-
  SHA1%26oauth_timestamp%3D1284633641688%26oauth_version
  %3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dpassword
  %26x_auth_username%3Dusername
 
  Any idea where is the problem?
 
  BR,
  Michał Łowicki
 
  --
  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




-- 
Pozdrawiam,
Michał Łowicki

-- 
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] Re: Really need assistance with a basic user timeline

2010-09-17 Thread Mike
@Taylor:

statuses/user_timeline does not return retweets and will return blank
if their last status was a retweet.
To get retweets you need to use statuses/retweeted_by_me, which does
require Authentication.

On Sep 17, 3:35 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Mike,

 If your intention is to just fetch the tweets you author and the retweets
 you create, you can make an unauthenticated request to something along the
 lines of :

 GEThttp://api.twitter.com/1/statuses/user_timeline.atom?screen_name=epis...

 Without using OAuth, you can make a call such as this up to 150 times a day
 from a single IP address. If you prefer RSS to ATOM, just change the
 extension to .rss (or .json, or .xml). Replace the screen_name value with
 your own screen name.

 Thanks,
 Taylor







 On Fri, Sep 17, 2010 at 12:27 PM, Mike mikemcl...@gmail.com wrote:
  Hello all,

  I am pulling my hair out trying to find an answer to this problem and
  what seems like a simple problem really isn't turning out to have a
  simple answer.

  All I want to do is list the most recent tweets and retweets in my
  account on my website.  I used to do this easily using PHP and cURL
  but that feature has been broken since Twitter moved to oAuth.  Now I
  want to duplicate this functionality but I just cannot seem to
  understand how to do it.  All of the tutorials I've read are for
  creating apps with sign ins and updating your accounts, but all I want
  is the dang FEED - no updating status, no direct messages, just my
  stream.

  Can someone please help me?  I am frantic.

  Thanks,

  Mike

  --
  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


Re: [twitter-dev] Re: Really need assistance with a basic user timeline

2010-09-17 Thread Matt Harris
Hey Mike,

By default the user_timeline doesn't return retweets but you'll see in
Taylor's example he added the querystring parameter include_rts=true.
If you do that retweets are included so the call to
statuses/retweeted_by_me is not required.

Hope that helps,
@themattharris

On Fri, Sep 17, 2010 at 2:49 PM, Mike under619ta...@gmail.com wrote:
 @Taylor:

 statuses/user_timeline does not return retweets and will return blank
 if their last status was a retweet.
 To get retweets you need to use statuses/retweeted_by_me, which does
 require Authentication.

 On Sep 17, 3:35 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 Hi Mike,

 If your intention is to just fetch the tweets you author and the retweets
 you create, you can make an unauthenticated request to something along the
 lines of :

 GEThttp://api.twitter.com/1/statuses/user_timeline.atom?screen_name=epis...

 Without using OAuth, you can make a call such as this up to 150 times a day
 from a single IP address. If you prefer RSS to ATOM, just change the
 extension to .rss (or .json, or .xml). Replace the screen_name value with
 your own screen name.

 Thanks,
 Taylor







 On Fri, Sep 17, 2010 at 12:27 PM, Mike mikemcl...@gmail.com wrote:
  Hello all,

  I am pulling my hair out trying to find an answer to this problem and
  what seems like a simple problem really isn't turning out to have a
  simple answer.

  All I want to do is list the most recent tweets and retweets in my
  account on my website.  I used to do this easily using PHP and cURL
  but that feature has been broken since Twitter moved to oAuth.  Now I
  want to duplicate this functionality but I just cannot seem to
  understand how to do it.  All of the tutorials I've read are for
  creating apps with sign ins and updating your accounts, but all I want
  is the dang FEED - no updating status, no direct messages, just my
  stream.

  Can someone please help me?  I am frantic.

  Thanks,

  Mike

  --
  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 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] Policy clarification on Streaming API, User Stream and Site Stream products

2010-09-17 Thread John Kalucki
Posted here: http://dev.twitter.com/pages/streaming_api

There are three main Streaming products: The Streaming API, User Streams and
Site Streams. These products operate in the same way, but each serves a
somewhat different purpose.

   - *Streaming API:* Public statuses from all users, filtered in various
   ways: By userid, by keyword, by random sampling, by geographic location,
   etc.
   - *User Streams:* Nearly all data required to update a user's display.
   Requires the user's OAuth token. Provides public and protected statuses from
   followings, direct messages, mentions, and other events taken on and by the
   user. A large number of User Streams *may not* be created from the same
   host or service. For example, an application that displays a few accounts at
   once may open a connection per account. The primary use case is providing
   updates to a Twitter client.
   - *Site Streams:* Allows multiplexing of multiple User Streams over a
   Site Stream connection. Once more than a handful of User Streams connections
   are opened from the same host or service, Site Streams *must be* used.
   The primary use case is website and other service integrations.


-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.

-- 
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] Policy clarification on Streaming API, User Stream and Site Stream products

2010-09-17 Thread M. Edward (Ed) Borasky

--
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 John Kalucki j...@twitter.com:


Posted here: http://dev.twitter.com/pages/streaming_api

There are three main Streaming products: The Streaming API, User Streams and
Site Streams. These products operate in the same way, but each serves a
somewhat different purpose.

   - *Streaming API:* Public statuses from all users, filtered in various
   ways: By userid, by keyword, by random sampling, by geographic location,
   etc.


Requires authentication, currently accepts either basic or oAuth,  
right? oAuth mandatory at some future date?



Handful is five, right? ;-)

--
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] Policy clarification on Streaming API, User Stream and Site Stream products

2010-09-17 Thread John Kalucki
We haven't made any decisions about Basic Auth and the Streaming API.

Yes, the policy is vague about connection cardinality. We're still in
beta...

-John



On Fri, Sep 17, 2010 at 3:31 PM, M. Edward (Ed) Borasky 
zn...@borasky-research.net wrote:

 --
 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 John Kalucki j...@twitter.com:

  Posted here: http://dev.twitter.com/pages/streaming_api

 There are three main Streaming products: The Streaming API, User Streams
 and
 Site Streams. These products operate in the same way, but each serves a
 somewhat different purpose.

   - *Streaming API:* Public statuses from all users, filtered in various
   ways: By userid, by keyword, by random sampling, by geographic location,
   etc.


 Requires authentication, currently accepts either basic or oAuth, right?
 oAuth mandatory at some future date?


 Handful is five, right? ;-)



-- 
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] Error posting _ to twitter using statuses/update

2010-09-17 Thread Elsa
I got a question about sending _ to twitter. It is working fine if I
post it from twitter site but when I use statuses/update to post a
status with _, twitter is returning a failure. Posting other
characters (e.g. ^ shown below) are fine using exactly the same
code. I've attached the success and failure cases with the base
strings used below. Please advice. Thanks!

Case1
=
Status String: ^
Base String: POSThttps%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
%2Fupdate.xmloauth_consumer_key%3Dxx%26oauth_nonce%3D###
%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1284670556%26oauth_token%3Dyy%26oauth_version%3D1.0%26status
%3D%255E%255E%255E%255E%255E
Rseult: Success

http: - Send header [requestId=15] (438 bytes): POST /1/statuses/
update.xml HTTP/1.1
Host: api.twitter.com
Accept: */*
Authorization: OAuth oauth_nonce=###
%,oauth_signature_method=HMAC-
SHA1,oauth_timestamp=1284670556,oauth_consumer_key=xx,oauth_token=yy,oauth_signature=zz,oauth_version=1.0
Content-Length: 22
Content-Type: application/x-www-form-urlencoded

Send data: status=%5E%5E%5E%5E%5E

HTTP/1.1 200 OK
Date: Thu, 16 Sep 2010 20:55:57 GMT
Server: hi
Status: 200 OK
X-Transaction: ##
ETag: ##
Last-Modified: Thu, 16 Sep 2010 20:55:57 GMT
X-Runtime: 0.12452
Content-Type: application/xml; charset=utf-8
Content-Length: 2214
Pragma: no-cache
X-Revision: DEV
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
check=0
Set-Cookie: k=xxx.xxx.xxx.xx.xx; path=/; expires=Thu, 23-
Sep-10 20:55:57 GMT; domain=.twitter.com
Set-Cookie: guest_id=##; path=/; expires=Sat, 16 Oct 2010 20:55:57
GMT
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=##; domain=.twitter.com; path=/
Vary: Accept-Encoding
Connection: close
?xml version=1.0 encoding=UTF-8?
status
created_atThu Sep 16 20:55:57 + 2010/created_at
id##/id
text^/text
.

Case2
=
Status String: _
POSThttps%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
%2Fupdate.xmloauth_consumer_key%3Dxx%26oauth_nonce%3D###
%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1284670570%26oauth_token%3Dyy%26oauth_version%3D1.0%26status
%3D%255F%255F%255F%255F%255F
Result: Fail

http: - Send header [requestId=16] (441 bytes): POST /1/statuses/
update.xml HTTP/1.1
Host: api.twitter.com
Accept: */*
Authorization: OAuth oauth_nonce=###
%,oauth_signature_method=HMAC-
SHA1,oauth_timestamp=1284670570,oauth_consumer_key=xx,oauth_token=yy,oauth_signature=zz,oauth_version=1.0
Content-Length: 22
Content-Type: application/x-www-form-urlencoded

Send data: status=%5F%5F%5F%5F%5F

HTTP/1.1 401 Unauthorized
Date: Thu, 16 Sep 2010 20:56:11 GMT
Server: hi
Status: 401 Unauthorized
WWW-Authenticate: Basic realm=Twitter API
Content-Type: application/xml; charset=utf-8
Content-Length: 135
Cache-Control: no-cache, max-age=1800
Set-Cookie: k=xxx.xxx.xxx.xx.xx; path=/; expires=Thu, 23-
Sep-10 20:56:11 GMT; domain=.twitter.com
Set-Cookie: guest_id=##; path=/; expires=Sat, 16 Oct 2010 20:56:11
GMT
Set-Cookie: _twitter_sess=##; domain=.twitter.com; path=/
Expires: Thu, 16 Sep 2010 21:26:11 GMT
Vary: Accept-Encoding
Connection: close
?xml version=1.0 encoding=UTF-8?
hash
request/1/statuses/update.xml/request
errorIncorrect signature/error
/hash

-- 
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] Re: 01:Authentication credentials were missing or incorrect. / ColdFusion + Twitter4J

2010-09-17 Thread wildcat
Did you get this answered? If not, the answer is that Twitter returns
a URL variable called OATH_VERIFIER that you need to add as the third
parameter in your getOAuthAccessToken request.
RLS

On Sep 14, 3:47 pm, Andy Reid andyreid...@gmail.com wrote:
 Oddly enough. No. I just dumped the response toString():

 OAuthToken{token='z', tokenSecret='y',
 secretKeySpec=null}

 This is odd because it actually comes back to the correct page.

 However, when I manually set the default callback url (in
 dev.twitter.com) the oAuth worked completely fine and I was able to
 send updates, etc. The destination domain for the desired callback is
 in the list, and, like I said, it even came back to the correct page.

 Any idea what that could be?!

 Thanks,
 Andy

 On Sep 10, 3:11 pm, Tom van der Woerdt i...@tvdw.eu wrote:



  Do you get a confirmation on the callback after request_token?

  Tom

  On 9/10/10 9:55 PM, Andy Reid wrote:

   Hi --

   I'm trying to get my oAuth working with twitter4j and ColdFusion.

   Here's the code I use:

   cfset TwitterConsumerKey = ss
   cfset TwitterConsumerSecret = 
   cfset Twitter = createObject(java, twitter4j.Twitter)
   cfset
   Twitter.setOAuthConsumer(TwitterConsumerKey,TwitterConsumerSecret)
   cfif structKeyExists(url,'oauth_token') IS FALSE
   !--- // 2. Authorize ---
      cfset RequestToken = Twitter.getOAuthRequestToken(http://
   myURL.com)
      cfset Session.oAuthRequestToken = RequestToken.getToken()
      cfset Session.oAuthRequestTokenSecret =
   RequestToken.getTokenSecret()
      cflocation url=#RequestToken.getAuthorizationURL()#
   addtoken=No
   cfelse
      !--- // 3. Authenticate // ---
      cfset AccessToken =
   Twitter.getOAuthAccessToken(Session.oAuthRequestToken,Session.oAuthRequestT
okenSecret)
      cfset session.StoredAccessToken = AccessToken.getToken()
      cfset session.StoredAccessSecret = AccessToken.getTokenSecret()
       cfset
   Twitter.setOAuthAccessToken(Session.StoredAccessToken,Session.StoredAccessS
ecret)
      cfset ID = Twitter.getId()
       cfdump var=#session#
       cfdump var=#ID#
   /cfif

   It loads fine, and brings me to the Twitter authentication screen. I
   click Agree and am redirected back to my page.

   When I return I am met with this error:
   401:Authentication credentials were missing or incorrect. ?xml
   version=1.0 encoding=UTF-8? hash request/oauth/access_token/
   request errorInvalid oauth_verifier parameter/error

   Any ideas?

-- 
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] Error posting _ to twitter using statuses/update

2010-09-17 Thread yaemog Dodigo
interesting, posting  as a status message throught the api
(python-twitter) worked for me.

HTTP/1.1 401 Unauthorized


maybe sth. else is broken?

-- 
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] retrieving retry-after value

2010-09-17 Thread Abhi
Hi,

was wondering if any one can help with the PHP code to retrieve retry-
after value from the header using CURL.

I tried several ways but nothing seems to work. Thanks for help in
advance.

-- 
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] Re: Twitter in Portuguese

2010-09-17 Thread George Lima
I'm waiting attentively, thanks!

On Sep 16, 1:44 am, George Lima beomo...@gmail.com wrote:
 why there is a setting in Portuguese language?
 why is twitter question: What language would you like to Twitter in?
 I would like to see in Portuguese,  more not have this option

-- 
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