[twitter-dev] Re: XAuth authentication fail on Chinese machine

2010-11-08 Thread pawan
Hi,

My App working fine on other language machine but in chinese machine I
use same code for singnatrue generation, and request look like same
but in response I got 401 error.

Thanks,
Pawan Singh

On Nov 4, 1:49 pm, engine.start 477914...@163.com wrote:
 Have you test your singnatrue by the wayhttp://quonos.nl/oauthTestersupport ? 
 (not only the base)
 And have you captured your request ? Maybe youshould do this job first, and 
 then again on a non-chinesemachine,
 you will get the answer.

 At 2010-11-04 16:20:05,pawan pawanrajsingh2...@gmail.com wrote:

 Hi,

 Thanx for reply but still in reply I got same problem (The remote
 server returned an error: (401) Unauthorized.). I add  this line in my
 web request webRequest.Headers.Add(Accept-Language: zh-CN,en,*);
 But no sucess.
 :(

 On Nov 3, 11:03 am, engine.start 477914...@163.com wrote:
  Hi,
  Your problem maybe same as mine.

  chang url to another website, do not use ssl, wireshark your request, and 
  then compare with this, maybe it will work.
  (I use libcurl, and add User-Agent: Mozilla/5.0 to httpheader, and it 
  work)

  POST ?x_auth_username=###x_auth_password=x_auth_mode=client_auth 
  HTTP/1.1
  Authorization: OAuth 
  oauth_consumer_key=#,oauth_signature_method=HMAC-SHA1,oauth_signature=,oauth_timestamp=1288593077,oauth_nonce=9TPwvl28NeTtKLZH,oauth_version=1.0
  Content-Length: 0
  Connection: Keep-Alive
  Accept-Encoding: gzip
  Accept-Language: zh-CN,en,*
  User-Agent: Mozilla/5.0
  Host:www.XX.com

  Content-Type: application/x-www-form-urlencoded

  At 2010-11-03 13:18:16,pawan pawanrajsingh2...@gmail.com wrote:

  Thanks for reply but after using thishttp://quonos.nl/oauthTesterURL
  I got my base string is ok and still I not able to find out how to
  resolve this issue.

  On Nov 2, 12:32 am, Tom van der Woerdt i...@tvdw.eu wrote:
   Hi,

   Most 401 Unauthorized errors (and especially the ones involving UTF8
   characters) are because of errors in the Base String, used to generate
   the signature.

   Please use the validation tool at http://quonos.nl/oauthTester, it may
   help you a lot with validating your Base String. As access_token always
   involves usernames and passwords, please do substitute them with dummy
   ones for security reasons - just make sure that they at least look like
   the previous ones, because otherwise it would be hard to detect encoding
   issues.

   Tom

   PS: When dealing with encoding issues, XX'ing the values really
   doesn't help.

   On 11/1/10 6:58 PM, pawan wrote:

Hi,

We have created a Desktop Twitter application, In this application I
have usedXAuthfeature to get data from Twitter API. It works fine
on Win 7 Ultimatemachine. However when I run my application's exe on
core Chinese Win 7machine, I got The remote server returned an
error: (401) Unauthorized. error from following request:

   https://api.twitter.com/oauth/access_token?oauth_consumer_key=XXX...

Can anyone help me out to know how to resolve this issue.

Thanks,
Pawan

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

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

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


[twitter-dev] To add retweet functionality in my app

2010-11-08 Thread Prasad
In my twitter app i am providing an option to retweet, in that case i
cannot retweet my own tweet, for that what is the option in response
feed which says i am the owner of that tweet so that for those tweets
i can show delete option instead of retweet?
Can anyone please help on this
Thanks 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


[twitter-dev] Followers RSS?

2010-11-08 Thread SteeleR
Is there a way to get a RSS of someone's followers tweets. Something
like http://twitter.com/statuses/followers/username.rss

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


[twitter-dev] Twitter Share URL Encoding and £ sign

2010-11-08 Thread WCC
Hi,

I seem to be having difficulty sharing a page that has a british pound
sign in it (£) using the twitter share url

e.g. http://twitter.com/share?url=http://www.someurl.co.uk/orders-over-£500.aspx

I have URL encoded the url query so the £ sign changes to %A3 however
this still returns

URL required
'url' parameter does not contain a valid URL.

I have tried (pound; / #163; / %c2%a3) which all don't seem to work.

Any suggestions on this?

Matt

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


[twitter-dev] Re: Oauth Incorrect Signature or Could not authenticate error

2010-11-08 Thread DavidD
I'm using Oauth implementation for Delphi by Chuckbeasley

If it was just on POST I could see that.
But with GET on a Direct_messages and Favorites,they act differently
and they both require authentication according to the api's that is
odd to me.

Is there something in regards to this being a desktop client that I'm
using an Embedded browser in that causes this.  Can  Twitter tell
that?
I've noticed for example I don't get an oauth_verifier back from the
callback in this app where I do in a web app.

It's infuriating to be close to having this working to be thwarted by
Could not authenticate you



On Nov 8, 1:43 am, udta 477914...@163.com wrote:
 No code, No answer

 What is the lib you are using?
 Maybe the post body's urlencoding is wrong.
 Maybe you will meet the same problem when friendship create...

 At 2010-11-08 13:20:13,DavidD ddudl...@gmail.com wrote:







 Also Favorites works fine.  No errors.   I'm not sure why this works
 and direct_messages doesn't, nor will destroy on a status id

 I really am at a loss here.   Can no one give me a pointer as to my
 problem?

 Are there any issues with these api's?

 David

 On Nov 6, 5:39 pm, DavidD ddudl...@gmail.com wrote:
  I am getting an 401 Unauthorized with an Incorrect Signature or
  Could not authenticate error when trying to get Direct Messages
  after getting an access token

  I can get a user_timeline no problem and I believe favorites but the
  Direct Messages and home_timeline I get an error.

  I also have a 401 when I try and delete a tweet from the user
  timeline.

  I am stuck and need help.

  Thanks!

  David

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

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


Re: [twitter-dev] twitter button with access token?

2010-11-08 Thread Matt Harris
The Tweet Button handles this for you. If you are already logged into Twitter 
the Tweet Button won't ask you to login again.

The API doesn't allow you to log a user in.

Hope that helps,
@themattharris

On Nov 5, 2010, at 14:42, jack jackwum...@gmail.com wrote:

 i am wondering if there is a way to pass access token to the twitter
 button, if the user already loged in to my website and i have his
 access token stored. then i can skip the twitter login screen.
 
 -- 
 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

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


Re: [twitter-dev] Retweets of me - want to see actual rts from others

2010-11-08 Thread Matt Harris
Which timeline method are you using at the moment?

Can you share an example API request you are making?

Best,
@themattharris

On Nov 5, 2010, at 12:15, beerkid beers...@gmail.com wrote:

 So the updates/timeline should show the actual retweet messages from
 other users instead of just my own timelines showing only which tweets
 of mine have been retweeted ...
 
 How do I do this?
 
 Thanks!
 Adam
 
 -- 
 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

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


Re: [twitter-dev] Problem with uploading file to Twitpic

2010-11-08 Thread Matt Harris
Twitpic is a third party service which isn't supported by Twitter.

For help with Twitpic you will need to contact them through their developer 
site.

Best,
@themattharris

On Nov 6, 2010, at 17:51, mlowicki mlowi...@gmail.com wrote:

 Hi!
 I'm trying to write javascript code for uploading photos to Twitpic.
 This is Opera widget so i have cross-domain ajax. Authorization with
 Twitter works but when I send request to api.twitpic.com/2/upload.json
 I get
 
 {errors:[{code:400,message:Bad Request. Media not included in
 POST payload.}]}
 
 This is strange because I send media paramter:
 
 key={MY_KEY}message=messagemedia=iVBORw0KGgoNSUhEUgAA...
 
 Where the problem can be?
 
 -- 
 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

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


Re: [twitter-dev] Re: Statuses Show not working

2010-11-08 Thread Matt Harris
Is there a chain the user deleted the status? If not can you give me a couple 
of Tweet IDs to test.

Thanks,
@themattharris

On Nov 7, 2010, at 9:28, Colby Palmer colbywo...@gmail.com wrote:

 I am also having the same problem with not found errors.  I've found
 I can sometimes get a response if I use the old format of /statuses/
 show.json?id=, but this doesn't work consistently.  Could it be
 Snowflake-related?
 
 -- 
 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

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


Re: [twitter-dev] Uploading photo in base 64 via XMLHttpRequest

2010-11-08 Thread Matt Harris
Twitpic is a third party service so you need to contact them for support.

Thanks
@themattharris

On Nov 7, 2010, at 12:35, mlowicki mlowi...@gmail.com wrote:

 Hello!
 
 I'm developing Twitter client and I want to add option for uploading
 photo to Twitpic. This is the code:
 
 [...] // Listener on Add photo button.
 
 triggerBtn.addEventListener('click', function() {
opera.io.filesystem.browseForFile('', '', function(mp) {
var fs = mp.open(null, 'r'),
  data = fs.readBase64(fs.bytesAvailable);
 
 uploadPhoto(data);
}, false, false, []);
 }, false);
 
 [...]
 
 function uploadPhoto(photoB64) {
// Run method from library for handling communication with Twitpic
O.Twitpic.upload(photoB64, {
fn: function(req) {
console.info('upload success', req.responseText);
}
}, {
fn: function(req) {
console.info('upload failure', req.responseText);
}
});
 }
 
 [...]
 
 upload: function(photo, onSuccess, onFailure) {
makeRequest(
O.IO.Req.POST,
'http://api.twitpic.com/2/upload.json',
[
{name: 'key', value: TWITPIC_KEY},
{name: 'message', value: 'message'},
{name: 'media', value: 'data:image/png;base64,' +photo}
],
onSuccess,
onFailure
);
 }
 
 [...]
 
 function makeRequest(method, action, parameters, onSuccess, onFailure)
 {
var message = {
method: method,
action: action,
parameters: []
};
 
parameters.forEach(function(parameter) {
message.parameters.push([parameter.name, parameter.value]);
});
 
 
var body = OAuth.formEncode(message.parameters);
 
var o = {
   consumerKey: O.Twitter.getConsumerKey(),
   consumerSecret: O.Twitter.getConsumerSecret(),
   token: O.Twitter.getAccessToken(),
   tokenSecret: O.Twitter.getAccessTokenSecret()
};
 
OAuth.completeRequest(message, o);
 
var authHeader = OAuth.getAuthorizationHeader('https://
 twitter.com/',
 
 message.parameters);
 
new O.IO.Req({
url: action
data: body,
method: method,
headers: [{
name: 'X-Verify-Credentials-Authorization',
val: authHeader
}, {
 name: 'X-Auth-Service-Provider',
 val: 'https://api.twitter.com/1/account/
 verify_credentials.json'
}],
 onSuccess: {
 fn: function(req) {
 try{
 var respJSON = JSON.parse(req.responseText);
 onSuccess.fn.call(onSuccess.scope, req,
 respJSON);
  } catch(e) {
 onFailure.fn.call(onFailure.scope, req);
  }
}
},
onFailure: {
fn: function(req) {
try{
var respJSON = JSON.parse(req.responseText);
onFailure.fn.call(onFailure.scope, req, respJSON);
} catch(e) {
onFailure.fn.call(onFailure.scope, req);
}
}
}});
 }
 
 [...] // O.IO.Req constructor
 
 /**
 * Ajax request class.
 * @class Req
 * @constructor
 */
 O.IO.Req = function(o) {
this._url = o.url;
this._onSuccess = o.onSuccess;
this._onFailure = o.onFailure;
this._data = o.data;
this._sync = typeof o.sync === boolean ? o.sync : true;
this._headers = o.headers || [];
this._method = o.method || GET;
 
this._req = new XMLHttpRequest();
this._req.open(this._method, this._url, this._sync);
 
if(this._method === POST) {
this._req.setRequestHeader(Content-type,
application/x-www-form-urlencoded);
}
 
var that = this;
this._headers.forEach(function(header) {
that._req.setRequestHeader(header.name, header.val);
});
 
this._req.onreadystatechange = function () {
if (this.readyState != 4) { return };
 
if (this.status != 200  this.status != 304  this.status !=
 0) {
that._onFailure.fn.call(that._onFailure.scope, this);
return;
}
 
that._onSuccess.fn.call(that._onSuccess.scope, this);
};
 
if(this._req.readyState == 4) { return; }
 
console.info('data', this._data);
this._req.send(this._data);
 };
 
 This is how look data passed to send method (displayed with the last
 console.info):
 
 key={MY_TWITPIC_KEY}message=messagemedia=data%3Aimage%2Fpng
 %3Bbase64%2CiVBORw0KGgoNSUhEUgAAAFEAAACECAIAAABnHlD9AXNS...
 
 Response:
 
 {errors:[{code:400,message:Bad Request. Media not included in
 POST payload.}]}
 
 I tried also without 'data:image/png;base64,' prefix in data but I get
 the same resposne. This media should be sent as I'm doing it or in
 some other way like files in standard html forms?
 
 -- 
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: 

[twitter-dev] Re: Followers RSS?

2010-11-08 Thread Jim Chevalier
Someone else's follower's tweets?
Or your follower's tweets?

It sounds like your asking about the former, but I figured I'd ask
since http://myfollowerlist.com could help with your follower's
tweets...

-Jim

On Nov 8, 7:32 am, SteeleR cssslic...@gmail.com wrote:
 Is there a way to get a RSS of someone's followers tweets. Something
 likehttp://twitter.com/statuses/followers/username.rss

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


Re: [twitter-dev] Re: User Lookup in JavaScript

2010-11-08 Thread Matt Harris
In the basestring the encoded POST parameters are encoded again. This means the 
%2C for the comma should be encoded too, making it %252C in the basestring.

Give that a try and let us know how it goes.

Best,
@themattharris

On Nov 7, 2010, at 23:51, EL lee@gmail.com wrote:

 Still struggling with this. Been playing around with all the
 parameters but cannot seem to authenticate these requests.
 
 Anyone able to suggest any cause?
 
 Thanks
 
 On Nov 3, 8:47 am, EL lee@gmail.com wrote:
 Thanks. I took the square brackets out, but still get back:
 
 {error:Incorrect signature,request:\/1\/users\/lookup.json}
 
 TEST_IDS now encodes to:
 21295828%2C20138230%2C15799970%2C12304722%2C39765560
 
 and my baseString now comprises of:
 
 POSThttp%3A%2F%2Fapi.twitter.com%2F1%2Fusers
 %2Flookup.jsonoauth_consumer_key%3DabigCxu2JyYT5nsfaBaAg%26oauth_nonce
 %3DtfNqBN%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
 %3D1288773899%26oauth_token%3D14527377-
 AFQKivy5CnpuZbTwiKDscjIcf59AuVlg0mMArdwJO%26user_id
 %3D40694828%2C20138230%2C15799970%2C12304722%2C39765560
 
 Thanks
 
 On Nov 2, 4:11 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
 
 
 
 It looks like your TEST_IDS array would turn
 into %5B21495828%2C20128230%2C15798970%2C12374722%2C39745560%5D with the
 code here. You don't need/shouldn't wrap the list of ids in square
 brackets.
 
 Taylor
 
 On Tue, Nov 2, 2010 at 6:46 AM, EL lee@gmail.com wrote:
 I am attempting to call the batch lookup method (http://
 dev.twitter.com/doc/get/users/lookup) using JavaScript. I've
 successfully managed to authorize the user and obtain an Access token
 etc. and I'm not attempting to make the data request:
 
 var TEST_IDS =
 escape([21495828,20128230,15798970,12374722,39745560]);
 var LOOKUP_URL = 'http://api.twitter.com/1/users/lookup.json';
var oauth_nonce = getNonce(); //Returns a random nonce. Confirmed
 as working OK
var newtimestamp = getTimeStamp(); //Confirmed as working OK
var baseString = POSThttp%3A%2F%2Fapi.twitter.com%2F1%2Fusers
 %2Flookup.jsonoauth_consumer_key%3D + oauth_consumer_key +
%26oauth_nonce%3D + oauth_nonce +
%26oauth_signature_method%3DHMAC-
 SHA1%26oauth_timestamp%3D + newtimestamp +
%26oauth_token%3D + authentication.oauth_token +
%26user_id%3D + TEST_IDS;
 
var oauth_signature_base = oauth_consumer_secret +  +
 authentication.oauth_token_secret;
var oauth_signature = b64_hmac_sha1(oauth_signature_base,
 baseString);
var key = oauth_consumer_key= + oauth_consumer_key;
var method = oauth_signature_method= + oauth_signature_method;
var signature = oauth_signature= + oauth_signature;
var timestamp = oauth_timestamp= + newtimestamp;
var nonce = oauth_nonce= + oauth_nonce;
var oauth_token = oauth_token= + authentication.oauth_token;
var list = user_id= + TEST_IDS;
 
var postdata = key + nonce + signature + method + timestamp +
 oauth_token + list;
 
//Make our request
var req = new Ajax.Request(LOOKUP_URL, {
method: 'post',
evalJSON: 'true',
postBody: postdata,
contentType: 'application/x-www-form-urlencoded',
onComplete: function(response) {
ListRequestComplete(response);
}
});
 
 However, the above is returning the following from the API:
 
 {error:Incorrect signature,request:\/1\/users\/lookup.json}
 
 I've confirmed that the authentication object contains the token and
 token_secret correctly received from the AccessToken process, so I
 don't know what I'm doing wrong here.
 Can anyone advise what I'm doing wrong in my signature to make the
 above request?
 
 Thanks
 
 --
 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
 
 -- 
 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

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


Re: [twitter-dev] Followers RSS?

2010-11-08 Thread Matt Harris
The API only supports this information in JSON and XML. For it to be in RSS you 
would need to reformat the API response yourself.

Best,
@themattharris

On Nov 8, 2010, at 3:32, SteeleR cssslic...@gmail.com wrote:

 Is there a way to get a RSS of someone's followers tweets. Something
 like http://twitter.com/statuses/followers/username.rss
 
 -- 
 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

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


Re: [twitter-dev] statuses/mentions missing tweets

2010-11-08 Thread Taylor Singletary
There are times when the cache is not warm with more recent tweets. These
times will pass and there's really not much you can do from an API
perspective when this condition is happening to a particular user's
timelines. The data is just inaccessible to the API at the moment.

Taylor

On Sun, Nov 7, 2010 at 1:41 PM, Aaron Rankin aran...@sproutsocial.comwrote:

 I'm seeing errors with this endpoint. A request for the last 200
 mentions of @aaronrankin returns 29 mentions that were created between
 February and now, with many missing. Per my own cache of tweets, there
 were 200 mentions of @aaronrankin between September 3rd and today.

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


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


Re: [twitter-dev] Receiving streaming API tweets without id_str

2010-11-08 Thread John Kalucki
We're looking into this issue.

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



On Sat, Nov 6, 2010 at 10:08 AM, Adam Green 140...@gmail.com wrote:

 My error logs started showing tweets without an id_str value a few
 days ago. I investigated today and found that these tweets are coming
 about 5-6 times an hour out of about 500 tweets per hour. I am using
 Phirehose to gather these tweets from the streaming API. I am
 collecting the tweets in JSON format. Neither my code or Phirehose has
 changed in the recent past, and as I said, about 99% of the tweets are
 fine. Here is an example of a bad tweet. It has a truncated field,
 which I haven't seen before. I assume this has something to do with
 the missing values. Does anyone have any idea what is happening here?

[new_id_str] = 951769790156802
[place] =
[truncated] =
[user] = stdClass Object
(
[follow_request_sent] =
[time_zone] = Jakarta
[url] = http://lada-hitam.livejournal.com/
[profile_background_color] = B2DFDA
[screen_name] = MissLadaHitam
[profile_background_image_url] =
 http://s.twimg.com/a/1288660386/images/themes/theme13/bg.gif
[profile_text_color] = 33
[listed_count] = 0
[lang] = en
[profile_background_tile] =
[statuses_count] = 891
[following] =
[favourites_count] = 159
[profile_link_color] = 93A644
[show_all_inline_media] =
[profile_use_background_image] = 1
[description] =
[contributors_enabled] =
[profile_sidebar_fill_color] = ff
[protected] =
[location] = Indonesia
[geo_enabled] =
[name] = Lada Hitam
[notifications] =
[friends_count] = 8
[profile_sidebar_border_color] = ee
[id] = 117790534
[verified] =
[utc_offset] = 25200
[created_at] = Fri Feb 26 16:36:22 + 2010
[followers_count] = 18
[profile_image_url] =
 http://a1.twimg.com/profile_images/740195225/42360__1__normal.jpg
)

[in_reply_to_status_id] =
[favorited] =
[source] = web
[new_id] = 9.517697901568E+14
[contributors] =
[in_reply_to_screen_name] =
[coordinates] =
[retweet_count] =
[in_reply_to_user_id] =
[entities] = stdClass Object
(
[user_mentions] = Array
(
)

[hashtags] = Array
(
)

[urls] = Array
(
)

)

[geo] =
[retweeted] =
[id] = 9.517697901568E+14
[text] = Today's cookings mostly failed :( It makes me less
 motivated to try another recipe tomorrow. But I have some mushrooms
 that need to be used.
[created_at] = Sat Nov 06 16:44:54 + 2010
 )

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


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


Re: [twitter-dev] Re: Exception while using count parameter of streaming api

2010-11-08 Thread John Kalucki
Shadow allows you to follow more users, but also allows you to continue to
use track. There are no cases where we support count and track together.

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



On Fri, Nov 5, 2010 at 9:41 AM, revati choudhari revati.choudh...@gmail.com
 wrote:

 Thanks for your reply.
 Actually I have the Shadow access level, which means that I should be
 able to use the count parameter.
 Why do I still get the exception? :(
 Also, I didnt understand what you mean by endpoint? Please explain.

 Does Note that the count parameter is not allowed elsewhere,
 including
 track, sample mean that I cannot use the count parameter with the
 track parameter? The wording are a little confusing.

 Thanks,
 Revati


 On Nov 2, 11:02 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  The count parameter is not available for all streaming roles/endpoints.
 What
  end point are you executing and what level of streaming do you have
 access
  to?
 
  From the docs on the count parameter:
  *Firehose, Links, Birddog and Shadow* clients interested in capturing all
  statuses should maintain a current estimate of the number of statuses
  received per second and note the time that the last status was received.
  Upon a reconnect, the client can then estimate the appropriate backlog to
  request. *Note that the count parameter is not allowed elsewhere*,
 including
  track, sample and on the default access role.
 
  Taylor
 
  On Tue, Nov 2, 2010 at 10:14 AM, revati choudhari 
 
 
 
  revati.choudh...@gmail.com wrote:
   I am doing a project on twitter sentiment analysis, and I was trying
   to pull previous statuses using the count parameter. Here is the
   code:
 
   inputConfig.Parameters = track= + FilterParametersTbx.Text +
   count=10;
 
   I was granted the shadow access level by twitter yesterday, which
   means I can use the count parameter. Why do I still get the
   following exception?
 
   System.Net.WebException was unhandled by user code
   Message=The remote server returned an error: (416) Requested Range Not
   Satisfiable.
   Source=System
   StackTrace:
   at System.Net.HttpWebRequest.GetResponse()
   at AdvantIQ.ExampleAdapters.Input.Twitter.TwitterInput.ProduceEvents()
   in C:\Stream Insight Example\JAhlen - username\ExampleAdapters\Input
   \Twitter\TwitterInput.cs:line 68
   at AdvantIQ.ExampleAdapters.Input.Twitter.TwitterInput.Start() in C:
   \Stream Insight Example\JAhlen - username\ExampleAdapters\Input\Twitter
   \TwitterInput.cs:line 45
   at Filter.InvokeWithFilter(Action , Func`2 , Action`1 )
   at
 
  
 Microsoft.ComplexEventProcessing.Diagnostics.Exceptions.ExecuteWithFilter(A­ction
   body, Func`2 filter, Action`1 handler)
   at
  
 Microsoft.ComplexEventProcessing.Adapters.Adapter.ThreadProcStart(Object
   thisPtr)
   InnerException:
 
   If anyone has any idea about this, please help me out.
 
   --
   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- Hide quoted
 text -
 
  - Show quoted text -

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


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


[twitter-dev] Research on Twitter: can I get all tweets from US?

2010-11-08 Thread zhengnantc
Hi guys:

I am a newbie for Twitter API. I just start some research on twitter,
but I am not sure whether I can all all tweets from US users, or only
an sampling data. If I can, how? From the streaming API?

Thanks so much for your 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


[twitter-dev] Using http://api.twitter.com/version/users/lookup.format

2010-11-08 Thread Quy
Hi,

If the social graph API calls return up to 500 ids, does that mean I
need to call the lookup API call 5 times to get extended information
since the lookup max is 100 users? Is there a better way to do this?

Quy

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


[twitter-dev] Smaller follow button

2010-11-08 Thread Quy
Is it possible to use the internal Javascript API to create a smaller
follow button that also detects if the logged in user also follows a
user - similar to Facebook's Like button.

Quy

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


[twitter-dev] twitter idea

2010-11-08 Thread davidbchannel
Hi,
I have an idea for an update to twitter. only where can I say it? is
that on this forum?
Unfortunately, the plan is in Dutch so I hope that there are Dutch
twitter boses.
But for now the quistion is ''where can i send ore upload my idea?''

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


Re: [twitter-dev] twitter idea

2010-11-08 Thread Tom van der Woerdt
As far as I know there's nobody on the Twitter team who is Dutch.
However, if you want, I can do some translation for you (if it's
actually a good idea, of course).

Tom


On 11/8/10 8:42 PM, davidbchannel wrote:
 Hi,
 I have an idea for an update to twitter. only where can I say it? is
 that on this forum?
 Unfortunately, the plan is in Dutch so I hope that there are Dutch
 twitter boses.
 But for now the quistion is ''where can i send ore upload my idea?''
 

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


[twitter-dev] Re: statuses/mentions missing tweets

2010-11-08 Thread Aaron Rankin
Fair enough, though it hasn't corrected itself yet and I'm seeing it
on every user I test against so this feels like a systemic problem.
Our application caches all historical mentions of our users. How are
we to know when the API gives us valid results or not?

On Nov 8, 11:28 am, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 There are times when the cache is not warm with more recent tweets. These
 times will pass and there's really not much you can do from an API
 perspective when this condition is happening to a particular user's
 timelines. The data is just inaccessible to the API at the moment.

 Taylor

 On Sun, Nov 7, 2010 at 1:41 PM, Aaron Rankin aran...@sproutsocial.comwrote:







  I'm seeing errors with this endpoint. A request for the last 200
  mentions of @aaronrankin returns 29 mentions that were created between
  February and now, with many missing. Per my own cache of tweets, there
  were 200 mentions of @aaronrankin between September 3rd and today.

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

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


[twitter-dev] Direct Message endpoints returning HTTP 502 constantly

2010-11-08 Thread Aaron Rankin
Is this expected due to capacity or other infrastructure problems? Or,
am I doing something wrong?


Thanks,
Aaron

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


Re: [twitter-dev] Direct Message endpoints returning HTTP 502 constantly

2010-11-08 Thread Tom van der Woerdt
Direct Messages usually aren't cached, so they return these errors a lot
more often. If you get a 502, just keep trying until you get a proper
response. (Limit the amount of requests to 10, of course)

Tom


On 11/8/10 9:23 PM, Aaron Rankin wrote:
 Is this expected due to capacity or other infrastructure problems? Or,
 am I doing something wrong?
 
 
 Thanks,
 Aaron
 

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


[twitter-dev] Deprecation Notice: XML Support on Streaming APIs will be dropped on Dec 6th, 2010

2010-11-08 Thread Taylor Singletary
Hi Developers,

We will end support for XML on all Streaming APIs on Dec 6th, 2010, after
encouraging developers to use JSON-based output formats for some time now.
This deprecation does not apply to the REST or Search APIs, but all clients
requesting XML from stream.twitter.com, regardless of role and method
(sample, filter, follow, etc) will be affected.

If you're currently connecting to an XML-based Twitter Streaming API
endpoint, you'll need to migrate your code to consume JSON by Monday
December 6th, 2010 (approximately four weeks from now). According to our
records, only a very small number of developers are consuming XML via
streams today.

Now would be a good time for streaming clients to verify that they are using
JSON. If you're still using XML, please migrate to JSON as soon as possible.
User/Site Streams implementations should already be JSON-only.

As a reminder, we encourage using OAuth to connect to the Streaming API --
basic authentication, while supported today on stream.twitter.com, will also
be deprecated at a future date.

Please respond with any questions or concerns.

Thanks!
Taylor Singletary
http://twitter.com/episod

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


Re: [twitter-dev] Receiving streaming API tweets without id_str

2010-11-08 Thread John Kalucki
This should be fixed. Again. Please let us know if this recurs.

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



On Sat, Nov 6, 2010 at 10:08 AM, Adam Green 140...@gmail.com wrote:

 My error logs started showing tweets without an id_str value a few
 days ago. I investigated today and found that these tweets are coming
 about 5-6 times an hour out of about 500 tweets per hour. I am using
 Phirehose to gather these tweets from the streaming API. I am
 collecting the tweets in JSON format. Neither my code or Phirehose has
 changed in the recent past, and as I said, about 99% of the tweets are
 fine. Here is an example of a bad tweet. It has a truncated field,
 which I haven't seen before. I assume this has something to do with
 the missing values. Does anyone have any idea what is happening here?

[new_id_str] = 951769790156802
[place] =
[truncated] =
[user] = stdClass Object
(
[follow_request_sent] =
[time_zone] = Jakarta
[url] = http://lada-hitam.livejournal.com/
[profile_background_color] = B2DFDA
[screen_name] = MissLadaHitam
[profile_background_image_url] =
 http://s.twimg.com/a/1288660386/images/themes/theme13/bg.gif
[profile_text_color] = 33
[listed_count] = 0
[lang] = en
[profile_background_tile] =
[statuses_count] = 891
[following] =
[favourites_count] = 159
[profile_link_color] = 93A644
[show_all_inline_media] =
[profile_use_background_image] = 1
[description] =
[contributors_enabled] =
[profile_sidebar_fill_color] = ff
[protected] =
[location] = Indonesia
[geo_enabled] =
[name] = Lada Hitam
[notifications] =
[friends_count] = 8
[profile_sidebar_border_color] = ee
[id] = 117790534
[verified] =
[utc_offset] = 25200
[created_at] = Fri Feb 26 16:36:22 + 2010
[followers_count] = 18
[profile_image_url] =
 http://a1.twimg.com/profile_images/740195225/42360__1__normal.jpg
)

[in_reply_to_status_id] =
[favorited] =
[source] = web
[new_id] = 9.517697901568E+14
[contributors] =
[in_reply_to_screen_name] =
[coordinates] =
[retweet_count] =
[in_reply_to_user_id] =
[entities] = stdClass Object
(
[user_mentions] = Array
(
)

[hashtags] = Array
(
)

[urls] = Array
(
)

)

[geo] =
[retweeted] =
[id] = 9.517697901568E+14
[text] = Today's cookings mostly failed :( It makes me less
 motivated to try another recipe tomorrow. But I have some mushrooms
 that need to be used.
[created_at] = Sat Nov 06 16:44:54 + 2010
 )

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


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


Re: [twitter-dev] Deprecation Notice: XML Support on Streaming APIs will be dropped on Dec 6th, 2010

2010-11-08 Thread M. Edward (Ed) Borasky

Hooray!!!

--
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 Taylor Singletary taylorsinglet...@twitter.com:


Hi Developers,

We will end support for XML on all Streaming APIs on Dec 6th, 2010, after
encouraging developers to use JSON-based output formats for some time now.
This deprecation does not apply to the REST or Search APIs, but all clients
requesting XML from stream.twitter.com, regardless of role and method
(sample, filter, follow, etc) will be affected.

If you're currently connecting to an XML-based Twitter Streaming API
endpoint, you'll need to migrate your code to consume JSON by Monday
December 6th, 2010 (approximately four weeks from now). According to our
records, only a very small number of developers are consuming XML via
streams today.

Now would be a good time for streaming clients to verify that they are using
JSON. If you're still using XML, please migrate to JSON as soon as possible.
User/Site Streams implementations should already be JSON-only.

As a reminder, we encourage using OAuth to connect to the Streaming API --
basic authentication, while supported today on stream.twitter.com, will also
be deprecated at a future date.

Please respond with any questions or concerns.

Thanks!
Taylor Singletary
http://twitter.com/episod

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






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


[twitter-dev] Streaming API and OAuth

2010-11-08 Thread Dewald Pretorius
Please update your documentation [1] for more detail information on
authenticating on the Streaming API with OAuth.

We need to know the same type of information that you currently
provide [2] for REST OAuth.

[1] http://developer.twitter.com/pages/stre0aming_api_concepts#authentication
[2] http://developer.twitter.com/pages/auth

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


[twitter-dev] Re: Problem with uploading file to Twitpic

2010-11-08 Thread mlowicki
Does anyone know if there is forum/site dedicated for Twitpic API
issues/questions?

On Nov 8, 4:19 pm, Matt Harris mhar...@twitter.com wrote:
 Twitpic is a third party service which isn't supported by Twitter.

 For help with Twitpic you will need to contact them through their developer 
 site.

 Best,
 @themattharris

 On Nov 6, 2010, at 17:51, mlowicki mlowi...@gmail.com wrote:



  Hi!
  I'm trying to write javascript code for uploading photos to Twitpic.
  This is Opera widget so i have cross-domain ajax. Authorization with
  Twitter works but when I send request to api.twitpic.com/2/upload.json
  I get

  {errors:[{code:400,message:Bad Request. Media not included in
  POST payload.}]}

  This is strange because I send media paramter:

  key={MY_KEY}message=messagemedia=iVBORw0KGgoNSUhEUgAA...

  Where the problem can be?

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

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


[twitter-dev] Re: Exception while using count parameter of streaming api

2010-11-08 Thread revati choudhari
Thanks for your reply John. So what parameters can I use together with
count to get the past statuses?

-Revati


On Nov 8, 10:00 am, John Kalucki j...@twitter.com wrote:
 Shadow allows you to follow more users, but also allows you to continue to
 use track. There are no cases where we support count and track together.

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

 On Fri, Nov 5, 2010 at 9:41 AM, revati choudhari revati.choudh...@gmail.com

  wrote:
  Thanks for your reply.
  Actually I have the Shadow access level, which means that I should be
  able to use the count parameter.
  Why do I still get the exception? :(
  Also, I didnt understand what you mean by endpoint? Please explain.

  Does Note that the count parameter is not allowed elsewhere,
  including
  track, sample mean that I cannot use the count parameter with the
  track parameter? The wording are a little confusing.

  Thanks,
  Revati

  On Nov 2, 11:02 am, Taylor Singletary taylorsinglet...@twitter.com
  wrote:
   The count parameter is not available for all streaming roles/endpoints.
  What
   end point are you executing and what level of streaming do you have
  access
   to?

   From the docs on the count parameter:
   *Firehose, Links, Birddog and Shadow* clients interested in capturing all
   statuses should maintain a current estimate of the number of statuses
   received per second and note the time that the last status was received.
   Upon a reconnect, the client can then estimate the appropriate backlog to
   request. *Note that the count parameter is not allowed elsewhere*,
  including
   track, sample and on the default access role.

   Taylor

   On Tue, Nov 2, 2010 at 10:14 AM, revati choudhari 

   revati.choudh...@gmail.com wrote:
I am doing a project on twitter sentiment analysis, and I was trying
to pull previous statuses using the count parameter. Here is the
code:

inputConfig.Parameters = track= + FilterParametersTbx.Text +
count=10;

I was granted the shadow access level by twitter yesterday, which
means I can use the count parameter. Why do I still get the
following exception?

System.Net.WebException was unhandled by user code
Message=The remote server returned an error: (416) Requested Range Not
Satisfiable.
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at AdvantIQ.ExampleAdapters.Input.Twitter.TwitterInput.ProduceEvents()
in C:\Stream Insight Example\JAhlen - username\ExampleAdapters\Input
\Twitter\TwitterInput.cs:line 68
at AdvantIQ.ExampleAdapters.Input.Twitter.TwitterInput.Start() in C:
\Stream Insight Example\JAhlen - username\ExampleAdapters\Input\Twitter
\TwitterInput.cs:line 45
at Filter.InvokeWithFilter(Action , Func`2 , Action`1 )
at

  Microsoft.ComplexEventProcessing.Diagnostics.Exceptions.ExecuteWithFilter(A­ction
body, Func`2 filter, Action`1 handler)
at

  Microsoft.ComplexEventProcessing.Adapters.Adapter.ThreadProcStart(Object
thisPtr)
InnerException:

If anyone has any idea about this, please help me out.

--
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-Hide quoted
  text -

   - Show quoted text -

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

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


Re: [twitter-dev] Streaming API and OAuth

2010-11-08 Thread Tom van der Woerdt
Streaming API doesn't differ from the REST API with it's authentication.
Both use OAuth 1.0.

Tom


On 11/8/10 11:55 PM, Dewald Pretorius wrote:
 Please update your documentation [1] for more detail information on
 authenticating on the Streaming API with OAuth.
 
 We need to know the same type of information that you currently
 provide [2] for REST OAuth.
 
 [1] http://developer.twitter.com/pages/stre0aming_api_concepts#authentication
 [2] http://developer.twitter.com/pages/auth
 

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


[twitter-dev] Re: statuses/mentions missing tweets

2010-11-08 Thread David
It seems like I've been seeing these cache misses more and more (pages
of 200 mentions containing only ~20-30), but there doesn't seem to be
any indication that this is an incomplete result, so I just end up
just try to hit the endpoint again later without knowing whether or
not this is necessary. Would it be possible to append some kind of
status so I can retry the task in my processing queue?

Thanks,
David


On Nov 8, 12:15 pm, Aaron Rankin aran...@sproutsocial.com wrote:
 Fair enough, though it hasn't corrected itself yet and I'm seeing it
 on every user I test against so this feels like a systemic problem.
 Our application caches all historical mentions of our users. How are
 we to know when the API gives us valid results or not?

 On Nov 8, 11:28 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:







  There are times when the cache is not warm with more recent tweets. These
  times will pass and there's really not much you can do from an API
  perspective when this condition is happening to a particular user's
  timelines. The data is just inaccessible to the API at the moment.

  Taylor

  On Sun, Nov 7, 2010 at 1:41 PM, Aaron Rankin 
  aran...@sproutsocial.comwrote:

   I'm seeing errors with this endpoint. A request for the last 200
   mentions of @aaronrankin returns 29 mentions that were created between
   February and now, with many missing. Per my own cache of tweets, there
   were 200 mentions of @aaronrankin between September 3rd and today.

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

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