[twitter-dev] Re: User Streams goes Production, Site Streams adds Home Timelines

2010-09-28 Thread Dharmesh
This is awesome.

Anyone have a simple PHP example yet of working with User Streams?
(Just want to use it for myself for now, to get familiar with it).

Thanks.

Dharmesh Shah
http://twitter.com/dharmesh

On Sep 28, 3:04 pm, John Kalucki j...@twitter.com wrote:
 User Streams
 =

 After an uneventful beta test period, the User Streams feature of the
 Twitter Streaming API is now in regular production. As with all
 production APIs, material changes will be pre-announced and
 non-backward-compatible changes will be avoided. Developers may
 release products against the production endpoint 
 athttp://userstream.twitter.com/2/user.json.

 While User Streams is most useful for Desktop Clients, experimentation
 in other use cases is encouraged. Note that service integrations, such
 as websites and other server-based systems, must not open more than a
 very small number of User Streams. Instead, services must use Site
 Streams. Follow the product selection 
 guide,http://dev.twitter.com/pages/streaming_api#productsto select the
 correct product and avoid access interruptions.

 Access to User Streams on betastream.twitter.com is now unsupported,
 and the beta test endpoints will be disabled in a few days.

 Home Timelines
 =

 Site Streams and User Streams now support the with parameter to
 control the delivery of home timelines. This parameter currently
 accepts two values: users or followings.

 When set to users, only messages targeted directly at a user will be
 delivered:

 * Statuses created by the user
 * @mentions and Direct Messages sent to the user
 * Retweets and favorites of the user's statuses
 * New followings by the user
 * New followers of the user
 * User's profile updates

 When set to followings, the stream will also include:

 * Statuses and retweets created by any of the user's followings
 * @mentions from any of the user's followings, subject to the setting
 of the replies parameter

 Site Streams defaults to users while User Streams defaults to
 followings. These differing default values may be confusing, but
 were chosen to retain backwards compatibility. We recommend that you
 explicitly set this parameter to avoid confusion and future
 compatibility problems as we refine this API.

 John Kaluckihttp://twitter.com/jkalucki
 Mark McBridehttp://twitter.com/mccv
 Cara Meverdenhttp://twitter.com/caramev

-- 
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 Widget code upgraded yet?

2010-09-08 Thread Dharmesh
Matt,

I'm actually seeing some similar issues when invoking the list API
(other API calls work just fine).

When trying to invoke the lists.xml method to get the lists for a
user, the call fails with a Could not authenticate you.  This is
despite having valid OAuth credentials (which work perfectly for other
API calls).

Something seems to be going on specifically with the List API and
OAuth.

Thanks for your help.

Regards,
Dharmesh Shah
Founder and CTO, HubSpot

On Sep 8, 11:38 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi Mike,

 Can you share the widget code you are using. The API for lists hasn't
 been changed, and neither has the lists widget, so I need to see what
 code you are using and the list you are following.

 Thanks,
 Matt





 On Wed, Sep 8, 2010 at 1:03 PM, Mike rotti...@gmail.com wrote:
  Hi, we have a list widget implemented, and recently started seeing the
  issue:http://www.wired.com/epicenter/2010/08/twitter-login-errors/

  Has the widget code been updated, and if I use the generator here:
 http://twitter.com/goodies/widget_list

  ...will I get the correct code?

  Thanks, Mike

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk?hl=en

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Could not authenticate you error on call to lists.xml

2010-09-06 Thread Dharmesh
I'm trying to retrieve a list of users by accessing a URL like this;

http://twitter.com/twitterapidocs/lists.xml

This returns the Could not authenticate you error in all cases.

I have OAuth working -- and can successfully invoke other API
functions with no problem at all (with exactly the same OAuth
credentials).

Any idea why calls to lists.xml would fail when other methods work?

All help is appreciated.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Search with :from user clause not returning data sometimes

2010-09-04 Thread Dharmesh
I'm trying to get the public tweets for certain users, and they come
back with no data.

Example:  user @bhalligan

Has 2,773 tweets (as reported by twitter.com)

But, when I do a search query (using the web interface) like this:

http://search.twitter.com/search?q=ands=phrase=ors=nots=tag=lang=allfrom=bhalliganto=ref=near=within=15units=misince=until=rpp=50

There's no data returned.

Same thing happens when I do a search via the API.

Any ideas why this user (and possibly others) return no tweet data,
even though it's there and public?

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] Get just the IDs for a lists members

2010-07-18 Thread Dharmesh
I'm looking to do do some analysis on twitter lists.

I'd like to be able to retrieve the list of all users that are members
of a list -- but all I need are the User IDs.

Is there a way to get a list of members (up to 5,000) like we can with
the call followers/ids and friends/ids?

Right now, we can only retrieve 20 members at a time -- which requires
many API calls for large lists and wastes bandwidth as I don't need
all the user data.

Thanks.


[twitter-dev] Re: Suggestion for User record

2009-11-03 Thread Dharmesh

+1 This would very, very useful.

On Oct 31, 10:10 pm, Dave  Winer dave.wi...@gmail.com wrote:
 It would be useful if a user had a lists_count element, in addition
 to the other counts (followers, statuses, favourites).


[twitter-dev] Accounts no longer in existence not returning error

2009-10-06 Thread Dharmesh

I've noticed that several accounts that no longer exist on twitter are
still returned when accessed via the API.

Example:  http://twitter.com/users/show/fitnesstwit.xml (returns a
valid xml dataset)

Despite the fact that http://twitter.com/fitnesstwitt returns a sorry
that page doesn't exist error.

All help is appreciated.





[twitter-dev] Re: Accounts no longer in existence not returning error

2009-10-06 Thread Dharmesh

Sorry, I should have used a better example.

Like:  http://twitter.com/807095 -- which as it turns out, is not
really a problem either, because I figured out that the API will allow
lookup by UserID (vs. Screen Name) whereas the web interface does not.

In any case, thanks for following up and sorry for the interruption.
All is well.


On Oct 6, 3:31 pm, William william.wnekow...@gmail.com wrote:
 It does exist.. you just added an extra t at the end.

 William

 --
 William Wnekowicz
 Altum Design Studios
 servi...@altumdesign.com
 973.953.3764

 Check outwww.bugtwits.com

 On Oct 6, 2:50 am, Dharmesh dharme...@gmail.com wrote:

  I've noticed that several accounts that no longer exist on twitter are
  still returned when accessed via the API.

  Example:  http://twitter.com/users/show/fitnesstwit.xml(returnsa
  valid xml dataset)

  Despite the fact thathttp://twitter.com/fitnesstwittreturnsa sorry
  that page doesn't exist error.

  All help is appreciated.


[twitter-dev] PHP Sample for streaming sample call

2009-09-23 Thread Dharmesh

Greetings,

I'm trying to get the streaming sample (GET /1/statuses/sample.json)
call working in PHP.

I was able to get the POST to /track.json working fine -- but having
trouble getting access to the sample stream.

Anyone have working example PHP code I could use for this?  I think
I'm close, but perhaps getting tripped up on the format of the GET vs.
the POST.

Thanks.


[twitter-dev] Re: Getting any users home timeline

2009-09-08 Thread Dharmesh Parikh
Would appreciate some feedback on this?
sorry for resending.

--dharmesh



On Fri, Sep 4, 2009 at 12:07 PM, dp dharmesh.par...@gmail.com wrote:


 So the statuses/friends_timeline api call gives an authentated users
 and his friends statuses. Basically that authentacted users home
 page.

 Now is there any similar way to get any users home timeline.  statuses/
 user_timeline gives the statuses for any user specified by a userid.
 But it gives what is posted by them only.

 An e.g to clear things up

 User X is authenticated through API.
 the App makes a call and gets his home timeline using statuses/
 friends_timeline .

 User X has a friend User Y.  App can call statuses/user_timeline  for
 user Y but that will return only User Ys statutes (which can also be
 got from statuses/friends_timeline  earlier).

 What i want is an easy way so the the App can get User Y;s home time-
 line ( User Ys statuses as well User Y friends statuses).

 One can find User Ys friends and then call statuses/user_timeline for
 each of friend to get what i want. Seems to expensive in terms of api
 calls

 Any better way of doing this? i could not see the api supporting this
 directly.

 --dharmesh




-- 
--Dharmesh


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

2009-08-03 Thread Dharmesh Parikh
So if i user_timeline REST api call and use max_id =X  or since_id = Y and
count=200 i can get 3200 messages backwards from X or 3200 messages forward
from Y and then hit the limit.

My specific questions:
1) can i use some different max_id and count=200 after the above scenario is
hit.

2) What if in the next user_timeline REST api calls i use a different
reference point max_id = A or since_id = B can i use count=200 and still get
different set of 3200 messages?


--dharmesh



On Tue, Aug 4, 2009 at 12:34 AM, Josh Roesslein jroessl...@gmail.comwrote:

 Correction: 3200--1800
 Sorry for that math error ;)


 On Mon, Aug 3, 2009 at 2:03 PM, Josh Roesslein jroessl...@gmail.comwrote:

 I believe it means you can not go back more than 3200 statuses.
 Example:
   user has posted 5000 statuses. you can only view statuses 3200+ via the
 api.

 Its not a limit that gets used up like the api rate limit.


 On Mon, Aug 3, 2009 at 1:39 PM, dp dharmesh.par...@gmail.com wrote:


 Hi Doug,

 I did read that but was not able to get the exact implications of it,
 thats why the question.

 So lets say i use count to get 3200 messages in history for a user,
 then can i use the count ever again (count 20), or i have reached the
 limit for that user permanently??


 -dharmesh

 On Aug 3, 10:28 pm, Doug Williams d...@twitter.com wrote:
  Hi there --
  Check out #6 in the Things Every Developer Should Know article [1].
 
  1.https://apiwiki.twitter.com/Things-Every-Developer-Should-Know
 
  Thanks,
  Doug
 
  On Sun, Aug 2, 2009 at 11:27 AM, dp dharmesh.par...@gmail.com wrote:
 
   When the REST API limit for using count/page reaches 3200 for a
   particular user account, does it mean that that user account can
 never
   use count/page parameters any-more??
 
   Does this limit reset?




 --
 Josh




 --
 Josh




-- 
--Dharmesh


[twitter-dev] Statuses_count and Friends_count not being returned

2009-04-05 Thread Dharmesh

When I call users/show method of the API, the friends_count and
statuses_count does not always return data (this used to work reliably
until relatively recently).

Example: http://twitter.com/users/show/barackobama.xml

Result comes back, but the statuses_count and friends_count elements
are missing.  Visiting the account directly on twitter.com with
http://twitter.com/barackobama shows that there are indeed friends and
updates.

I tried the JSON method as well, and it has the same issue.

Anyone else experiencing this?

All help is appreciated.

Regards,
Dharmesh Shah
Founder and CTO, HubSpot


Anyone have PHP sample code for twitter OAuth (beta)?

2009-02-11 Thread Dharmesh

Greetings,

I'm in the process of integrating OAuth (beta) into my application.

Does anyone have sample PHP code or a wrapper for the OAuth stuff
they'd be willing to share?

Would save me some effort.

All assistance is appreciated.

Dharmesh Shah
http://twitter.com/onstartups


Re: simple tweet this implementation

2008-12-13 Thread Dharmesh

I have not been able to get this to work yet (i.e. passing a valid
source= parameter still shows updates as being from the web).

Example: http://twitter.com/home?status=Testingsource=TwitterGrader

Thanks.

-Dharmesh

On Dec 12, 12:32 pm, scottjgo scott...@gmail.com wrote:
 Has anyone gotten it to work? Am I doing something wrong?

 On Dec 12, 12:20 pm, Alex Payne a...@twitter.com wrote:

  The feature has been deployed...

  On Thu, Dec 11, 2008 at 18:16, scottjgo scott...@gmail.com wrote:

   Hi.

   I guess this feature was added a week ago. Thanks!

   I'm having a bit of trouble with it though. I tried the url
  http://twitter.com/home?status=testsource=isitfunnytodaycom(my
   source paramter was approved over 48 hours ago) and my post is still
   'from web'. I also tried using the source parameter twitterific, which
   also showed up as 'from web'. Is feature not deployed yet?

   On Nov 21, 5:01 pm, scottjgo scott...@gmail.com wrote:
  http://code.google.com/p/twitter-api/issues/detail?id=163

   On Nov 21, 2:51 pm, Alex Payne a...@twitter.com wrote:

We recently had another request to allow messages posted from the web
to define their own source parameters.  We'll consider it.  Please
file an issue athttp://code.google.com/p/twitter-api/issues/entry.

On Fri, Nov 21, 2008 at 01:36, scottjgo scott...@gmail.com wrote:

 Bummer.

 I don't suppose you'd be willing to add a simple appid= or something
 to the url that lets you modify the posted from link (given that the
 link was already approved for your app id)?

 On Nov 20, 5:03 pm, Alex Payne a...@twitter.com wrote:
 Yes, you'll need to make a proper API request to have your update
 attributed.

 --
 Alex Payne

 On Nov 20, 2008, at 10:05, scottjgo scott...@gmail.com wrote:

  Hi.

  I want to add a tweet this link to my website. The idea is that 
  you
  would click the button, and it would prepopulate the message 
  field on
  twitter with a link. Ideally, you would authenticate through
  twitter.com so I can avoid handling passwords.

  I understand you can use a link 
  like:http://twitter.com/home?status=Putyourmessagehere
  but is it possible to replace the from web with a link to my
  website? Without that, it sort of eliminates the cool viral
  advertising. Is the only alternative to use the real api (and 
  handle
  passwords)?

  Thanks.
  -sjg

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

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


Re: Change to Twitter API?

2008-12-10 Thread Dharmesh

Alex,

I think there might still be an issue with this fix.  I've run through
many test cases (including your profile) and all of them are still
failing to return the full user object.

It looks like this might be just an issue with the xml format of /
users/show (the json output seems to contain all the data).

Thanks for all the hard work.  If I can provide any more detail or
testing assistance, let me know.

Regards,
Dharmesh

On Dec 10, 12:23 pm, Alex Payne [EMAIL PROTECTED] wrote:
 The fix was deployed yesterday, about 17 hours ago.  Any incorrect
 responses are just cached data that will be evicted over time.
 Nothing should live in the cache longer than 24 hours, so all should
 be correct within the next 7 hours.



 On Wed, Dec 10, 2008 at 08:22, itcn [EMAIL PROTECTED] wrote:

  Is there any ETA on when this bug will be fixed?

  On Dec 9, 5:59 pm, Alex Payne [EMAIL PROTECTED] wrote:
  This is a temporary issue.

  On Tue, Dec 9, 2008 at 14:47, itcn [EMAIL PROTECTED] wrote:

   This used to work for unauthenticated users to display statuses_count
   and now it doesn't:

  http://twitter.com/users/show/(screen_name).xml

   Any reason this was changed recently?   Is there another way to access
   a user's status count (preferably without requiring the user's
   authentication)?

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

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


Re: Followings Updates not coming from AP

2008-12-10 Thread Dharmesh

I have had the same issue since some time last night.

Basically, the following and update elements of the output just
don't come through

I believe this was resolved last night, but most of my users are still
having the problem (and I'm getting increasingly worried that it's not
just an issue with waiting the cache to refresh).

Example:  http://twitter.com/users/show/hubspot.xml (in fact, I can't
find a single user account now that will return following count and
update count when retrieved via the API)

All help is appreciated.

-Dharmesh





On Dec 10, 2:50 pm, jje [EMAIL PROTECTED] wrote:
 Followers are coming through on our call but the Followings and
 Updates are not, no error just no #'s. seewww.whatsyourtweetworth.com
 and enter user name..not all info is coming through and yesterday it
 was working.

 thanks for the help- developer is out, but he can add more details
 once he is available. I'm just trying to figure out if its on our
 end.

 On Dec 10, 1:36 pm, Steve Ng Ming Yeow [EMAIL PROTECTED] wrote:

  Hi Jje,
    Think you might need to elaborate a bit more.

    We might have the same issue (and i have seen it being mentioned in some
  other places), but would need more details to ascertain.

    Do you get an error, or are the changes in following just not being
  reflected?

  M

  On Wed, Dec 10, 2008 at 11:23 AM, jje [EMAIL PROTECTED] wrote:

   Just wondering if there is any discussion on the current followings 
   updates not coming through on our ping to the API?

   Thanks

  --
  Discovery - Going Beyond Engagement:http://is.gd/op2(MyCurrent Pet
  Project)
  What I do:http://v3.mingyeow.com/?page_id=5