Re: [twitter-dev] Stream API and UserLists

2011-03-25 Thread Fabien Penso
+1

Is this planned ?

On Tue, Mar 8, 2011 at 1:23 AM, tmurray tmurr...@gmail.com wrote:
 I was wondering if there is a way to use the streaming API  to receive
 tweets associated with User Lists??  If not, what is the best way to
 receive tweets associated with user lists?

 Thanks in advance for your help!!

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


-- 
Twitter 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: need emergency help

2011-03-25 Thread Terence Eden
Save them in a cookie which you give to the user.

On Mar 25, 4:05 am, Blaaze Artifex blaazet...@gmail.com wrote:
 thanks for your reply, am using php and am not going to use those variables
 in the same session instead am going to use them in future (may be after
 many days), will it work.?

 On Fri, Mar 25, 2011 at 1:42 AM, Trevor Dean trevord...@gmail.com wrote:
  When the user is returned to your site after authenticating you can grab
  the oauth_token and the oauth_verifier from the url and use that to get an
  access token.  I'm using .NET and the Twitterizer API to accomplish this,
  I'm not sure what language you're doing this in or if you are using a third
  party api but the steps should be the same.   Once you get the access token
  you should pull out the Token and TokenSecret and you can store that in your
  database and use for future requests.

  Trevor

  On Thu, Mar 24, 2011 at 4:00 PM, Blaaze blaazet...@gmail.com wrote:

  hi all

  i am abhilash from india, am trying to design a new site where users
  post their posts, but i need it to be also posted on twitter on the
  specific user's twitter page, the user is asked to login to twitter
  and allow the permission to my app to do status update, but the real
  part what i need to know is

  i need my code to save the details of the last session and use the
  same things when the user posts for the next time without asking the
  user to reauthenticate for the app

  please help me with this, if possible show an example also

  will be waiting for your reply

  regards
  Abhilash

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

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

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


Re: [twitter-dev] Geo AP

2011-03-25 Thread Augusto Santos
As you can see at http://dev.twitter.com/doc/get/geo/nearby_places this
method is *deprecated and should be replaced by geo/search
But there is no place_id for Australia right now. *At least there is no
geotagged tweet with a place_id that came from a Lat/Long in Australia.

On Thu, Mar 24, 2011 at 12:38 PM, Daryoush Paknad dpak...@gmail.com wrote:

 geo/naerby_places
 geo/search
 geo/similar_places
 geo/reverse_geocode
 geo/place

 Specifically :http://api.twitter.com/1/geo/nearby_places

 Thanks.

 On Thu, Mar 24, 2011 at 5:30 AM, Augusto Santos augu...@gemeos.orgwrote:

 What you mean with geo api? geotagged tweets? trending topics per
 country/city? places?

 On Wed, Mar 23, 2011 at 9:58 PM, Daryoush dpak...@gmail.com wrote:

 Does twitter geo api work in Australia?

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




 --
 氣





-- 
氣

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


Re: [twitter-dev] Stream API and UserLists

2011-03-25 Thread Augusto Santos
You can get http://dev.twitter.com/doc/get/:user/:list_id/members
and then use with http://dev.twitter.com/pages/streaming_api_methods#follow
don't you?

On Fri, Mar 25, 2011 at 4:11 AM, Fabien Penso fabienpe...@gmail.com wrote:

 +1

 Is this planned ?

 On Tue, Mar 8, 2011 at 1:23 AM, tmurray tmurr...@gmail.com wrote:
  I was wondering if there is a way to use the streaming API  to receive
  tweets associated with User Lists??  If not, what is the best way to
  receive tweets associated with user lists?
 
  Thanks in advance for your help!!
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk
 

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




-- 
氣

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


Re: [twitter-dev] Stream API and UserLists

2011-03-25 Thread Fabien Penso
On Fri, Mar 25, 2011 at 12:40 PM, Augusto Santos augu...@gemeos.org wrote:
 You can get http://dev.twitter.com/doc/get/:user/:list_id/members
 and then use with http://dev.twitter.com/pages/streaming_api_methods#follow
 don't you?

Doesn't work for private profiles.

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


Re: [twitter-dev] Stream API and UserLists

2011-03-25 Thread Augusto Santos
Well, but streaming api really doesn't work for private profiles, for that
you must use User Streams.

On Fri, Mar 25, 2011 at 8:45 AM, Fabien Penso fabienpe...@gmail.com wrote:

 On Fri, Mar 25, 2011 at 12:40 PM, Augusto Santos augu...@gemeos.org
 wrote:
  You can get http://dev.twitter.com/doc/get/:user/:list_id/members
  and then use with
 http://dev.twitter.com/pages/streaming_api_methods#follow
  don't you?

 Doesn't work for private profiles.




-- 
氣

-- 
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] Missing images on Trademark Guidelines; T logo resource

2011-03-25 Thread Abby
Hi,

I am trying to access the following page:
http://support.twitter.com/entries/77641

The images are not appearing, and none of the other pages (eg
http://twitter.com/about/resources/logos) have the 'T' logo. Does
anyone know where I can find T logo resources?

Thanks
Abby

-- 
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] Need help with pluggin

2011-03-25 Thread Luuxx
I'm using a plug-gin on a site that stopped working today.I think it
has something to do with the new update of today but not sure.

the only thing I know is that the error occurs when the request is
send:

http://twitter.com/T2Entertainment/lists/artists/statuses.json?callback=TWTR.Widget.receiveCallback_1include_rts=trueclientsource=TWITTERINC_WIDGET1301045840679=cachebust

the error is quite clear but I don't know how to solve it.

error:
You must specify either a list ID or a slug and owner

the plug-gin is written in JS and the original code is here:

http://twitter.com/javascripts/widgets/widget.js

thanks ahead.

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


[twitter-dev] Twitter followers in excel

2011-03-25 Thread shaily
Hi Tweeples,

Can you please help me how to download the details of my followers,
their details, picture into excel! Can I connect excel directly to
twitter? Is their an easy way?

Please advise.
Shaily

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


Re: [twitter-dev] Twitter followers in excel

2011-03-25 Thread Scott Wilcox
Hello there,

There is no method to do this straight from the API.

What 'details' of each follower are you interested in having?

Can you elaborate on why you're interested in having an export to excel if 
possible too.

Scott.


On 25 Mar 2011, at 12:25, shaily wrote:

 Hi Tweeples,
 
 Can you please help me how to download the details of my followers,
 their details, picture into excel! Can I connect excel directly to
 twitter? Is their an easy way?
 
 Please advise.
 Shaily

-- 
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] app to block all users ending with numerals

2011-03-25 Thread Dean Collins
Lol, someone want to write me an app that blocks all users where their
username ends with two or three numbers.

 

This is getting ridiculous.

 

Seems like something that would be pretty easy to achieve via the API
don't you think?

 

 

Cheers,

Dean

 

 

 

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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread Adam Green
What if Twitter just suspended anyone who followed more than 1,000
users without ever having tweeted? But then their membership would
sink dramatically. How about not allowing following past 100 users
without tweeting at least once. What is the point of these accounts
anyway, unless they are being built up and then sold? They can't be
used for spam, since they don't tweet, and generally don't have URLs
in their profiles.

On Fri, Mar 25, 2011 at 10:47 AM, Dean Collins d...@cognation.net wrote:
 Lol, someone want to write me an app that blocks all users where their
 username ends with two or three numbers.



 This is getting ridiculous.



 Seems like something that would be pretty easy to achieve via the API don’t
 you think?





 Cheers,

 Dean







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




-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread hax0rsteve

I know a number of people who use twitter as a read only source of
information (for instance they may follow only news outlets and celebrity
tweeters) and therefore may have large follow counts with zero tweets.

This may not be a use case that you are familiar with, but it is a valid
use case. 

Also, I don't know if you are aware of the current limits on following,
etc, which are described here, my apologies if you already are :

http://support.twitter.com/forums/10711/entries/15364


As for the OP, well, a) if this is what you (or your users) want, just parse
the follow messages looking for numerical postfixes and offer the user
the user the option to block them, there is no need for an API call
specifically to do this.

And b) again, you are missing a use case, there are lots of genuine accounts
that have numerics postfixed to them, some people use birth years, and some
people - perhaps finding that the screen name they wanted is not available
in a naked form - will have chosen [screen name]76 or some similar format,
or picked a year with some historical connection with their chosen name.

It is not safe to simply assume that ending with numerics is sufficient to
indicate that the account is used only in the delivery of spam, be that tweet
spam or simply follow spam.

While the assumption may hold in a large number of cases - and I am not aware
of any empirical data that shows what this number is, though I'd be interested
to see one - it will undoubtedly include some false positives.

HTH

hax0rsteve

On 25 Mar 2011, at 15:00, Adam Green wrote:

 What if Twitter just suspended anyone who followed more than 1,000
 users without ever having tweeted? But then their membership would
 sink dramatically. How about not allowing following past 100 users
 without tweeting at least once. What is the point of these accounts
 anyway, unless they are being built up and then sold? They can't be
 used for spam, since they don't tweet, and generally don't have URLs
 in their profiles.
 
 On Fri, Mar 25, 2011 at 10:47 AM, Dean Collins d...@cognation.net wrote:
 Lol, someone want to write me an app that blocks all users where their
 username ends with two or three numbers.
 
 
 
 This is getting ridiculous.
 
 
 
 Seems like something that would be pretty easy to achieve via the API don’t
 you think?
 
 
 
 
 
 Cheers,
 
 Dean
 
 
 
 
 
 
 
 --
 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
 
 
 
 
 -- 
 Adam Green
 Twitter API Consultant and Trainer
 http://140dev.com
 @140dev
 
 -- 
 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: setFollow Filter mentions

2011-03-25 Thread Hope R.
Yes - I just added an if statement in parse_tweets.php after line 48:

//get list of acceptable userids

if ($user_id == 123456789 || $user_id == 234567890 || $user_id ==
345678901) {

With a closing tag at the bottom before the sleep (); statement.  Works
great for me!


On Thu, Mar 24, 2011 at 8:43 PM, Riley digitalsimplif...@gmail.com wrote:

 I am having the same issue, if anyone is able to help out that would be
 great!

 Hope: Have you been able to solve this issue?

 -Riley


-- 
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: setFollow Filter mentions

2011-03-25 Thread Adam Green
I use this technique also to limit tweets to just the ones I'm
explicitly following, but you'll find that the in_array() PHP function
makes this easier than creating separate tests for each user_id. I
create an array of user_ids I want to follow, pass this array to
Phirehose, and then compare the user_id of each tweet I receive to
this array.

On Mar 25, 11:24 am, Hope R. h...@flagshiptv.com wrote:
 Yes - I just added an if statement in parse_tweets.php after line 48:

 //get list of acceptable userids

 if ($user_id == 123456789 || $user_id == 234567890 || $user_id ==
 345678901) {

 With a closing tag at the bottom before the sleep (); statement.  Works
 great for me!

 On Thu, Mar 24, 2011 at 8:43 PM, Riley digitalsimplif...@gmail.com wrote:
  I am having the same issue, if anyone is able to help out that would be
  great!

  Hope: Have you been able to solve this issue?

  -Riley

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


[twitter-dev] Twitter share button without count

2011-03-25 Thread twitter dev
HI Guys,

I'm using the following code for Twitter share button with count,

a href=http://twitter.com/share; class=twitter-share-button data-url=
http://sample.com; data-text=Sample message! data-count=horizontal
data-via= data-related=Tweet/a
script type=text/javascript src=http://platform.twitter.com/widgets.js
/script

Now, I would like to hide the count and have only button. Can anyone please
suggest or point me to the code ?

I tried removed data-count, which dint fixed the problem.

I did not find this on Twitter doc's.


Thanks In Advance,
-dev.

-- 
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] List widget off since today

2011-03-25 Thread oliv
Hello,

My widget list is not working anymore, I get the message : You must
specify either a list ID or a slug and owner.

Could you please help, I think it's a general problem.

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


Re: [twitter-dev] Geo AP

2011-03-25 Thread Daryoush Paknad
Thanks.  I have been looking for a document that lists the locations that
are supported by geo API set with no avail :(

On Fri, Mar 25, 2011 at 4:36 AM, Augusto Santos augu...@gemeos.org wrote:

 As you can see at http://dev.twitter.com/doc/get/geo/nearby_places this
 method is *deprecated and should be replaced by geo/search
 But there is no place_id for Australia right now. *At least there is no
 geotagged tweet with a place_id that came from a Lat/Long in Australia.

 On Thu, Mar 24, 2011 at 12:38 PM, Daryoush Paknad dpak...@gmail.comwrote:

 geo/naerby_places
 geo/search
 geo/similar_places
 geo/reverse_geocode
 geo/place

 Specifically :http://api.twitter.com/1/geo/nearby_places

 Thanks.

 On Thu, Mar 24, 2011 at 5:30 AM, Augusto Santos augu...@gemeos.orgwrote:

 What you mean with geo api? geotagged tweets? trending topics per
 country/city? places?

 On Wed, Mar 23, 2011 at 9:58 PM, Daryoush dpak...@gmail.com wrote:

 Does twitter geo api work in Australia?

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




 --
 氣





 --
 氣


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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread M. Edward (Ed) Borasky
On Fri, 25 Mar 2011 15:17:25 +, hax0rsteve 
hax0rc...@btinternet.com wrote:

I know a number of people who use twitter as a read only source of
information (for instance they may follow only news outlets and 
celebrity
tweeters) and therefore may have large follow counts with zero 
tweets.


This may not be a use case that you are familiar with, but it is a 
valid

use case.

Also, I don't know if you are aware of the current limits on 
following,

etc, which are described here, my apologies if you already are :

http://support.twitter.com/forums/10711/entries/15364


As for the OP, well, a) if this is what you (or your users) want, 
just parse
the follow messages looking for numerical postfixes and offer the 
user

the user the option to block them, there is no need for an API call
specifically to do this.

And b) again, you are missing a use case, there are lots of genuine 
accounts
that have numerics postfixed to them, some people use birth years, 
and some
people - perhaps finding that the screen name they wanted is not 
available
in a naked form - will have chosen [screen name]76 or some similar 
format,
or picked a year with some historical connection with their chosen 
name.


It is not safe to simply assume that ending with numerics is 
sufficient to
indicate that the account is used only in the delivery of spam, be 
that tweet

spam or simply follow spam.

While the assumption may hold in a large number of cases - and I am 
not aware

of any empirical data that shows what this number is, though I'd be
interested
to see one - it will undoubtedly include some false positives.

HTH

hax0rsteve

On 25 Mar 2011, at 15:00, Adam Green wrote:


What if Twitter just suspended anyone who followed more than 1,000
users without ever having tweeted? But then their membership would
sink dramatically. How about not allowing following past 100 users
without tweeting at least once. What is the point of these accounts
anyway, unless they are being built up and then sold? They can't be
used for spam, since they don't tweet, and generally don't have URLs
in their profiles.

On Fri, Mar 25, 2011 at 10:47 AM, Dean Collins d...@cognation.net 
wrote:
Lol, someone want to write me an app that blocks all users where 
their

username ends with two or three numbers.



This is getting ridiculous.



Seems like something that would be pretty easy to achieve via the 
API don’t

you think?





Cheers,

Dean







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





--
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

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


1. There are plenty of good spam detection and filtering algorithms. 
The ones listed here, however, are simple hacks unlikely to work without 
extensive manual intervention. The same can be said for ManageFlitter, 
TwitCleaner and similar services. They give you a start, but you still 
have to wade through hundreds or thousands of positives to weed out the 
keepers.


2. A first name followed by a few numbers is a common legitimate screen 
name - just having a name like that isn't necessarily an indication of a 
spammer. Here's how it works - Bobby asks Kelly if she's on Twitter. 
Kelly says No and signs up. She starts with the screen name Kelly, 
finds it's taken, so she adds her age or the year she was born. If 
that's taken too, she'll maybe get clever and pick something like 
PiercedChick, or she'll pick a few random numbers and get in as 
Kelly117. (Now don't go blaming me if you start getting followers with 
names like PiercedChick117.)


3. The User / Twitter spam reporting process could definitely be 
improved with a few simple steps. I don't have any data - that would 
have to come from inside Twitter - but the two most common types of spam 
I see is spambots riding Trending Topics and spambots replying to 
keywords. In either case, the actual spam tweets sent are usually easily 
found via Twitter Search. Given that, what I do when I get a spam tweet 
is perform the search, then go through the resulting page and manually 
report a page or so, depending on how much time I'm willing to spend on 
this.


So here's what I'd propose: Twitter sets up an email address or some 
other mechanism to receive these search patterns. When someone gets 
spammed, they can send a copy of the tweet to Twitter, in addition to 
doing a block and report on the spammer. Twitter could then create the 
search pattern, run the query and suspend 

Re: [twitter-dev] Twitter followers in excel

2011-03-25 Thread M. Edward (Ed) Borasky

On Fri, 25 Mar 2011 14:10:36 +, Scott Wilcox sc...@dor.ky wrote:

Hello there,

There is no method to do this straight from the API.

What 'details' of each follower are you interested in having?

Can you elaborate on why you're interested in having an export to
excel if possible too.

Scott.


On 25 Mar 2011, at 12:25, shaily wrote:


Hi Tweeples,

Can you please help me how to download the details of my followers,
their details, picture into excel! Can I connect excel directly to
twitter? Is their an easy way?

Please advise.
Shaily


There's a service called Export.ly that will do this for you. I don't 
remember how many of the fields it exports, though.


This is an easy coding task in any of the scripting languages with 
Twitter API libraries - I do it in Perl but I'm sure it can be done in 
Python, Ruby or PHP as well with just a few lines of code.


Finally, there are some ways in Excel to import XML data - anything you 
can export from Twitter via Atom / RSS feeds in XML can be imported into 
Excel that way.


--
http://twitter.com/znmeb http://borasky-research.net

A mathematician is a device for turning coffee into theorems. -- Paul 
Erdős


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


Re: [twitter-dev] Twitter followers in excel

2011-03-25 Thread Tom van der Woerdt
I've seen someone do it with VB scripting. Ask him, you can find him as 
Randomness on this list and on Twitter as @nl_twop_1000


Tom


On 3/25/11 7:39 PM, M. Edward (Ed) Borasky wrote:

On Fri, 25 Mar 2011 14:10:36 +, Scott Wilcox sc...@dor.ky wrote:

Hello there,

There is no method to do this straight from the API.

What 'details' of each follower are you interested in having?

Can you elaborate on why you're interested in having an export to
excel if possible too.

Scott.


On 25 Mar 2011, at 12:25, shaily wrote:


Hi Tweeples,

Can you please help me how to download the details of my followers,
their details, picture into excel! Can I connect excel directly to
twitter? Is their an easy way?

Please advise.
Shaily


There's a service called Export.ly that will do this for you. I don't 
remember how many of the fields it exports, though.


This is an easy coding task in any of the scripting languages with 
Twitter API libraries - I do it in Perl but I'm sure it can be done in 
Python, Ruby or PHP as well with just a few lines of code.


Finally, there are some ways in Excel to import XML data - anything 
you can export from Twitter via Atom / RSS feeds in XML can be 
imported into Excel that way.




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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread M. Edward (Ed) Borasky
On Fri, 25 Mar 2011 11:33:30 -0700, M. Edward (Ed) Borasky 
zn...@borasky-research.net wrote:


[snip]

One other note - a tweet that contains multiple Trending Topics is 
nearly always spam. I haven't gathered any data, mostly because I'm too 
lazy to write the API call management / rate limit logic to automate 
this. I'd *almost* be willing to recommend to Twitter that they stop 
indexing tweets for Search that match more than one Trending Topic, 
though. ;-)

--
http://twitter.com/znmeb http://borasky-research.net

A mathematician is a device for turning coffee into theorems. -- Paul 
Erdős


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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread Umashankar Das
Today someone tweeted a quote on steve jobs to me. I responded to him
referencing the same quote. I got two mentions since Steve Jobs was in both
my tweets from an id @RT_steve_jobs . I consider this spam. What would the
general opinion be. This does not have any numerics :).

Regards
Umashankar Das

On Sat, Mar 26, 2011 at 12:03 AM, M. Edward (Ed) Borasky 
zn...@borasky-research.net wrote:

 On Fri, 25 Mar 2011 15:17:25 +, hax0rsteve hax0rc...@btinternet.com
 wrote:

 I know a number of people who use twitter as a read only source of
 information (for instance they may follow only news outlets and celebrity
 tweeters) and therefore may have large follow counts with zero tweets.

 This may not be a use case that you are familiar with, but it is a valid
 use case.

 Also, I don't know if you are aware of the current limits on following,
 etc, which are described here, my apologies if you already are :

 http://support.twitter.com/forums/10711/entries/15364


 As for the OP, well, a) if this is what you (or your users) want, just
 parse
 the follow messages looking for numerical postfixes and offer the user
 the user the option to block them, there is no need for an API call
 specifically to do this.

 And b) again, you are missing a use case, there are lots of genuine
 accounts
 that have numerics postfixed to them, some people use birth years, and
 some
 people - perhaps finding that the screen name they wanted is not available
 in a naked form - will have chosen [screen name]76 or some similar format,
 or picked a year with some historical connection with their chosen name.

 It is not safe to simply assume that ending with numerics is sufficient to
 indicate that the account is used only in the delivery of spam, be that
 tweet
 spam or simply follow spam.

 While the assumption may hold in a large number of cases - and I am not
 aware
 of any empirical data that shows what this number is, though I'd be
 interested
 to see one - it will undoubtedly include some false positives.

 HTH

 hax0rsteve

 On 25 Mar 2011, at 15:00, Adam Green wrote:

  What if Twitter just suspended anyone who followed more than 1,000
 users without ever having tweeted? But then their membership would
 sink dramatically. How about not allowing following past 100 users
 without tweeting at least once. What is the point of these accounts
 anyway, unless they are being built up and then sold? They can't be
 used for spam, since they don't tweet, and generally don't have URLs
 in their profiles.

 On Fri, Mar 25, 2011 at 10:47 AM, Dean Collins d...@cognation.net
 wrote:

 Lol, someone want to write me an app that blocks all users where their
 username ends with two or three numbers.



 This is getting ridiculous.



 Seems like something that would be pretty easy to achieve via the API
 don’t
 you think?





 Cheers,

 Dean







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




 --
 Adam Green
 Twitter API Consultant and Trainer
 http://140dev.com
 @140dev

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


 1. There are plenty of good spam detection and filtering algorithms. The
 ones listed here, however, are simple hacks unlikely to work without
 extensive manual intervention. The same can be said for ManageFlitter,
 TwitCleaner and similar services. They give you a start, but you still have
 to wade through hundreds or thousands of positives to weed out the keepers.

 2. A first name followed by a few numbers is a common legitimate screen
 name - just having a name like that isn't necessarily an indication of a
 spammer. Here's how it works - Bobby asks Kelly if she's on Twitter. Kelly
 says No and signs up. She starts with the screen name Kelly, finds it's
 taken, so she adds her age or the year she was born. If that's taken too,
 she'll maybe get clever and pick something like PiercedChick, or she'll
 pick a few random numbers and get in as Kelly117. (Now don't go blaming me
 if you start getting followers with names like PiercedChick117.)

 3. The User / Twitter spam reporting process could definitely be improved
 with a few simple steps. I don't have any data - that would have to come
 from inside Twitter - but the two most common types of spam I see is
 spambots riding Trending Topics and spambots replying to keywords. In either
 case, the actual spam tweets sent are usually easily found via Twitter
 Search. Given that, what I do when I get a spam tweet is perform the search,
 then go through the 

[twitter-dev] Twitter Basics and Errors

2011-03-25 Thread Chris S.
I am in the process of getting re-acquainted with the API after a lot
of changes and I have run into some issues.

I am getting rate limited when I do a call to get the follower IDs. As
I understand it, it has 150 uses on my IP per hour, but I couldn't
have made more than 4 calls. My script is fairly simple as a test:

$twitterObj = new EpiTwitter();
$followers = $twitterObj-get_followersIds( array ('screen_name' =
'whoever'));
print \n . count($followers);

This isn't a part of a loop or anything, but I get a Rate Limit
Exceeded error after only one or 2 calls to this. Any idea what could
be wrong?

Also, has something changed with search? I attempt to do:

$twitterObj = new EpiTwitter();
$search = $twitterObj-search('whatever');
echo $search-responseText;

And I get a 403 Forbidden error.

Both my examples are using the php wrapper found here:
http://www.jaisenmathai.com/articles/twitter-php-oauth.html

If anyone has any help with my I might be seeing these errors, or if
there is a better library for PHP to do basic no authentication tasks,
such as getting a users followers and doing basic search queries, I
would very much appreciate it.

Thank you.

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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread hax0rsteve

On 25 Mar 2011, at 18:49, M. Edward (Ed) Borasky wrote:

 
 One other note - a tweet that contains multiple Trending Topics is nearly 
 always spam. I haven't gathered any data, mostly because I'm too lazy to 
 write the API call management / rate limit logic to automate this. I'd 
 *almost* be willing to recommend to Twitter that they stop indexing tweets 
 for Search that match more than one Trending Topic, though. ;-)


To pointlessly prolong the discussion - it being Friday :-) ...

Of course that suffers from the same problems, my personal feed follows a lot 
of UK
politics, most of this action takes place during the day when much of the UK is 
busy.

It is not all uncommon to see two trending topics or hashtags in these tweets, 
and
this is especially true when something like a televised debate or random bit of
civil unrest is taking place.  Instructive for anyone who wishes to see this in
action will be the large demonstration in central London tomorrow, I would 
predict
that within several hours of the beginning of the march, if not before, you will
see many UK tweets containing at least two TTs, if not three.

Indeed, it is a common practice amongst such twitterers - particularly the more
provocative and/or confrontational - to include as many popular hashtags as they
can fit onto the end of their tweet so as to reach the highest number of people
who may have added these to their searches, resulting in multiple trends in some
otherwise very short tweets.

Now it is certainly the case that these tweets amount to a vanishingly small 
number
of the total number of tweets in any given timeframe, and that the number of 
people
who are interested in them is a vanishingly small proportion of even the UK 
user base,
never mind the entire global base, but for those users those tweets are 
precisely 
what they are using twitter for.

I guess what I'm getting at here is that any automated filtering system 
ultimately
amounts to making value judgements on behalf of your users.  That this fails
quite often in - for example - corporate email systems gives me no confidence
that any similar approach is going to work for twitter, where the diversity of
message content, users, and use cases is vastly more pronounced.

But I could - of course - be wrong :-)


hax0rsteve






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


[twitter-dev] Twitter @anywhere dosent recognize log in status from web

2011-03-25 Thread corey
Being logged in through twitter.com is not recognized by @anywhere
isConnected() function.

For example, I'm logged in through twitter.com but @anywhere
isConnected() does not recognize that I am logged in. I have to log in
again through the twitter connect button.
This seems odd to me since this should all be on cohesive flow,
correct?

2 Questions:

What is the difference between logging in on twitter.com and logging
in via @anywhere?

Is there a way that my session on twitter.com can be recognized via
@anywhere?

-- 
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] Incorrect Signature on OAuth POST

2011-03-25 Thread KiT
Hi,

I know there are plenty of discussions about the incorrect signature
errors but I really can't seem to find the solution.
What I'm trying to do is to POST a message with the following base
string and Authentication header:

POST
http%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses%2Fupdate.json
oauth_consumer_key%3Dxx
%26oauth_nonce%3DNjM0MzY3MDQwNjM3Nzg1Njg2
%26oauth_signature_method%3DHMAC-SHA1
%26oauth_timestamp%3D1301082064
%26oauth_token%3D83641852-GG1Ass6MKbTV6YPhfTR0zgnv6hLchNLigW5bCXvgU
%26oauth_version%3D1.0
%26status%3DPrepare%2520to%2520launch%2520this%2520summer.

OAuth
oauth_consumer_key=xx,
oauth_nonce=NjM0MzY3MDQwNjM3Nzg1Njg2,
oauth_signature_method=HMAC-SHA1,
oauth_timestamp=1301082064,
oauth_version=1.0,
oauth_token=83641852-GG1Ass6MKbTV6YPhfTR0zgnv6hLchNLigW5bCXvgU,
oauth_signature=O1q3YiJuJVqKCfWEduOxA7XW8c4%3D

The content-type header is application/x-www-form-urlencoded.
Is there any thing wrong with my base string or the header?
I've been stuck at this point for week and tried to find the solution
to no avail.
Please help T-T


Best Regards,
KiT

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


Re: [twitter-dev] Missing images on Trademark Guidelines; T logo resource

2011-03-25 Thread Arnaud Meunier
Hey Abby,

You won't be able to find the t logo because we replaced it with the
bird logo. As stated in the page you linked to (Guidelines for use of the
Twitter trademark - http://support.twitter.com/entries/77641) you
should use the most recent version of our logos (which is a bird if you're
looking for a small icon).

Arnaud / @rno



On Fri, Mar 25, 2011 at 4:31 AM, Abby warmic...@gmail.com wrote:

 Hi,

 I am trying to access the following page:
 http://support.twitter.com/entries/77641

 The images are not appearing, and none of the other pages (eg
 http://twitter.com/about/resources/logos) have the 'T' logo. Does
 anyone know where I can find T logo resources?

 Thanks
 Abby

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


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


Re: [twitter-dev] app to block all users ending with numerals

2011-03-25 Thread M. Edward (Ed) Borasky
On Fri, 25 Mar 2011 19:58:58 +, hax0rsteve 
hax0rc...@btinternet.com wrote:



To pointlessly prolong the discussion - it being Friday :-) ...


[snip]


I guess what I'm getting at here is that any automated filtering
system ultimately
amounts to making value judgements on behalf of your users.  That 
this fails
quite often in - for example - corporate email systems gives me no 
confidence

that any similar approach is going to work for twitter, where the
diversity of
message content, users, and use cases is vastly more pronounced.

But I could - of course - be wrong :-)


Well, Twitter is on the one hand a smaller data set than Google, but on 
the other hand has different usage patterns in the real-time 
signal-processing sense. So yes, if Google has to mix human judgment and 
algorithmic judgment to optimize shareholder value, then so does 
Twitter. I claim, though, that the mere fact that one can buy the number 
one position in a Twitter Search that otherwise returns total garbage is 
very much different from buying clicks on Google, where organic search 
results at least return something that a mix of human and mechanical 
judgment has determined is relevant to the searchers' intent.


Twitter Trending Topics is broken and infested with spam. One shouldn't 
need Sulia to consume Twitter, and Twitter's own Promoted Trends and 
Tweets should not have to compete for eyeballs and clicks with spambots.


--
http://twitter.com/znmeb http://borasky-research.net

A mathematician is a device for turning coffee into theorems. -- Paul 
Erdős


--
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] Hello with OAuth connection

2011-03-25 Thread Jon
Hello,

I am having trouble with the below code... I am trying to pull a
user's timeline. Can someone please let me know where I've gone wrong?

?php
  /* Load required lib files. */
  require_once('twitteroauth/twitteroauth.php'); /* This is the
library for connecting with oAuth */
  require_once('config.php'); /* This is the file that contains
the oAuth credentials - this will be different for each app */

 //$twitterUser = 'YOUR_FRIENDS_USERNAME';
 $twitterUser = $field_twitter_url;


  /* Create a TwitterOauth object with consumer/user tokens. */
  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

  $xml = $connection-get('statuses/user_timeline.xml?screen_name=
$twitterUser');
  $xml = new SimpleXMLElement($xml);


Thanks,

Jon

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


Re: [twitter-dev] Hello with OAuth connection

2011-03-25 Thread Abraham Williams
You are not formatting the GET request correctly and TwitterOAuth
automatically parses the JSON response for you.


?php
 /* Load required lib files. */
 require_once('twitteroauth/twitteroauth.php'); /* This is the
library for connecting with oAuth */
 require_once('config.php'); /* This is the file that contains
the oAuth credentials - this will be different for each app */

//$twitterUser = 'YOUR_FRIENDS_USERNAME';
$twitterUser = $field_twitter_url;


 /* Create a TwitterOauth object with consumer/user tokens. */
 $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

 $statuses = $connection-get('statuses/user_timeline',
array('screen_name' = $twitterUser'));

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Fri, Mar 25, 2011 at 14:50, Jon j...@whotweet.net wrote:

 Hello,

 I am having trouble with the below code... I am trying to pull a
 user's timeline. Can someone please let me know where I've gone wrong?

?php
  /* Load required lib files. */
  require_once('twitteroauth/twitteroauth.php'); /* This is the
 library for connecting with oAuth */
  require_once('config.php'); /* This is the file that contains
 the oAuth credentials - this will be different for each app */

 //$twitterUser = 'YOUR_FRIENDS_USERNAME';
 $twitterUser = $field_twitter_url;


  /* Create a TwitterOauth object with consumer/user tokens. */
  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
 OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

  $xml = $connection-get('statuses/user_timeline.xml?screen_name=
 $twitterUser');
  $xml = new SimpleXMLElement($xml);


 Thanks,

 Jon

 --
 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: Hello with OAuth connection

2011-03-25 Thread Jon
Thanks Abraham,

I'm getting an error on the last line there though:

Parse error: syntax error, unexpected '=', expecting ')' in ...

On Mar 25, 3:33 pm, Abraham Williams 4bra...@gmail.com wrote:
 You are not formatting the GET request correctly and TwitterOAuth
 automatically parses the JSON response for you.

 ?php
      /* Load required lib files. */
      require_once('twitteroauth/twitteroauth.php'); /* This is the
 library for connecting with oAuth */
      require_once('config.php'); /* This is the file that contains
 the oAuth credentials - this will be different for each app */

     //$twitterUser = 'YOUR_FRIENDS_USERNAME';
     $twitterUser = $field_twitter_url;

      /* Create a TwitterOauth object with consumer/user tokens. */
      $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
 OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

      $statuses = $connection-get('statuses/user_timeline',
 array('screen_name' = $twitterUser'));

 Abraham
 -
 Abraham Williams | Hacker Advocate | abrah.am
 http://abrah.amJust launched from Answerly http://answerly.com:
 InboxQhttp://inboxq.comfor Chrome
 @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.







 On Fri, Mar 25, 2011 at 14:50, Jon j...@whotweet.net wrote:
  Hello,

  I am having trouble with the below code... I am trying to pull a
  user's timeline. Can someone please let me know where I've gone wrong?

     ?php
       /* Load required lib files. */
       require_once('twitteroauth/twitteroauth.php'); /* This is the
  library for connecting with oAuth */
       require_once('config.php'); /* This is the file that contains
  the oAuth credentials - this will be different for each app */

      //$twitterUser = 'YOUR_FRIENDS_USERNAME';
      $twitterUser = $field_twitter_url;

       /* Create a TwitterOauth object with consumer/user tokens. */
       $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
  OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

       $xml = $connection-get('statuses/user_timeline.xml?screen_name=
  $twitterUser');
       $xml = new SimpleXMLElement($xml);

  Thanks,

  Jon

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

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


Re: [twitter-dev] Re: Hello with OAuth connection

2011-03-25 Thread Abraham Williams
Oops. I had a type. The = needs a  directly after it like =

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Fri, Mar 25, 2011 at 15:44, Jon j...@whotweet.net wrote:

 Thanks Abraham,

 I'm getting an error on the last line there though:

 Parse error: syntax error, unexpected '=', expecting ')' in ...

 On Mar 25, 3:33 pm, Abraham Williams 4bra...@gmail.com wrote:
  You are not formatting the GET request correctly and TwitterOAuth
  automatically parses the JSON response for you.
 
  ?php
   /* Load required lib files. */
   require_once('twitteroauth/twitteroauth.php'); /* This is the
  library for connecting with oAuth */
   require_once('config.php'); /* This is the file that contains
  the oAuth credentials - this will be different for each app */
 
  //$twitterUser = 'YOUR_FRIENDS_USERNAME';
  $twitterUser = $field_twitter_url;
 
   /* Create a TwitterOauth object with consumer/user tokens. */
   $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
  OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
 
   $statuses = $connection-get('statuses/user_timeline',
  array('screen_name' = $twitterUser'));
 
  Abraham
  -
  Abraham Williams | Hacker Advocate | abrah.am
  http://abrah.amJust launched from Answerly http://answerly.com:
  InboxQhttp://inboxq.comfor Chrome
  @abraham https://twitter.com/abraham | github.com/abraham |
 blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
 
 
 
 
 
 
  On Fri, Mar 25, 2011 at 14:50, Jon j...@whotweet.net wrote:
   Hello,
 
   I am having trouble with the below code... I am trying to pull a
   user's timeline. Can someone please let me know where I've gone wrong?
 
  ?php
/* Load required lib files. */
require_once('twitteroauth/twitteroauth.php'); /* This is the
   library for connecting with oAuth */
require_once('config.php'); /* This is the file that contains
   the oAuth credentials - this will be different for each app */
 
   //$twitterUser = 'YOUR_FRIENDS_USERNAME';
   $twitterUser = $field_twitter_url;
 
/* Create a TwitterOauth object with consumer/user tokens. */
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
   OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
 
$xml = $connection-get('statuses/user_timeline.xml?screen_name=
   $twitterUser');
$xml = new SimpleXMLElement($xml);
 
   Thanks,
 
   Jon
 
   --
   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] Re: Hello with OAuth connection

2011-03-25 Thread Jon
Thanks... I should've posted the whole thing because now I'm getting
another error! This is what I'm trying to do (I really appreciate your
help!):

  ?php
 /* Load required lib files. */
 require_once('twitteroauth/twitteroauth.php'); /* This is the
library for connecting with oAuth */
 require_once('config.php'); /* This is the file that contains
the oAuth credentials - this will be different for each app */
//$twitterUser = 'YOUR_FRIENDS_USERNAME';
$twitterUser = $field_twitter_url;
 /* Create a TwitterOauth object with consumer/user tokens. */
 $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
 $statuses = $connection-get('statuses/user_timeline',
array('screen_name' = $twitterUser'));

 //create a time display like '1 hour ago'
 function twitterTime($time) {
   $delta = time() - $time;
   if ($delta  60) {
  return 'less than a minute ago.';
   } else if ($delta  120) {
 return 'about a minute ago.';
   } else if ($delta  (45 * 60)) {
 return floor($delta / 60) . ' minutes ago.';
   } else if ($delta  (90 * 60)) {
 return 'about an hour ago.';
   } else if ($delta  (24 * 60 * 60)) {
 return 'about ' . floor($delta / 3600) . ' hours ago.';
   } else if ($delta  (48 * 60 * 60)) {
 return '1 day ago.';
   } else {
 return floor($delta / 86400) . ' days ago.';
   }
 }
 //this is an empty string container we're going to pass the
result of our loop into
 $twitterString = ;

  foreach ($xml-status as $entry)
  {



 // there are more elements to choose from see:
http://apiwiki.twitter.com/REST+API+Documentation#Statuselement
  $status   = $entry-text;
  $profilePic   = $entry-user-profile_image_url;
  $profileName  = $entry-user-screen_name;
  $statusRealName   = $entry-user-name;
  $profileURL   = $entry-user-url;
  $statusDate   = $entry-created_at;
  $statusSource = $entry-source;
  $statusDateFormatted = twitterTime(strtotime($statusDate));
  $profileBio   = $entry-user-description;
  $statusFollowCount= $entry-user-followers_count;

  echo div class=\post hentry\\n;
  echo div class=\image-box\\n;
  echo img class=\photo\\n;
  echo a href=\http://www.twitter.com/$profileName\; target=
\_blank\img class=\userPicThumb\ src=\$profilePic\ alt=
\$profileRealName\ //a\n;
  echo /div\n;
  echo div class=\text-box\\n;
  echo div class=\meta\\n;
  echo strong class=\post-link\\n;
  echo a class=\entry-title\ href=\http://www.twitter.com/
$profileName\ target=\_blank\$profileName/a\n;
  echo /strong\n;
  echo span class=\vcard\span class=\fn\ 
$statusRealName/
span/span\n;
  echo /div\n;
  echo p class=\entry-content\$status/p\n;
  echo div class=\time\\n;
  echo span$statusDateFormatted from $statusSource/span\n;
  echo /div\n;
  echo /div\n;
  echo div class=\clear\/div\n;
  echo /span\n;
  echo /div\n;


  }
 ?

On Mar 25, 3:52 pm, Abraham Williams 4bra...@gmail.com wrote:
 Oops. I had a type. The = needs a  directly after it like =

 Abraham
 -
 Abraham Williams | Hacker Advocate | abrah.am
 http://abrah.amJust launched from Answerly http://answerly.com:
 InboxQhttp://inboxq.comfor Chrome
 @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.







 On Fri, Mar 25, 2011 at 15:44, Jon j...@whotweet.net wrote:
  Thanks Abraham,

  I'm getting an error on the last line there though:

  Parse error: syntax error, unexpected '=', expecting ')' in ...

  On Mar 25, 3:33 pm, Abraham Williams 4bra...@gmail.com wrote:
   You are not formatting the GET request correctly and TwitterOAuth
   automatically parses the JSON response for you.

   ?php
        /* Load required lib files. */
        require_once('twitteroauth/twitteroauth.php'); /* This is the
   library for connecting with oAuth */
        require_once('config.php'); /* This is the file that contains
   the oAuth credentials - this will be different for each app */

       //$twitterUser = 'YOUR_FRIENDS_USERNAME';
       $twitterUser = $field_twitter_url;

        /* Create a TwitterOauth object with consumer/user tokens. */
        $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
   OAUTH_TOKEN, OAUTH_TOKEN_SECRET);

        

[twitter-dev] Some changes and updates to the API and Tweet Button

2011-03-25 Thread Matt Harris
Hey everyone,

We've been working on a few fixes and optimisations which are making their
way into the API.

The quick list (more information further down the email):
* [Now] Tweet Button share flow has some UI improvements and now supports
mobile smart phones.
* [Now] Attempting to view a direct message which you did not send or
receive now returns a HTTP status code of 403 instead of a 401
* [Now] Attempting to view or destroy a direct message without providing a
message ID now returns a 400 status code instead of a 404
* [Now] We've added a new method /1/friendships/no_retweet_ids.{format} to
let streaming clients know whose retweets to silence in timelines.
* [Now] An alternative set of URLs have been created for lists to allow
requests by user_id or screen_name.
* [Soon] The trends endpoints on search.twitter.com are being turned off as
they exist on api.twitter.com instead
* [Soon] followers/ids and friends/ids is being updated to set the cursor to
-1 if it isn't supplied during the request. This changes the default
response format.


More information:

[Now] Tweet Button share flow has had some UI improvements which includes
support for mobile smart phones.

This change is automatic and all users of the Tweet Button will already be
receiving the new design. When a smartphone is detected, we render the
mobile view for you - meaning you don't need to do anything to have your
Tweet Button support mobile users.

[Now] Attempting to view a direct message which you did not send/receive now
returns 403 instead of 401

This change affects /1/direct_messages/show.{format}. If the current_user is
not the sender or receiver of the message, we now return a 403 (instead of a
401) with the message You may only view direct messages you've sent or
received.

[Now] Attempting to destroy a direct message without providing a message ID
now returns a 400 instead of a 404

This change affects /1/direct_messages/show.{format} and
/1/direct_messages/destroy.{format}. If the id parameter is not provided, we
now return a 400 (instead of a 404) with the error message Missing required
parameter: ID.

[Now] We've added a new method /1/friendships/no_retweet_ids.{format} to
help streaming clients know whose retweets to silence in timelines.

Userstreams and Sitestreams include all retweets created by a users
followings. The new REST API method /1/friendships/no_retweet_ids.{format}
provides developers of Streaming applications with a comma separated list of
user_ids for which the authenticating user has said they do not want to
receive retweets from.

[Now] An alternative set of URLs have been created for lists to allow
requests by user_id or screen_name.

Instead of providing a users screen_name in the URL for a list, you can now
choose to provide either their user_id or screen_name. The old routes will
continue to operate but we encourage developers to transition to the new
routes as soon as possible.

The new routes and parameter names are:
POST /1/lists/create -- name, mode, description
POST /1/lists/update -- [list identifier], mode, description
GET /1/lists -- user_id, screen_name, cursor
GET /1/lists/show -- [list identifier]
POST /1/lists/destroy -- [list identifier]
GET /1/lists/statuses -- [list identifier], since_id, max_id
GET /1/lists/memberships -- [list identifier], cursor, member_user_id,
member_screen_name
GET /1/lists/subscriptions -- [list identifier], cursor, subscriber_user_id,
subscriber_screen_name

GET /1/lists/members -- [list identifier], cursor
POST /1/lists/members/create -- [list identifier], member_user_id,
member_screen_name
POST /1/lists/members/create_all -- [list identifier], member_user_ids,
member_screen_names
POST /1/lists/members/destroy -- [list identifier], member_user_id,
member_screen_name
GET /1/lists/members/show -- [list identifier], member_user_id,
member_screen_name

GET /1/lists/subscribers -- [list identifier], cursor
POST /1/lists/subscribers/create -- [list identifier]
POST /1/lists/subscribers/destroy -- [list identifier]
GET /1/lists/subscribers/show -- [list identifier], subscriber_user_id,
subscriber_screen_name

[list identifier] represents a combination of:
  screen_name or user_id
and
  slug or list_id

If cursor is not provided it will default to -1.

[Soon] The trends endpoints on search.twitter.com are being turned off as
they exist on api.twitter.com instead

The trends API used to be hosted on search.twitter.com but was moved last
year to api.twitter.com. If you haven't transitioned your trends requests to
api.twitter.com yet you should make the change now. In the next couple of
weeks the trends API will stop being served from search.twitter.com.

[Soon] followers/ids and friends/ids is being updated to set the cursor to
-1 if it isn't supplied during the request. This changes the default
response format

For those of you who already use cursor=-1 in your 

Re: [twitter-dev] Stream API and UserLists

2011-03-25 Thread Fabien Penso
On Fri, Mar 25, 2011 at 12:53 PM, Augusto Santos augu...@gemeos.org wrote:
 Well, but streaming api really doesn't work for private profiles, for that
 you must use User Streams.

I had site streams in mind.

-- 
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: Some changes and updates to the API and Tweet Button

2011-03-25 Thread DustyReagan
Not that my opinion matters, but this one sucks:

[Soon] followers/ids and friends/ids is being updated to set the
cursor to
-1 if it isn't supplied during the request. This changes the default
response format.

Paging these results is slow. I've been avoiding it whenever possible.
I don't suppose these results will ever be able to be asynchronously
called?

-- 
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: Some changes and updates to the API and Tweet Button

2011-03-25 Thread JMChia
100% Agree

On 26 mar, 00:34, DustyReagan dustyrea...@gmail.com wrote:
 Not that my opinion matters, but this one sucks:

 [Soon] followers/ids and friends/ids is being updated to set the
 cursor to
 -1 if it isn't supplied during the request. This changes the default
 response format.

 Paging these results is slow. I've been avoiding it whenever possible.
 I don't suppose these results will ever be able to be asynchronously
 called?

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