[twitter-dev] users/lookup

2011-08-09 Thread Justin
I'm using the users/lookup.json API and passing a valid list of
user_ids that I retrieve from friends/ids (yes, there are 100).

I keep getting the response: No user matches for specified terms
when making the call, even though the list is valid and I have
inspected the request being sent.

Any ideas why this would be happening? The friends/ids call is working
fine authenticated and I am trying to make a similar authenticated GET
call with the users/lookup function.

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] Re: users/lookup

2011-08-09 Thread Justin
So it only works with POST for me when using authentication. Not sure
if this is an issue with the API itself.

On Aug 9, 12:17 pm, Justin justin.cooper...@gmail.com wrote:
 I'm using the users/lookup.json API and passing a valid list of
 user_ids that I retrieve from friends/ids (yes, there are 100).

 I keep getting the response: No user matches for specified terms
 when making the call, even though the list is valid and I have
 inspected the request being sent.

 Any ideas why this would be happening? The friends/ids call is working
 fine authenticated and I am trying to make a similar authenticated GET
 call with the users/lookup function.

-- 
Have you visited the Developer Discussions feature on 
https://dev.twitter.com/discussions yet?

Twitter developer links:
Documentation and resources: https://dev.twitter.com/docs
API updates via Twitter: https://twitter.com/twitterapi

Unsubscribe or change your group membership settings: 
http://groups.google.com/group/twitter-development-talk/subscribe


[twitter-dev] How to get lots of data really fast

2011-04-26 Thread Justin
I want to search for lists on Twitter using the Twitter API. I have
tried using REST API with OAUTH and since the results are paged after
20, I can't seem to make large requests fast. In fact, it can take an
entire minute or longer to complete all the back/forth requests
involved with paging.


What I am doing now but takes too long:

1. Get 'users/search' with a topic, say Lakers
a. 20 users are returned (only 20 is fine for this step)

2. Look up 'username/lists/memberships' for each of the 20 users
a. Get ALL lists (which requries slowly paging by making multiple
requests)

3. I will compare and sort the lists on my end to get my search
results of lists for the topic Lakers.


Is there a better API or call to use to make this request fast?

Thanks in advance for any 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] Search across multiple accounts

2011-02-23 Thread Justin
Is it possible to perform a search across multiple accounts?

I've had a look though the search api and can't see anything but I
could very well have missed something.

What I'm thinking is something along the lines of:
?q=searchQuery+from%3Auser1,user2,user3

Also (again I can't see anything in the REST documentation straight
away), is there a way to aggrigate streams of a defined list of users?
Say; last X tweets from user1, user2 and user3?


If not part of the twitter api, any suggestions?

Many thanks

Justin

-- 
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: Search across multiple accounts

2011-02-23 Thread Justin
Fantastic, thanks Taylor...

I had tried that but with = instead of :. Works a treat now :)

Also, thanks for quick response...

On Feb 23, 5:50 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Justin,

 See this thread for an explanation of how to do multi-user search and/or
 streaming 
 search:http://groups.google.com/group/twitter-development-talk/browse_thread...

 @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer
 Advocate

 On Wed, Feb 23, 2011 at 9:35 AM, Justin justin.realw...@gmail.com wrote:
  Is it possible to perform a search across multiple accounts?

  I've had a look though the search api and can't see anything but I
  could very well have missed something.

  What I'm thinking is something along the lines of:
  ?q=searchQuery+from%3Auser1,user2,user3

  Also (again I can't see anything in the REST documentation straight
  away), is there a way to aggrigate streams of a defined list of users?
  Say; last X tweets from user1, user2 and user3?

  If not part of the twitter api, any suggestions?

  Many thanks

  Justin

  --
  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: Search across multiple accounts

2011-02-23 Thread Justin
I thought about that but figgured there must be a way to do it more
efficiently - Taylor provided a link (above) to to solution...

Thanks for the suggestion though :-)

On Feb 23, 5:52 pm, yaemog Dodigo yae...@gmail.com wrote:
 Hi Justin,

 you could follow (with the streaming api) users 1,2,and 3. But then you'd
 have to perform the search yourself. Alternatively, you can track (with the
 streaming api) your searchQuery and only keep tweets from users 1,2, and 3.

 Maybe I'm missing something here (e.g., userstreams?)

 -m

 On Wed, Feb 23, 2011 at 9:35 AM, Justin justin.realw...@gmail.com wrote:
  Is it possible to perform a search across multiple accounts?

  I've had a look though the search api and can't see anything but I
  could very well have missed something.

  What I'm thinking is something along the lines of:
  ?q=searchQuery+from%3Auser1,user2,user3

  Also (again I can't see anything in the REST documentation straight
  away), is there a way to aggrigate streams of a defined list of users?
  Say; last X tweets from user1, user2 and user3?

  If not part of the twitter api, any suggestions?

  Many thanks

  Justin

  --
  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] t.co wrapped urls in search api response, no unwrap param or entity currently?

2010-10-28 Thread Justin
I have a nightly batch process that does two searches based on a
number of params from the day's data.

I don't see that anything has changed here:
http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search

But now I'm seeing t.co urls in the tweet.text instead of the real url
(even though the real url did match my search), and I don't see any
attribute set to figure out the real url.

This means that url is hidden until I click it, and that won't work
for me.

Is this temporary, is the documentation out of date?

I don't see a url unwrapper api for t.co, so, are there no solutions?

-- 
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: Provide a spam score (or rather a “good citizen” flag)

2010-10-16 Thread Justin
Rating/scoring users is something I'm working on as well and I agree.
I've found sorting out bots and pure spammers to be very difficult.
Some folks tweet so much they resemble bots/spam.

Feels like a pipe dream but if they can I'd love a karma scoring
system directly from the API.




On Oct 16, 4:28 am, Dave-twiends i...@davesumter.com wrote:
 I really like the option of reporting spam via the api. I’ve been
 blocking spam on my site for a long time but this gives me an option
 to report it now, and hopefully get these account suspended quicker so
 that they don’t come back.

 It would be really great if we could have a proactive api function as
 well, where we could get the likelihood of a user being a spammer. I
 know this is really difficult to do, and wrought with pitfalls, but
 perhaps it could be structured in some way? Maybe you could provide a
 “good citizen” flag for a user (i.e a user that hasn’t had any
 complaints, and has a certain account age). That way you don’t
 negatively impact any users, but we can then at least treat these
 users differently when they sign up with our site.

 I’m seeing more and more the need to provide different limits to users
 based on private trust/karma score we develop for each user. This
 would be a very valuable input for us to detect potential problem
 users before they can cause damage.

 Thanks
 Dave

-- 
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: Site Streams - Unfollow Events?

2010-10-01 Thread Justin
It sounds like it's the same (NO) for both:

Friendship Events
Created - To you, from you
Deleted - From you

So, unfollow events from you not to you as the target. There doesn't
seem to be any way to tell when someone stops following other than
using the rest API to check followers and compare it to the list of
following.

Same with blocks:

Created - From you (source)
Deleted - From you (source)


On Sep 30, 12:05 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 Site Streams only or User Streams? I'm developing around User Streams.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

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

 Quoting tsmango tsma...@gmail.com:







  Hi, Ed. Block and unblock events are already being delivered in the
  Site Stream. Very useful!

  On Sep 30, 12:30 pm, M. Edward (Ed) Borasky zn...@borasky-
  research.net wrote:
  As long as we're wishing, I'd like to get a notification when someone  
  blocks me. ;-)
  --
  M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

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

  -
  Thomas Mango
  @tsmango

  --
  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] 403 with null response?

2010-10-01 Thread Justin
Just noticed this in my log:

Oct 01/2010 12:20:05 pm : process 25236 - response NULL
Oct 01/2010 12:20:05 pm : process 25236 - caught http status 403,
backing off. EXITED

When I get any status other than 200 I back off and log the response,
in this case the response was null.

My rate limit is also logged and I was well under 20k

The process that caught that 403 handles friendships, and seemed to be
pulling my list for cache at the time.

This is the only time I've seen this in at least 7 days. Any thoughts?
Temp glitch?

I noticed there have been about several back-offs with 500 listed as
well. Just a choppy day? (it is Friday I guess).

-- 
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: How many user are using my app?

2010-10-01 Thread Justin
There's probably a better way, but:

http://search.twitter.com/search?q=a+source:hootsuite

That gets any message coming out of hootsuite with a in it, limited
by the reliability of the search data of course.


On Sep 30, 10:33 am, Luco lucfl...@arcor.de wrote:
 Hey there,

 is there a possibility to check out, how many users already started
 using my Twitter-App?
 Or can i search for tweets using via my app?

 Thanks for your help
 Best regards
 Luca

-- 
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: List of new users registering on twitter datawise

2010-10-01 Thread Justin
Since the vast majority of twitter users won't ever visit your site,
why not just create a page if that user or a friend visits?

Check out how wefollow.com does it, it works well.


On Oct 1, 12:40 pm, Rajiv Kaushal kalyanra...@gmail.com wrote:
 Hi Taylor,

 Thanks for clarification. Actually, my thought was to create new page for
 every user on website signing up on twitter where one can update his other
 information later.

           Next, Can I get list of users for particular
 category/suggestion[e.g Business, Family, Fashion] not with respect to
 particular user? If yes, how and what is the limit for that api on the
 number of users?

 Thanks and Regards,

 Rajiv

 On Fri, Oct 1, 2010 at 9:50 PM, Taylor Singletary 









 taylorsinglet...@twitter.com wrote:
  Hi there,

  We don't provide any kind of feed/API for polling new signups.

  Generally, with any service that has a large user base, the motives of an
  organization or developer that wants the database of users from insert
  service name here will be suspect.

  What's the use case that you'd want/employ this information?

  We provide some categorical data of Twitter users available through GET
  users/suggestions (http://dev.twitter.com/doc/get/users/suggestions) and
  its companion resources.

  Taylor

  On Fri, Oct 1, 2010 at 5:07 AM, rajiv74 kalyanra...@gmail.com wrote:

  Hi,

       Can I get the list of users registering on twitter on daily
  basis or date wise using twitter api? Can I also get the list of
  twitter users category wise? Please help as I need to implement this
  in one of my site. If there is no way, can you help me to suggest
  alternate way to get the database of users from twitter?

  Thanks,

  Rajiv

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

 --

 Rajiv Kaushal
 Software Engineer

-- 
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: Custom background design

2010-10-01 Thread Justin
Just make your background and set here: http://twitter.com/settings/design

Take a look at the background in the link you sited, you'll see how
simple it is.
http://a3.twimg.com/profile_background_images/98968019/fan_news_twitter_bg.PNG



On Sep 30, 11:27 am, Erik der...@icomminteractive.com wrote:
 Hi.  I want to update a Twitter page's background so that there is a
 gradient background image and on the left only, a graphic that spans
 the height (logo).  But no matter what, when scrolling the page
 content, the logo stays in place.  This is an example of what I 
 saw.http://twitter.com/CBSfantasynews

 Can anyone guide me to a way of doing that?
 Thanks,
 Erik

-- 
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: 403 with null response?

2010-10-01 Thread Justin
I log the status code and the full response if available, which in
this case it came back null.

It is likely that it was either friends/ids, or followers/ids.

I checked my logs and I don't believe this has ever happened before
(backend has been in use for 14 months).

Everything has been working fine sense.

I've added additional logging, including the full headers and the
method called when it happens so if it does happen again I'll have
more info.




On Oct 1, 3:46 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Justin,

 Do you know the exact method call you were making when you got this? Was it
 friends/ids ?

 Have you seen the error again since?

 Are you logging the status message in addition to the code itself?

 Taylor







 On Fri, Oct 1, 2010 at 12:45 PM, Justin justin.carl...@gmail.com wrote:
  Just noticed this in my log:

  Oct 01/2010 12:20:05 pm : process 25236 - response NULL
  Oct 01/2010 12:20:05 pm : process 25236 - caught http status 403,
  backing off. EXITED

  When I get any status other than 200 I back off and log the response,
  in this case the response was null.

  My rate limit is also logged and I was well under 20k

  The process that caught that 403 handles friendships, and seemed to be
  pulling my list for cache at the time.

  This is the only time I've seen this in at least 7 days. Any thoughts?
  Temp glitch?

  I noticed there have been about several back-offs with 500 listed as
  well. Just a choppy day? (it is Friday I guess).

  --
  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: Looking for Java class/package for Firehose

2010-10-01 Thread Justin

Alternatively, you can just dump to disk and have a separate process
read through the queue.

That would be ideal as you wouldn't lose any messages if your database
goes down. (I guess I'm assuming your db is on it's own machine).






On Oct 1, 12:11 pm, M. Edward (Ed) Borasky zn...@borasky-
research.net wrote:
 Yeah, the Perl library uses AnyEvent to achieve threading.
 --
 M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

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

 Quoting D. Smith emai...@sharedlog.com:







  perl has the same limitation as php, I decided to use Java for
  streaming API because of support for threads.

  On Sep 30, 12:54 pm, M. Edward (Ed) Borasky zn...@borasky-
  research.net wrote:
  I've used the Perl AnyEvent::Twitter::Stream CPAN module and the Ruby  
  tweetstream gem. Both of them work just fine, although I think the  
  error handling in the Perl one may have a glitch. The Perl one is  
  lighter on both CPU and RAM use, but that's the nature of Perl vs.  
  Ruby, not something in the library codes themselves.

  I don't know if either of them has been updated to work with the  
  official User Streams endpoint yet - last time I looked at User  
  Streams, I used cURL from the command line.

  I'll probably get back to my User Streams project next week - I've  
  been pushing to get my appliances in shape for the SUSE Disters  
  contest entry deadline, which is tomorrow. ;-)

  And yes, I'd still like the option to get spritzer data in User  
  Streams without having to open another connection. But I'm probably  
  the only one. ;-)
  --
  M. Edward (Ed) Boraskyhttp://borasky-research.nethttp://twitter.com/znmeb

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

  Quoting Taylor Singletary taylorsinglet...@twitter.com:

   While it's in Scala, not Java, I've heard good things about
   @alejandrocrosa's Scala-TwitterStreamer :
  http://github.com/acrosa/Scala-TwitterStreamer--you should be able
   to make use of it fairly easily in a Java environment.

   We'd love to start collecting libraries built around the Streaming API.

   Regardless of language, does anyone have libraries to share with 
   everyone?

   Taylor

   On Thu, Sep 30, 2010 at 8:25 AM, D. Smith emai...@sharedlog.com wrote:
   Hello there!
   I am pretty experienced with using PHP for Twitter, but now I want to
   use firehose and Java seems to be a much better fit because of
   'Threads', so I can listen to Firehose the pass a job to a thread and
   return right away. PHP cannot do that, well, maybe to some crazy hacks
   that I am not too impressed with.

   Anyway, can someone recommend a good Java client that does that,
   ideally where I can just extend the class to write my own runnable
   classes.

   thanks a lot.

   --
   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 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] Question about truncated entities in the streaming API

2010-09-23 Thread Justin
Are entities not delivered if the tweet is truncated? Can they be in
the future?

I've noticed that when retweets are delivered they have RT
@whateverusername:  prepended, this often shoves a url or hash tag
off the end of a message and I don't seem to receive the entity
either, even though it was in the original message. Am I missing
something? Is the original message available or could it be added as
original_text? Thanks for any insight!

-- 
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: Question about truncated entities in the streaming API

2010-09-23 Thread Justin
It looks like I should be looking for retweeted_status... I
overlooked that.



On Sep 23, 10:14 am, Justin justin.carl...@gmail.com wrote:
 Are entities not delivered if the tweet is truncated? Can they be in
 the future?

 I've noticed that when retweets are delivered they have RT
 @whateverusername:  prepended, this often shoves a url or hash tag
 off the end of a message and I don't seem to receive the entity
 either, even though it was in the original message. Am I missing
 something? Is the original message available or could it be added as
 original_text? Thanks for any insight!

-- 
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: Question about truncated entities in the streaming API

2010-09-23 Thread Justin
Actually I'm still unsure, are entities provided in the
retweeted_status?

Where is retweeted_status documented, especially it's use in the
streaming api?

Still digging...

On Sep 23, 10:36 am, Justin justin.carl...@gmail.com wrote:
 It looks like I should be looking for retweeted_status... I
 overlooked that.

 On Sep 23, 10:14 am, Justin justin.carl...@gmail.com wrote:



  Are entities not delivered if the tweet is truncated? Can they be in
  the future?

  I've noticed that when retweets are delivered they have RT
  @whateverusername:  prepended, this often shoves a url or hash tag
  off the end of a message and I don't seem to receive the entity
  either, even though it was in the original message. Am I missing
  something? Is the original message available or could it be added as
  original_text? Thanks for any insight!

-- 
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: Using @Anywhere under SSL

2010-09-22 Thread Justin
It is a shame Cassie, I'm having to use OAuth - more flexability but
would be nice to have the simplicity of Anywhere

On Sep 21, 8:37 pm, Cassie Lynn cassie.schwendi...@gmail.com wrote:
 yet? Do we have any way of knowing when this might happen? And
 thanks for asking this here Justin! I asked on @anywhere and no one
 has replied (it has been almost a week).

 Thanks!
 - Cassie

 On Sep 20, 5:00 am, Tom van der Woerdt i...@tvdw.eu wrote:

  FYI, there's a Mailing List specifically for @Anywhere. The list you
  mailed to is the API developer list.
  http://groups.google.com/group/twitter-dev-anywhere

  To answer your question: no, there's no SSL version (yet).

  Tom

  On Mon, 20 Sep 2010 02:53:05 -0700 (PDT), Justin

  justin.realw...@gmail.com wrote:
   I would love to use the Connect with Twitter @Anywhere function but
   I would need to use it in a secure enviroment - that is under SSL.
   I first tried this when @Anywhere was first launched adn gave up
   thinking that perhaps it's a little too early?
   Having recently returned to it, I was disapointed to discover that the
   situation doesn't seem to have changed.

   Does anyone know if this is possible? Simply adding an s to
  http://platform.twitter.com/anywhere.jsdoesn'twork, I wonder if
   there's another unpublished URL, or if Twitter have any plans to
   impliment this.

   I'd prefer to use @Anywhere over oAuth, but may not have a choice :-(

   Thanks

   Justin

-- 
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] Using @Anywhere under SSL

2010-09-20 Thread Justin
I would love to use the Connect with Twitter @Anywhere function but
I would need to use it in a secure enviroment - that is under SSL.
I first tried this when @Anywhere was first launched adn gave up
thinking that perhaps it's a little too early?
Having recently returned to it, I was disapointed to discover that the
situation doesn't seem to have changed.

Does anyone know if this is possible? Simply adding an s to
http://platform.twitter.com/anywhere.js doesn't work, I wonder if
there's another unpublished URL, or if Twitter have any plans to
impliment this.

I'd prefer to use @Anywhere over oAuth, but may not have a choice :-(

Thanks

Justin

-- 
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: Using @Anywhere under SSL

2010-09-20 Thread Justin
Thanks for the reply Tom,
Sorry, I didn't realise there was another group - I see I'm not the
only one in need of it... Here's hoping the Twitter team impliment it
soon...

Justin

On Sep 20, 11:00 am, Tom van der Woerdt i...@tvdw.eu wrote:
 FYI, there's a Mailing List specifically for @Anywhere. The list you
 mailed to is the API developer list.
 http://groups.google.com/group/twitter-dev-anywhere

 To answer your question: no, there's no SSL version (yet).

 Tom

 On Mon, 20 Sep 2010 02:53:05 -0700 (PDT), Justin

 justin.realw...@gmail.com wrote:
  I would love to use the Connect with Twitter @Anywhere function but
  I would need to use it in a secure enviroment - that is under SSL.
  I first tried this when @Anywhere was first launched adn gave up
  thinking that perhaps it's a little too early?
  Having recently returned to it, I was disapointed to discover that the
  situation doesn't seem to have changed.

  Does anyone know if this is possible? Simply adding an s to
 http://platform.twitter.com/anywhere.jsdoesn't work, I wonder if
  there's another unpublished URL, or if Twitter have any plans to
  impliment this.

  I'd prefer to use @Anywhere over oAuth, but may not have a choice :-(

  Thanks

  Justin

-- 
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: newbie question on rate limits

2010-09-20 Thread Justin
You can lookup 100 users per rate limited call, that should be plenty
to play around with.

http://apiwiki.twitter.com/Twitter-REST-API-Method:-users-lookup


On Sep 20, 10:38 am, Vijay vijayaraghura...@gmail.com wrote:
 You really shouldn't be planning for the case where every single Twitter
 user uses your application

 Haha, I agree.  Its just that I took a few thousand users randomly, and was
 playing
 with their publicly available stats, tweets etc and quickly hit the rate
 limit.  Hence
 this question.

 On Mon, Sep 20, 2010 at 11:21 AM, Tom van der Woerdt i...@tvdw.eu wrote:



  You really shouldn't be planning for the case where every single Twitter
  user uses your application ;-) When you get to 100 users, you request
  whitelisting. When you get to 2 users, your server will have a
  problem handling all the information and you'll need to get a second
  server anyway.

  Tom

  On 9/20/10 5:17 PM, Vijay wrote:
   I am not sure about 20k, but 150 is miniscule.
   If I am collecting stats on a bunch of users every hour for example, I
   can only
   collect on 150 users, which is tiny, compared to 140 million users
   Twitter has.

   How do the big companies manage?  For example, twittercounter claims to
   have stats on 10 million users...that is a LOT of data.

   On Mon, Sep 20, 2010 at 11:14 AM, Tom van der Woerdt i...@tvdw.eu
   mailto:i...@tvdw.eu wrote:

       20k per IP is a lot. It means that a server should make more than 5
       requests per second to hit the limit, which is a lot.

       About your options: no idea. Just make sure to use the proper
  functions
       and try not to hit the limits? :-) 150 is a lot as well, most Desktop
       clients don't hit it (didn't, until Lists came ^^).

       Tom

       On 9/20/10 4:56 PM, Vijay wrote:
        Hi,

        Newbie question, so please bear with me.

        I am experimenting with twitter API, but quickly found myself
  hitting
        the rate limit
        (150 without authentication, correct?)

        How do the big sites get over the rate limit (tweetstats,
       twittercounter
        etc)?
        Twitter's documentation says they can white list IPs, but would
  still
        allow only
        20k requests per hour.  Also, they would only white list apps that
  are
        already in
        production.  So if I just want to experiment / learn, this
       wouldn't work.

        What are my options?  There is no way I can have multiple IPs.

        Vijay.

        --
        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 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 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] Filtered Streaming API, Count, and Confusing Wording in the Wiki

2010-09-20 Thread Justin
I found my answer elsewhere, but the wording on the wiki seems
confusing, I'd remove count as a param if it's not usable.

09/20/2010 09:45:50 pm : HTTP failure 4 of 20 connecting to stream:
HTTP ERROR 416: Requested Range Not Satisfiable
(Parameter count not allowed in role statusDefaultFiltered). Sleeping
for 90 seconds.

http://dev.twitter.com/doc/post/statuses/filter

States:

Parameters
Optional
count
Indicates the number of previous statuses to consider for delivery
before transitioning to live stream delivery. On unfiltered streams,
all considered statuses are delivered, so the number requested is the
number returned. *On filtered streams, the number requested is the
number of statuses that are applied to the filter predicate, and not
the number of statuses returned*. Firehose, Retweet, Link, 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. The count
parameter is not allowed on other resources and the default filter
role.


What is the default filter role? Is there a case where count can be
used with the filtered stream?

-- 
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: Question about User Vs Site Streams, and Moving away from REST calls.

2010-09-16 Thread Justin
Yes, right now my server acts like an automated client for one account
(never more), it handles messages and dms, follows, etc.

In my case it sounds like I'll be ok just using two connections then,
one to the statuses/filter streaming api, and one to the user stream
for my site's account.

Though, if the site streams do offer the same Friendship, Blocks,
Favorite and Retweet events, I might as well implement that way,
assuming I do get granted access.

Thanks for the feedback



On Sep 16, 8:20 am, John Kalucki j...@twitter.com wrote:
 I'm sorry, I laid out the difference between User Streams and Site Streams,
 but I forgot to bring it all back to the specific question at hand.

 The critical difference isn't Desktop vs. Web Site-- that's the general
 case description. The key difference is that you must multiplex if you open
 more than a handful of connections. In this specific case, there's nothing
 to multiplex, so remaining on User Streams is OK, despite coming from a
 server. The usage is really as if a single user was monitoring an account.

 To answer Tom's question, currently a User Stream connection and a Site
 Stream connection with a single user have the same cost.

 Sorry for the incomplete answer. Does this make sense?

 -John

 On Wed, Sep 15, 2010 at 10:58 PM, Tom van der Woerdt i...@tvdw.eu wrote:



  Hi John,

  This seems like a rather strange policy. Is the cost of having one User
  Streams connection not far lower than having a connection to Site
  Streams? That's what Justin asked, just one connection.

  Tom

  On 9/16/10 6:22 AM, John Kalucki wrote:
   Our intention is that User Streams and Site Streams will, shortly, offer
   the same data and filtering options at a similar, if not identical, QoS.
   I'm sure some subtleties will creep in over time, as they always do, but
   this parity is our goal.

   The major difference is that User Streams, given its higher per-user
   cost, is limited only to user-based applications that connect directly
   to the Twitter API. In this use case, we have no alternative but to
   service a connection from each user device. Site Streams, on the other
   hand, allows services, such as your website, to open many User Streams
   multiplexed over a smaller number of connections. This reduces per-user
   cost, and makes large scale integrations tractable. Several pretty large
   services have integrated with Site Streams in just a few days, so this
   multiplexing is unlikely to be an undue additional burden over a User
   Streams integration, and might even save a lot of work over time.

   If you attempt to use User Streams from a service, we can trivially
   detect this situation, and we'll classify your usage as against the TOS.
   To put our current thinking as bluntly as possible: we intend to enforce
   the distinction between User Streams and Site Streams via revocation of
   access.

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

   On Wed, Sep 15, 2010 at 12:24 PM, Justin justin.carl...@gmail.com
   mailto:justin.carl...@gmail.com wrote:

       I've successfully migrated one of my sites away from making search
  and
       mention rest calls, switched over to the streaming API and I'm loving
       it. I still need to move it to OAuth but now that I have that in test
       I'm reading up on the User and Site streams and I have a question.

       It seems the User stream states that websites should not use it, and
       should use the Site stream instead, but I don't consume or care about
       my user's activity, my site is centered around the messages and
       interactions with the application user not the users themselves.

       Right now I track and evaluate followers and other bits using the
  rest
       calls but from what I see I could eliminate those rest calls and be
       off them (possibly) all together if I could use the User stream to
       accept information about new and broken friendships, favorites, dms,
       etc.

       Is it acceptable to use the User stream in that manor since I would
       only need it for the app user account not my site user's accounts? If
       so, I can just maintain the two streams (filtered streaming api and
       user stream) and eliminate or cut back my rest calls dramatically?
       Please let me know so I can plan accordingly.

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

[twitter-dev] Question about User Vs Site Streams, and Moving away from REST calls.

2010-09-15 Thread Justin
I've successfully migrated one of my sites away from making search and
mention rest calls, switched over to the streaming API and I'm loving
it. I still need to move it to OAuth but now that I have that in test
I'm reading up on the User and Site streams and I have a question.

It seems the User stream states that websites should not use it, and
should use the Site stream instead, but I don't consume or care about
my user's activity, my site is centered around the messages and
interactions with the application user not the users themselves.

Right now I track and evaluate followers and other bits using the rest
calls but from what I see I could eliminate those rest calls and be
off them (possibly) all together if I could use the User stream to
accept information about new and broken friendships, favorites, dms,
etc.

Is it acceptable to use the User stream in that manor since I would
only need it for the app user account not my site user's accounts? If
so, I can just maintain the two streams (filtered streaming api and
user stream) and eliminate or cut back my rest calls dramatically?
Please let me know so I can plan accordingly.

-- 
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 Search/Stream API

2010-09-15 Thread Justin
Also, from what I understand, search may not include everything, it's
filtered a bit, streaming is everything.


On Sep 15, 11:29 am, Tom van der Woerdt i...@tvdw.eu wrote:
 The search gives you back a list of tweets from the past, the stream
 will send tweets to your application the moment they are sent.

 Tom

 On 9/15/10 6:13 PM, Mike wrote:

  What is the difference between the Search and Stream API?  I can't
  really tell.  Detail would be great, and how it can be applied in the
  real world other then the Search one over the Stream.

-- 
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: win phone 7 xAuth

2010-09-02 Thread Justin Hart
Like Taylor said, find your time offset relative to Twitter's.  The
WP7 Emulator timestamp is terribly off, and it is probably a good idea
to keep your own offset anyway with devices that may have been off-
network a long time (or in the future, zune devices which dont have a
source).

In my personal library (based on the real basic OAuthBase.cs) I'm
grabbing the timestamp and calculating an offset from the system
clock, so I only have to grab the time every so often.

I didn't see if the timestamp Hammock uses is injectable though.

On Sep 1, 1:21 am, Hongwei suhongwe...@gmail.com wrote:
 Hi guys,

 Does anyone know what is wrong with my code? it always returns Failed
 to validate oauth signature and token (it did return access token and
 access access secret few day ago)

 here is my code (I use Hammock/TweetSharp library)

 private const string _consumerKey = cKey;
 private const string _consumerSecret = cSecret;
 private string _userName = uName;
 private string _password = uPassword;

 Button.Click
 {
  Hammock.RestClient c = new RestClient()
                                        {
                                            Authority = https://
 api.twitter.com/oauth/,
                                            HasElevatedPermissions =
 true,
                                            Credentials = new
 OAuthCredentials()
                                            {
                                                Type =
 OAuthType.ClientAuthentication,
                                                ConsumerKey =
 _consumerKey,
                                                ConsumerSecret =
 _consumerSecret,
                                                SignatureMethod =
 OAuthSignatureMethod.HmacSha1,
                                                ParameterHandling =
 OAuthParameterHandling.HttpAuthorizationHeader,
                                                ClientUsername =
 _userName,
                                                ClientPassword =
 _password,
                                            }
                                        };

             RestRequest r = new RestRequest()
                                 {
                                     Path = access_token,
                                 };
             c.BeginRequest(r, new RestCallback(Callback));

 }

  public void Callback(Hammock.RestRequest request,
 Hammock.RestResponse response, object userState)
         {
             var a = response.Content;           (I set debug here, and
 variable 'a' contains Failed to validate oauth signature and token,
 RestRespone.content contains 'Content' threw an exception of
 typeSystem.UnauthorizedAccessException
         }

 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?hl=en


[twitter-dev] Re: Need Help!! - How Oauth will work in my case?

2010-08-23 Thread Justin
You'll have to change clients, but you can obtain the required tokens
to do the same calls. Changing auth schemes shouldn't change what you
can get out of the API. Once you setup your user's app/ids the same
whitelist applies. I just finished my conversion yesterday and
everything's working the same.

I use this now:
http://github.com/abraham/twitteroauth/tree/master/twitteroauth/

Go up a directory from there to see samples.







On Aug 21, 8:47 am, Rushikesh Bhanage rishibhan...@gmail.com wrote:
 Hi there,

 I have a white-listed account, but the rate-limit has decreased from 20k
 before 5 days to 12k right now. Initially I thought that this might be due
 to twitter running over-capacity because I was busy in finishing part of app
 to launch it in two days. But i just read one mail from Justin who is having
 same problem, now I realized that this cut off might be due to basic auth. I
 was also aware about the basic oauth shutting down, but didn't click the
 mind.

 We can switch to Oauth, but here are some doubts:

 1. *What my app does*? - in my app, when any twitter user enters his name-
 we crawl his data thru userstatus method, then we crawl his all the
 followers and show him his real followers.
    For this I am using My Twitter Library from Andres Scheffer, to which I
 pass my white listed account user name and password to get all the data. *Now
 which Oauth library should I prefer that will meet my requirement?*

 2. *How Oauth is going to work*? - I am doubtful that how Oauth is going to
 work in my case, until now any user can enter his user name and was able to
 get his result. now will I have to take Oauth from each searched user to
 show his result?

 If it is so how can I use my white listed account log ins to get 20k calls.

 Please clear my doubts.

 Thank you in advance.


[twitter-dev] Re: TwitPic 401 Unauthorized image upload

2010-07-27 Thread Justin Hart
My guess is that is the case.  It is for Twitgoo as well.  In Twitgoo
we are using the $_POST array in PHP, which only grabs body
parameters, not querystring parameters.  Thats one of those awkward
things about PHP.

On Jul 27, 5:30 am, globaljobber gerardn...@exciteinternet.co.uk
wrote:
 Hi Justin,

 Don't suppose you have an example of a C# Httpwebrequest POST that is
 sent to Twitpic with an image attachment?

 I've actually found now that my headers are ok but from a trace have
 determined that the 401 error is because of 'no api key provided'.

 I thought it was ok to simply append parameters to the post Url?

 example:

 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(http://
 api.twitpic.com/2/upload.json?key=XXmessage=TestMessage);

 Or do I need to add the parameters to the post body along with the
 image data?

 Thanks
 Gerard

 On Jul 27, 6:52 am, globaljobber gerardn...@exciteinternet.co.uk
 wrote:



  Thanks for replying Justin, much appreciated. Slwly getting there
  - I hope!

  Gerard

  On Jul 27, 5:55 am, Justin Hart onyxra...@gmail.com wrote:

   Oop, it looks like you've moved on (in a different thread).  I'm
   actually working on some OAuth stuff in C# right now so I'll let you
   know if I come across something.

   On Jul 26, 10:49 pm, Justin Hart onyxra...@gmail.com wrote:

I think I see what you're doing wrong - when you're adding the X-Auth-
Service-Provider and X-Verify-Credentials-Authorization to the
request, those are meant to be HTTP headers, not in the multipart POST
body.

Twitgoo supports putting those in the post body by setting everything
to lowercase and replacing - with _ (so x_auth_service_provider, etc),
and I believe Twitpic does as well.  I'm pretty sure everything else
looks right.

I have an example HTTP packet including all the headers for 
Twitgoo:http://twitgoo.com/docs/Content/Developer/upload.htm(Itsinthe
example link 'pulldown' in the top section)

On Jul 25, 11:57 pm, globaljobber gerardn...@exciteinternet.co.uk
wrote:

 Thanks Andy,

 No that was just a typo on the post. I'm obviously not sending through
 the correct OAuth sig or something, just can't find what it is. I'm
 using the same mechanism to create the sig as that used to get an
 access token and for intial request of the request token, so not sure
 why this twitpic upload thing isn't working.

 It would be great if there were an asp.net example someone else had
 done but it's incredible that I can't find one on the net, First time
 ever not been able to find a working example!

 Gerard

 On Jul 26, 3:58 am, Andy Matsubara andymatsub...@gmail.com wrote:

  Just for doublechekking.

  Your first post showed X-Auth-Service-Provider was JSON. If you 
  signed to
  https://api.twitter.com/1/account/verify_credentials.xml;,
  X-Auth-Service-Provider
  also must be XML.

  Andy

  On Sun, Jul 25, 2010 at 5:03 AM, globaljobber

  gerardn...@exciteinternet.co.uk wrote:
   Hi Andy, thanks for replying.

   Yes, I did sign the url as you mention.

   As a test, I also sent a request to

   https://api.twitter.com/1/account/verify_credentials.xml;

   From this I get authorization ok using a standard call when using 
   an
   Authorization header, but as soon as I use the header X-Verify-
   Credentials-Authorization then I get the 401 not authorized.

   I created the signed request using a GET not a POST, then modify 
   the
   Realm part, as instructed by other posts. The credentials were 
   creatd
   using the request url of https://api.twitter.com/1/account/
   verify_credentials.xml.

   As far as I can tell, I am doing everything correctly - but 
   obviously
   not. Can't fathom what the problem is, I wish Twitter API provided
   more feedback for debugging.

   Regards
   Gerard

   On Jul 24, 12:40 pm, Andy Matsubara andymatsub...@gmail.com 
   wrote:
   Did you sign to 
   thehttps://api.twitter.com/1/account/verify_credentials.jsontogetthe
   credentials?
   The signed url must be the same as X-Auth-Service-Provider.

   Andy Matsubara

   On Sat, Jul 24, 2010 at 10:57 PM, globaljobber

   - Hide quoted text -

   - Show quoted text -gerardn...@exciteinternet.co.uk wrote:
Hi,

Been on this for a week. Am having trouble uploading image to 
Twitpic
with Oauth. I get user to authenticate ok, receive 
access_token, etc.,
and then try to make a httpwebrequest POST after generating 
X-Verify-
Credentials-Authorization string.

I am always getting a 401 Unauthorized Access response. Has 
anyone
anywhere on the planet done this with ASP.NET yet who could 
help?
Seems no one has.

Here is part of the post that I

[twitter-dev] Re: TwitPic 401 Unauthorized image upload

2010-07-26 Thread Justin Hart
I think I see what you're doing wrong - when you're adding the X-Auth-
Service-Provider and X-Verify-Credentials-Authorization to the
request, those are meant to be HTTP headers, not in the multipart POST
body.

Twitgoo supports putting those in the post body by setting everything
to lowercase and replacing - with _ (so x_auth_service_provider, etc),
and I believe Twitpic does as well.  I'm pretty sure everything else
looks right.

I have an example HTTP packet including all the headers for Twitgoo:
http://twitgoo.com/docs/Content/Developer/upload.htm (Its in the
example link 'pulldown' in the top section)

On Jul 25, 11:57 pm, globaljobber gerardn...@exciteinternet.co.uk
wrote:
 Thanks Andy,

 No that was just a typo on the post. I'm obviously not sending through
 the correct OAuth sig or something, just can't find what it is. I'm
 using the same mechanism to create the sig as that used to get an
 access token and for intial request of the request token, so not sure
 why this twitpic upload thing isn't working.

 It would be great if there were an asp.net example someone else had
 done but it's incredible that I can't find one on the net, First time
 ever not been able to find a working example!

 Gerard

 On Jul 26, 3:58 am, Andy Matsubara andymatsub...@gmail.com wrote:



  Just for doublechekking.

  Your first post showed X-Auth-Service-Provider was JSON. If you signed to
  https://api.twitter.com/1/account/verify_credentials.xml;,
  X-Auth-Service-Provider
  also must be XML.

  Andy

  On Sun, Jul 25, 2010 at 5:03 AM, globaljobber

  gerardn...@exciteinternet.co.uk wrote:
   Hi Andy, thanks for replying.

   Yes, I did sign the url as you mention.

   As a test, I also sent a request to

   https://api.twitter.com/1/account/verify_credentials.xml;

   From this I get authorization ok using a standard call when using an
   Authorization header, but as soon as I use the header X-Verify-
   Credentials-Authorization then I get the 401 not authorized.

   I created the signed request using a GET not a POST, then modify the
   Realm part, as instructed by other posts. The credentials were creatd
   using the request url of https://api.twitter.com/1/account/
   verify_credentials.xml.

   As far as I can tell, I am doing everything correctly - but obviously
   not. Can't fathom what the problem is, I wish Twitter API provided
   more feedback for debugging.

   Regards
   Gerard

   On Jul 24, 12:40 pm, Andy Matsubara andymatsub...@gmail.com wrote:
   Did you sign to 
   thehttps://api.twitter.com/1/account/verify_credentials.jsontogetthe
   credentials?
   The signed url must be the same as X-Auth-Service-Provider.

   Andy Matsubara

   On Sat, Jul 24, 2010 at 10:57 PM, globaljobber

   - Hide quoted text -

   - Show quoted text -gerardn...@exciteinternet.co.uk wrote:
Hi,

Been on this for a week. Am having trouble uploading image to Twitpic
with Oauth. I get user to authenticate ok, receive access_token, etc.,
and then try to make a httpwebrequest POST after generating X-Verify-
Credentials-Authorization string.

I am always getting a 401 Unauthorized Access response. Has anyone
anywhere on the planet done this with ASP.NET yet who could help?
Seems no one has.

Here is part of the post that I generate, including headers:

--76a18be812b446b599adabd8c9b6fee0
Content-Disposition: form-data; name=X-Auth-Service-Provider

   https://api.twitter.com/1/account/verify_credentials.json
--76a18be812b446b599adabd8c9b6fee0
Content-Disposition: form-data; name=X-Verify-Credentials-
Authorization

OAuth realm=http://
api.twitter.com/,oauth_consumer_key=9cjtDDCxlOYSSJqyp7XKzA,oauth_nonce=
 ­6C850587,oauth_signature_method=HMAC-
SHA1,oauth_timestamp=1233928528,oauth_token=15321156-7q4tTvSwJ9oB6iWZh7
 
­DvRjkn60eKTc1T4VRkNl4,oauth_version=1.0,oauth_signature=9FJK45EJtW4Efp
 n­Jla6S
%2BGIqvuE%3D
--76a18be812b446b599adabd8c9b6fee0
Content-Disposition: form-data; name=message

Test image upload
--76a18be812b446b599adabd8c9b6fee0
Content-Disposition: form-data; name=key

97bfc758472981ds9630232def4eea82
--76a18be812b446b599adabd8c9b6fee0
Content-Disposition: file; name=media; filename=DSC_22.jpg
Content-Type: image/jpeg

Much appreciate any help from someone.
Thanks
Gerard- Hide quoted text -

  - Show quoted text -


[twitter-dev] Re: TwitPic 401 Unauthorized image upload

2010-07-26 Thread Justin Hart
Oop, it looks like you've moved on (in a different thread).  I'm
actually working on some OAuth stuff in C# right now so I'll let you
know if I come across something.

On Jul 26, 10:49 pm, Justin Hart onyxra...@gmail.com wrote:
 I think I see what you're doing wrong - when you're adding the X-Auth-
 Service-Provider and X-Verify-Credentials-Authorization to the
 request, those are meant to be HTTP headers, not in the multipart POST
 body.

 Twitgoo supports putting those in the post body by setting everything
 to lowercase and replacing - with _ (so x_auth_service_provider, etc),
 and I believe Twitpic does as well.  I'm pretty sure everything else
 looks right.

 I have an example HTTP packet including all the headers for 
 Twitgoo:http://twitgoo.com/docs/Content/Developer/upload.htm(Its in the
 example link 'pulldown' in the top section)

 On Jul 25, 11:57 pm, globaljobber gerardn...@exciteinternet.co.uk
 wrote:



  Thanks Andy,

  No that was just a typo on the post. I'm obviously not sending through
  the correct OAuth sig or something, just can't find what it is. I'm
  using the same mechanism to create the sig as that used to get an
  access token and for intial request of the request token, so not sure
  why this twitpic upload thing isn't working.

  It would be great if there were an asp.net example someone else had
  done but it's incredible that I can't find one on the net, First time
  ever not been able to find a working example!

  Gerard

  On Jul 26, 3:58 am, Andy Matsubara andymatsub...@gmail.com wrote:

   Just for doublechekking.

   Your first post showed X-Auth-Service-Provider was JSON. If you signed 
   to
   https://api.twitter.com/1/account/verify_credentials.xml;,
   X-Auth-Service-Provider
   also must be XML.

   Andy

   On Sun, Jul 25, 2010 at 5:03 AM, globaljobber

   gerardn...@exciteinternet.co.uk wrote:
Hi Andy, thanks for replying.

Yes, I did sign the url as you mention.

As a test, I also sent a request to

https://api.twitter.com/1/account/verify_credentials.xml;

From this I get authorization ok using a standard call when using an
Authorization header, but as soon as I use the header X-Verify-
Credentials-Authorization then I get the 401 not authorized.

I created the signed request using a GET not a POST, then modify the
Realm part, as instructed by other posts. The credentials were creatd
using the request url of https://api.twitter.com/1/account/
verify_credentials.xml.

As far as I can tell, I am doing everything correctly - but obviously
not. Can't fathom what the problem is, I wish Twitter API provided
more feedback for debugging.

Regards
Gerard

On Jul 24, 12:40 pm, Andy Matsubara andymatsub...@gmail.com wrote:
Did you sign to 
thehttps://api.twitter.com/1/account/verify_credentials.jsontogetthe
credentials?
The signed url must be the same as X-Auth-Service-Provider.

Andy Matsubara

On Sat, Jul 24, 2010 at 10:57 PM, globaljobber

- Hide quoted text -

- Show quoted text -gerardn...@exciteinternet.co.uk wrote:
 Hi,

 Been on this for a week. Am having trouble uploading image to Twitpic
 with Oauth. I get user to authenticate ok, receive access_token, 
 etc.,
 and then try to make a httpwebrequest POST after generating X-Verify-
 Credentials-Authorization string.

 I am always getting a 401 Unauthorized Access response. Has anyone
 anywhere on the planet done this with ASP.NET yet who could help?
 Seems no one has.

 Here is part of the post that I generate, including headers:

 --76a18be812b446b599adabd8c9b6fee0
 Content-Disposition: form-data; name=X-Auth-Service-Provider

https://api.twitter.com/1/account/verify_credentials.json
 --76a18be812b446b599adabd8c9b6fee0
 Content-Disposition: form-data; name=X-Verify-Credentials-
 Authorization

 OAuth realm=http://
 api.twitter.com/,oauth_consumer_key=9cjtDDCxlOYSSJqyp7XKzA,oauth_nonce=
  ­6C850587,oauth_signature_method=HMAC-
 SHA1,oauth_timestamp=1233928528,oauth_token=15321156-7q4tTvSwJ9oB6iWZh7
  
 ­DvRjkn60eKTc1T4VRkNl4,oauth_version=1.0,oauth_signature=9FJK45EJtW4Efp
  n­Jla6S
 %2BGIqvuE%3D
 --76a18be812b446b599adabd8c9b6fee0
 Content-Disposition: form-data; name=message

 Test image upload
 --76a18be812b446b599adabd8c9b6fee0
 Content-Disposition: form-data; name=key

 97bfc758472981ds9630232def4eea82
 --76a18be812b446b599adabd8c9b6fee0
 Content-Disposition: file; name=media; filename=DSC_22.jpg
 Content-Type: image/jpeg

 Much appreciate any help from someone.
 Thanks
 Gerard- Hide quoted text -

   - Show quoted text -


[twitter-dev] Re: OAuth Echo Example (PHP)

2010-05-24 Thread Justin Hart
If you dont mind the Zend Framework stuff, I've got one over here:

http://pastie.org/975634

Hopefully you can translate that to whatever you're using.


On May 24, 1:42 pm, Greg gregory.av...@gmail.com wrote:
 Hello Developers,

 Does anyone have any example how to use TwitPic's OAuth Echo in PHP?
 I've been looking all over - but I'm little confused on how to sign
 the request? Any takers?

 Thanks,
 Greg


[twitter-dev] Re: oAuth Echo Enabled Providers

2010-05-20 Thread Justin Hart
This is now active on Twitgoo. You can see the documentation here:
http://twitgoo.com/docs/Content/Developer/upload.htm

On May 19, 9:05 am, Justin Hart onyxra...@gmail.com wrote:
 I am the lead dev on Twitgoo and I just built full echo support for
 'upload' there.  Its on the beta site right now, so if you want to
 test, please contact me for the info, otherwise it should be out by
 the end of the week.  It will have full support of header, query
 string and multipart body parameters.

 On May 17, 2:47 pm, Rich rhyl...@gmail.com wrote:



  With the impending switch off of Basic Auth, should we keep a list of
  media providers and external services that have already made the
  switch to oAuth Echo.

  So far I've found and tested

  TwitPic - full oAuth Echo support
  TwitVid - oAuth Echo by sending as a URL parameter

  I know MobyPicture intend to have oAuth Echo enabled this month.

  Any others any one knows of?


[twitter-dev] Re: oAuth Echo Enabled Providers

2010-05-19 Thread Justin Hart
I am the lead dev on Twitgoo and I just built full echo support for
'upload' there.  Its on the beta site right now, so if you want to
test, please contact me for the info, otherwise it should be out by
the end of the week.  It will have full support of header, query
string and multipart body parameters.

On May 17, 2:47 pm, Rich rhyl...@gmail.com wrote:
 With the impending switch off of Basic Auth, should we keep a list of
 media providers and external services that have already made the
 switch to oAuth Echo.

 So far I've found and tested

 TwitPic - full oAuth Echo support
 TwitVid - oAuth Echo by sending as a URL parameter

 I know MobyPicture intend to have oAuth Echo enabled this month.

 Any others any one knows of?


[twitter-dev] Re: DDoS Status Update

2009-08-07 Thread Justin Hart

Comments inline.

On Aug 7, 12:05 pm, Ryan Sarver rsar...@twitter.com wrote:
 *Known Issues*
 * - HTTP 300 response codes* - One of the measures in thwarting the
 onslaught requires that all traffic respect HTTP 30x response codes. This
 will help us identify the good traffic from the bad.

Does this affect POST as well as GET?  The issue here is the way
clients handle 30x after POST.  Most clients (now by convention) do
not respect the RFC (http://www.w3.org/Protocols/rfc2616/rfc2616-
sec10.html#sec10.3) and will send a GET after POST always.  Some
clients will respect the method, but not re-post any data.  We need to
be sure we are all expecting the right things.

How does this affect OAuth signed requests?  OAuth requires knowing
the HTTP Method as well as the full URI and parameters to generate
signatures a priori.   Most (all?) clients and libraries do not know
how to handle changes in these during a redirect.

 * - General throttling* - Try to throttle your services back as much as
 possible for you to continue operating. We are working on our end to better
 understand the logic used in throttling traffic on the edge of the network
 and will communicate what we can, but the best idea is to just throttle back
 as much as you can in the mean time.

Is there anything else we can do on the protocol level?  Keepalives on/
off? Specific headers?

Thanks for all your hard work. Having spent yesterday battling a rash
of spambots is nothing compared to what you guys are doing.

--Justin


[twitter-dev] Re: 140 character limit overridden for Twitgoo?

2009-07-21 Thread Justin Hart

Hi, what app were you using?  Just the website?

On Jul 20, 4:20 pm, Abir abstar...@gmail.com wrote:
 Abraham: Thanks, but not sure I understand why the counter said 140
 when i was inputting but the post count is 133?

 On Jul 20, 3:11 pm, Abraham Williams 4bra...@gmail.com wrote:

  If you look at the status you will find that it only posted at 133
  characters.

 http://twitter.com/ABIRB123/status/2745931292
  Abraham

  On Mon, Jul 20, 2009 at 16:36, Abir abstar...@gmail.com wrote:

   Guys:

   Just posted this on Twitgoo.

   -It let me post a 140 character

   +

   -The URL

   it is an oryx antelope, it's just a stock image from my laptop's
   repository. why do this? well i am testing!http://twitgoo.com/1ke92

   Isn't the total limit 140 characters?  or are URL's not counted?  I am
   developing a service to buy and sell things on Twitter and this would
   be helpful to know.  Thanks

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


[twitter-dev] Rate Limit reporting

2009-07-13 Thread Justin

I feel a bit silly asking this in the time of OAuth - but I'm not
quite there yet...

So how to return the rate limit for a given user?
Looking at the api documentation I presume you need to authenticate
(log in)

The obvious way to do this is via GET with:
http://username:passw...@twitter.com/account/rate_limit_status.xml
I've also tried base64'ing the username:password as suggested here:
http://en.wikipedia.org/wiki/Basic_access_authentication
http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml

However, every time I try I'm returned with the rate limit for the IP
address and not the user.

I know I'm missing something (a few sandwiches from the picnic
probably)  - could someone enlighten me?

Many thanks


[twitter-dev] Re: Rate Limit reporting

2009-07-13 Thread Justin

Sorry about emailing you my last response.

I understand what you're saying about firefox - though I'm having the
same issue with requests via Microsoft.XMLHTTP requests - it's gone
the end of the day now (I do have a habit of starting these things
when there's no time). Will carry on the fight tomorrow - at least I
have a direction now - will try some other request methods.
Many thanks once again for your quick responses.

@JustinReid

On Jul 13, 5:26 pm, Matt Sanford m...@twitter.com wrote:
 Hi Justin,

      The user:pass is a shortcut used by some browsers and libraries  
 but is not supported in all libraries. What language/library are you  
 using? Most of them have some option for setting the user and password  
 directly. Also, the most common issue when seeing the IP limit is an  
 incorrect password. You should also try calling verify_credentials to  
 make sure the password is correct and everything is being received  
 correctly by Twitter.

 Thanks;
   – Matt Sanford / @mzsanford
       Twitter Dev

 On Jul 13, 2009, at 9:22 AM, Justin wrote:





  I feel a bit silly asking this in the time of OAuth - but I'm not
  quite there yet...

  So how to return the rate limit for a given user?
  Looking at the api documentation I presume you need to authenticate
  (log in)

  The obvious way to do this is via GET with:
  http://username:passw...@twitter.com/account/rate_limit_status.xml
  I've also tried base64'ing the username:password as suggested here:
 http://en.wikipedia.org/wiki/Basic_access_authentication
 http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml

  However, every time I try I'm returned with the rate limit for the IP
  address and not the user.

  I know I'm missing something (a few sandwiches from the picnic
  probably)  - could someone enlighten me?

  Many thanks


[twitter-dev] Background Image URL always non-empty

2009-05-21 Thread Justin Hart

(was posted a while ago, but no replies)

If a background image is turned off by a user, its last value is still
shown in the api for the verifyCredentials and user/show actions.

For example, I get this:
  ...
  profile_background_image_url
  http://static.twitter.com/images/themes/theme1/bg.gif
  /profile_background_image_url
  ...

although I would expect to see something like this:
  ...
  profile_background_image_url/

or another field that says profile_background_image_showfalse/
profile_background_image_show


[twitter-dev] profile_background_image_url always non-empty?

2009-05-07 Thread Justin Hart

This is an older post, but I saw no activity around it.  I'm seeing
this too.  It seems that the field profile_background_image_url should
either be blank or there should be another flag (like the tile flag)
that says if the background_image is being shown or not.

Thanks.

http://groups.google.com/group/twitter-development-talk/browse_thread/thread/0053c1c03493bf8e/a861485dad3d85de#a861485dad3d85de
On Jan 20, 4:22 pm, Saša Šarunić ssaru...@gmail.com wrote:
 I'm not sure if this is expected behavior, but it seams like a bug to
 me:

 Even if I turn off abackgroundimagein my settings, it is still
 returned in call to /users/show api function.

 For example, I get this:
   ...
   profile_background_image_url
  http://static.twitter.com/images/themes/theme1/bg.gif
   /profile_background_image_url
   ...

 although I would expect to see something like this:
   ...
   profile_background_image_url/
   ...

 Can someone comment on this?

 Sasa S.www.shoutem.com


[twitter-dev] Re: Freelance Twitter API Dev directory?

2009-03-26 Thread Justin

Let's get me in there too :)

twitter: @justinpoliey
email: jd...@njit.edu
website: http://justinpoliey.com
Developer of twitterlibphp

On Feb 23, 2:33 pm, Alex Payne a...@twitter.com wrote:
 There isn't one that I'm aware of, but if people would like to post
 their contact info in this thread (Twitter username, URL, email,
 whatever) I'm happy to collect them on the API Wiki.

 On Sat, Feb 21, 2009 at 18:00, Chad Etzel jazzyc...@gmail.com wrote:

  Hi All,

  I have been getting a few requests here and there for twitter API
  development work.  I cannot take on any such projects at the moment,
  but I always feel bad for leaving them in the lurch.  Is there a list
  or directory anywhere of Twitter API developers that work freelance
  that I can send to them when this happens?  I'm happy to forward on
  such requests.

  -Chad

 --
 Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x


[twitter-dev] Questions about TOS

2009-03-23 Thread Justin Hart

I have a tool which will allow users to follow everyone on the #TCOT
list (in batches of 25).

Someone brought up a concern that this might infringe on Twitter's
TOS?

Any thoughts on this.

see below:
http://tweetforchuck.com/tcot/


[twitter-dev] Good tool or spam?

2009-03-23 Thread Justin Hart

I have a tool developed for the #TCOT community which will allow a
user to follow everyone on that list in batches of 25.

Is this kosher or does this run up against the Twitter TOS?

Here's the tool:
http://tweetforchuck.com/tcot/


[twitter-dev] Re: auto follow using twitter api

2009-02-25 Thread justin kruger

option #3 might include twitter extending their API.


On Wed, Feb 25, 2009 at 2:27 PM, Doug Williams do...@igudo.com wrote:

 iilv,
 Another way to auto-follow is to use the Social Graph API methods.

 For instance you could set up a script to run periodically that does
 the following:

 1) download all of a user's friends' ID's through the friends/ids
 method and store them in a data structure
 2) download all of the user's followers' IDs through the followers/ids
 method and store them in the data structure
 3) perform a diff on these two data structures, finding all follower
 ids not currently in the friend id list.
 4) follow the follower ids from step 3 with the friendships/create method

 This circumvents the parsing of new follower emails. The trade off is
 that it is not real-time since the script has to be run at periodic
 intervals.

 Hope that helps.

 Doug Williams
 @dougw
 do...@igudo.com

 On Wed, Feb 25, 2009 at 4:47 PM, TjL luo...@gmail.com wrote:

 Well, you can't auto-follow when someone sends you a DM, because you
 have to ALREADY be following someone in order to get a DM.

 You can auto-follow when someone starts to follow you.

 If you are familiar with procmail, you can auto-follow using the recipe 
 below.

 (If you are not familiar with procmail, please delete and ignore. It's
 beyond my scope to teach and not every mail server supports it.)



 :0ci
 * ^X-Twitteremailtype: is_following
 * ^From: @postmaster\.twitter\.com
 * ^Subject: .* is now following you on Twitter!
 * ^X-Twittersenderscreenname: \/[^ ]+
 | curl    --netrc -s \
                --data POST \
                http://twitter.com/friendships/create/$MATCH.xml; /dev/null

 Note that you MUST have your twitter credentials stored in ~/.netrc
 for this to work in a format like this:

 machine twitter.com
        login YourTwitternameHere
        password SeKrEt

 Also note that this doesn't do any error-checking to make sure that
 the auto-follow has worked.

 FWIW

 TjL



 --
 Doug Williams

 do...@igudo.com
 http://www.igudo.com




-- 
-- 
Justin Kruger -- Sr. Software Engineer - MySpace MDP
http://jDavid.net
jdavid@gmail.com

A dreamer is one who can only find his way by moonlight, and his
punishment is that he sees the dawn before the rest of the world. -
  --  Oscar Wilde


Reply notification?

2009-01-03 Thread Justin Hart

Is there any notification we can set up for @replies?