Re: [twitter-dev] Re: /statuses/filter.json returns 401 with OAuth

2011-02-23 Thread Josiah Carlson
themattharris,

Thank you for the response.

I can only (easily) test quoting of the body after signing, and that results 
in OAuth authorization failure.

Which client library do you use? I'd like to trace though a known-working 
library to figure out where the one I am using is failing.

Thank you,
 - Josiah

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


[twitter-dev] Streaming API access level limit

2011-02-23 Thread aquajach
Hi,

Just started to play with streaming API, but get confused on how many
followers id could be tracked with one connection. In basic level of
filter,
http://dev.twitter.com/doc/post/statuses/filter says 400 followers ids
http://dev.twitter.com/pages/streaming_api_methods says 5,000
followers ids

Then I tried in local machine, could only follow around 320 ids
( receive 413 if more)  and seems multiple connections in one IP are
not allowed. Any body here know: Is there any ways to follow a few
thousands ids for each authenticated account (with oauth)? Or how to
apply for higher access level?

Any experience share or answers are appreciated!

J

-- 
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: Twitter feed for corporate website/portal

2011-02-23 Thread Richard
Peter Denton,

I have a corporate website and I would like to show Twitter feeds of
my selected keywords (Theme Based). For that I would like to use API
which get me the feeds directly..without creating any Twitter account,
just like anonymous user..my question is, will Twitter consider it as
SPAM..

Or Shall I follow

1. Get the feed or /statuses/user_timeline without authentication at a
rate up to 150 times per hour and store the tweets in a database. Then
serve tweets to your web page from the database.

Thanks for any help on this.


On Jan 12, 9:15 am, Peter Denton petermden...@gmail.com wrote:
 also, check out Twitter Widgets. You can pull in tweets based on search,
 profile, or list-- so you might be able to use that.

 Since the request is client side, rate limiting is not going to be as big of
 an issue. You could also completely customize the UI if needed, both through
 the form Twitter provides to generate the UI as well as with plain old css.

 http://twitter.com/about/resources/widgets

 If you need any help, I would be happy to help you off the list.



 On Tue, Jan 11, 2011 at 8:08 PM, Adam Green 140...@gmail.com wrote:
  You can use the /statuses/user_timeline API call instead of the feed if you
  want. This doesn't require authentication, so there is no need to create an
  app, if you use this call:
 http://dev.twitter.com/doc/get/statuses/user_timeline

  But  no matter how you get the data, rate limiting will still be the same.
  There are three ways to address rate limiting:
  1. Get the feed or /statuses/user_timeline without authentication at a rate
  up to 150 times per hour and store the tweets in a database. Then serve
  tweets to your web page from the database.
  2. Create an app that uses OAuth to get the feed or /statuses/user_timeline
  at a rate up to 350 times per hour. Store and serve from DB as in 1.
  3. Use the Streaming API to follow the user account. This uses Basic Auth,
  so no app is needed. Get the data, store and serve from DB. The streaming
  API has the advantage of delivering the data in real time with no rate
  limiting.

  The point here is that each page load should not call Twitter for data. It
  should call for your copy of the data.

  If you decide to use 2, you do need an app to do OAuth. From my experience,
  the app registration page needs a properly formatted URL, not a valid URL
  that you own. This means anything that follows the format of
 http://domain.comwill work. You can even usehttp://twitter.com.
  --
  Adam Green
  Twitter API Consultant and Trainer
 http://140dev.com
  @140dev

  On Tue, Jan 11, 2011 at 7:43 PM, TehOne ele...@gmail.com wrote:

  I have a corporate website/portal that I want to pull in tweets to,
  but i'm getting a rate limit using the http feed. So I need to explore
  other options. Do I need to use an authenticated method to get the
  tweets?

  Do I really have to register an application to do this, even though
  it's not really an application and my users will never be entering or
  changing the twitter account info. It will be a single twitter account
  that I will be pulling the feed from.

  Also, my corporate site doesn't have a public address, and registering
  an application through twitter appears to require a public url. So how
  can I get around this? Do I have to create a fake application with a
  public url, just to generate my keys?

  Thanks for any help on this.

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

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

 --
 Peter Denton
 Co-Founder, Product Marketingwww.mombo.com
 cell: (206) 427-3866
 twitter @Mombo_movies
 twitter - personal: @petermdenton

-- 
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] get user email address

2011-02-23 Thread amrish.prajapati
hello,

I would like to get all details including email address of user.
When I make http request by parameter screen_name

http://api.twitter.com/1/users/show.xml?screen_name=

I am not able to get email address of that user.

How can I able to get it ?

Please help for same.

Thanks in advance.

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


Re: [twitter-dev] get user email address

2011-02-23 Thread Taylor Singletary
Hi Amrish,

User email addresses are not returned in the Twitter API. If you would like
a user's email address, you'll have to ask them for it in your application.

Taylor

On Wed, Feb 23, 2011 at 4:09 AM, amrish.prajapati 
amrish.prajap...@gmail.com wrote:

 hello,

 I would like to get all details including email address of user.
 When I make http request by parameter screen_name

 http://api.twitter.com/1/users/show.xml?screen_name=

 I am not able to get email address of that user.

 How can I able to get it ?

 Please help for same.

 Thanks in advance.

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


-- 
Twitter 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] Sharing a link on Twitter via an email

2011-02-23 Thread Taylor Singletary
Hi there,

I think you want to pre-shorten your links before you even put them in the
email you're sending out. By pre-shortening the links, they'll already be of
an appropriate length for sharing on Twitter. When the user clicks the link
from within an email, your shortening service will unroll the link and
redirect the user to your chosen destination, parameters intact. If you're
looking for a way to embed a Tweet box or something fancier, email is really
the wrong place for that.

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


On Tue, Feb 22, 2011 at 1:22 PM, ReapMarketing lkwittenbra...@gmail.comwrote:

 I am running an email campaign and my developer is having issues with
 getting the link to share on Twitter. The links are user specific and
 contain necessary scripts on the tail end that cannot be removed for
 campaign tracking purposes so the link ends up being over the
 character limit.

 Is it possible to shorten these dynamic links from the click within
 the email to the sharing within Twitter.  I see their are some
 javascript processes available, but I am limited by the fact that I am
 operating within the email itself so I can't apply a javascript to the
 header, like I could on a webpage I work in.

 If this is not clear or you think I could explain better please let me
 know.  Otherwise if you have any ideas I'd appreciate your
 recommendation.

 Thanks,

 ReapMarketing

 --
 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] Sharing a link on Twitter via an email

2011-02-23 Thread Lukas Wittenbraker
The links within the email pull customer specific information from our
database. (customer name, ID, etc) for tracking purposes on the back
end.  This is the reason I can't pre shorten the links.  I may be up a
creek and not able to solve this issue.  I was hoping there was some
sort of script that could shorten the link, or divert it to a url that
automatically shortens and posts to twitter.

On Wed, Feb 23, 2011 at 9:32 AM, Taylor Singletary
taylorsinglet...@twitter.com wrote:
 Hi there,
 I think you want to pre-shorten your links before you even put them in the
 email you're sending out. By pre-shortening the links, they'll already be of
 an appropriate length for sharing on Twitter. When the user clicks the link
 from within an email, your shortening service will unroll the link and
 redirect the user to your chosen destination, parameters intact. If you're
 looking for a way to embed a Tweet box or something fancier, email is really
 the wrong place for that.
 @episod - Taylor Singletary - Twitter Developer Advocate

 On Tue, Feb 22, 2011 at 1:22 PM, ReapMarketing lkwittenbra...@gmail.com
 wrote:

 I am running an email campaign and my developer is having issues with
 getting the link to share on Twitter. The links are user specific and
 contain necessary scripts on the tail end that cannot be removed for
 campaign tracking purposes so the link ends up being over the
 character limit.

 Is it possible to shorten these dynamic links from the click within
 the email to the sharing within Twitter.  I see their are some
 javascript processes available, but I am limited by the fact that I am
 operating within the email itself so I can't apply a javascript to the
 header, like I could on a webpage I work in.

 If this is not clear or you think I could explain better please let me
 know.  Otherwise if you have any ideas I'd appreciate your
 recommendation.

 Thanks,

 ReapMarketing

 --
 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] Is this a bug for referencing status urls?

2011-02-23 Thread Taylor Singletary
This isn't a bug so much as a not-yet completely implemented feature.
#NewTwitter knows what to do in this situation. #OldTwitter does not. A
logged out user is still on #OldTwitter.

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


On Sat, Feb 19, 2011 at 7:06 PM, Orian Marx (@orian) or...@orianmarx.comwrote:

 It seems one can reference any valid status by id using the following
 URL formula *if* you are signed in to twitter.com:

 http://twitter.com/#!/this_can_be_anything/statuses/38671791899684864

 but this will lead to a sorry this page doesn't exist if you are not
 logged in. This seems like strange behavior to me?

 This was pointed out to me by @samichaels.

 -@orian

 --
 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] Sharing a link on Twitter via an email

2011-02-23 Thread Pete Clark
In message aanlktik9h1dvtzqk3c2t7cdu0iir191bzdtdvz6gq...@mail.gmail.com
, Lukas Wittenbraker lkwittenbra...@gmail.com writes
The links within the email pull customer specific information from our
database. (customer name, ID, etc) for tracking purposes on the back
end.  This is the reason I can't pre shorten the links.  I may be up a
creek and not able to solve this issue.  I was hoping there was some
sort of script that could shorten the link, or divert it to a url that
automatically shortens and posts to twitter.

Is this any use to you?
$tinyurl = 
file_get_contents(http://tinyurl.com/api-create.php?url=.$url);,


-- 
Pete Clark

Local sites for Local People in Spain
http://localFaces.net

-- 
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: Follower analysis without whitelisting breaks limits?

2011-02-23 Thread Taylor Singletary
Accounts with more followers will naturally take you longer to process. The
majority of users on Twitter do not have exceptionally large follower counts
(though your user base may reflect different demographics).

You can do analysis for users with low follower counts within an hour. For
users with larger counts, you accomplish what you can in the first hour,
then move on to the next.

For users with 1 million followers, you could potentially use GET
followers/ids with cursors to get 5000 ids at a time. That would take you
200 requests. If you used all 350 requests for a user in a hour on just
followers/ids, you could potentially get data for 1.75 million users.

How many cases do you have where one of your users wants to perform
up-to-date follower analysis on a user with 1M followers? When that user
comes along, queue the job and send them an email when the results are
ready.

If it's bulk analysis that you want to do -- multiple accounts analyzed
every which way against each other -- you can still do it. But it will take
you more time.

Taylor

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


On Mon, Feb 21, 2011 at 7:37 AM, Jo Seibert joseib...@gmail.com wrote:

 On 21 Feb., 06:50, Orian Marx (@orian) or...@orianmarx.com wrote:
  I don't know what the current state of this is but it looks like Site
  Streams will support unfollow events for this purpose:
 http://groups.google.com/group/twitter-development-talk/browse_thread...

 From the mentioned thread:
 I'm only seeing unfollow events where the tracked
 user is doing the unfollowing.

 So if only those unfollowings are reported by the stream, that the
 tracked user is doing himself, I am not able to watch the followers,
 that he has lost (other followers unfollow the tracked user).
 That's not sufficient for follower tracking how we do it.

 Unfortunately no statement from the twitter guys...

 Cheers.
 Jo Seibert

 
  On Feb 18, 5:11 pm, Jo jseib...@seibert-media.net wrote:
 
 
 
   It seems as if no one at twitter as an answer or a solution on this.
   That's bad...
   Or are they still thinking about it?
 
   Cheers.
   Jo Seibert
 
   On 15 Feb., 11:03, Dewald Pretorius dpr...@gmail.com wrote:
 
Thanks Tim. So the point is, we still need to rely on the follower
 ids
list API method if we want to maintain an up to date picture of an
account's followers. For larger accounts this becomes impractical
 with
a limit of 350 calls per hour.
 
On Feb 15, 4:13 am, Tim Haines tmhai...@gmail.com wrote:
 
 It sends you an event when our subject user follows someone else,
 unfollows
 someone else, or when they are followed by someone else.  It does
 not send
 an event when they are unfollowed by someone else.
 
 Tim.
 
 On Tue, Feb 15, 2011 at 3:08 AM, Dewald Pretorius 
 dpr...@gmail.com wrote:
  If I remember correctly, Site Streams sends you a transaction
 only
  when the user follows another user (adding to Following). It does
 not
  send you a transaction when someone else follows that user
 (adding to
  Followers). I don't know if this work the same in User Streams.
  Clarification by Twitter will be appreciated.
 
  On Feb 14, 12:38 pm, David Giamanco dgiama...@gmail.com wrote:
   I believe the new way to do this is to initially call the REST
 API to get
   all of the ids for the first time you process this user. Then
 you setup a
   User Stream on the user and process any requests that come in
 through
  there.
   For your uses, if you only show users the differences in
 follower counts
   then you don't need the initial call to the REST API to collect
 all ids.
  All
   you need is a count of the ids and then to initiate a User
 Stream. The
  User
   Stream will give you the differences in real time and you can
 store just
  the
   differences, instead of the entire set of ids.
 
   David Giamanco
 
  --
  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] Sharing a link on Twitter via an email

2011-02-23 Thread Lukas Wittenbraker
I don't think email clients would work well in PHP.

I could be wrong, but I don't believe that would work seeing as my
email is written in HTML.

On Wed, Feb 23, 2011 at 10:18 AM, Pete Clark
computergen...@hotcosta.com wrote:
 In message aanlktik9h1dvtzqk3c2t7cdu0iir191bzdtdvz6gq...@mail.gmail.com
, Lukas Wittenbraker lkwittenbra...@gmail.com writes
The links within the email pull customer specific information from our
database. (customer name, ID, etc) for tracking purposes on the back
end.  This is the reason I can't pre shorten the links.  I may be up a
creek and not able to solve this issue.  I was hoping there was some
sort of script that could shorten the link, or divert it to a url that
automatically shortens and posts to twitter.

 Is this any use to you?
 $tinyurl =
 file_get_contents(http://tinyurl.com/api-create.php?url=.$url);,


 --
 Pete Clark

 Local sites for Local People in Spain
 http://localFaces.net

 --
 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] Sharing a link on Twitter via an email

2011-02-23 Thread Pete Clark
In message aanlktin8lzwxooysny8-tdsyun3xrjyy3d7b_unkm...@mail.gmail.com
, Lukas Wittenbraker lkwittenbra...@gmail.com writes
I don't think email clients would work well in PHP.

I could be wrong, but I don't believe that would work seeing as my
email is written in HTML.

Just a suggestion, since most emails from a system are created in PHP,
then emailed.  

You certainly couldn't put the code I suggested in the email, but you
may have been able to put the code in a section which creates the email
- it sounded like that's what you were doing, from the information that
you were adding in to the email.

-- 
Pete Clark

Local sites for Local People in Spain
http://localFaces.net

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


Re: [twitter-dev] Re: Twitter feed for corporate website/portal

2011-02-23 Thread Peter Denton
If you want to display a feed of tweets matching a search term, I would use
the Twitter javascript widgets. Since the requests are client side, you
don't have to worry about rate limiting, and you can style the widget as you
please. Fetching tweets, storing them in a database, and serving them is
overkill.

If you would like to see an example, I can set up a page.

Regarding spam, anytime you are displaying tweets on your site, you are
doing something positive for Twitter. Spam is usually an issue when you are
broadcasting into twitter vs pulling information out.

On Wed, Feb 23, 2011 at 2:55 AM, Richard navin@gmail.com wrote:

 Peter Denton,

 I have a corporate website and I would like to show Twitter feeds of
 my selected keywords (Theme Based). For that I would like to use API
 which get me the feeds directly..without creating any Twitter account,
 just like anonymous user..my question is, will Twitter consider it as
 SPAM..

 Or Shall I follow

 1. Get the feed or /statuses/user_timeline without authentication at a
 rate up to 150 times per hour and store the tweets in a database. Then
 serve tweets to your web page from the database.

 Thanks for any help on this.


 On Jan 12, 9:15 am, Peter Denton petermden...@gmail.com wrote:
  also, check out Twitter Widgets. You can pull in tweets based on search,
  profile, or list-- so you might be able to use that.
 
  Since the request is client side, rate limiting is not going to be as big
 of
  an issue. You could also completely customize the UI if needed, both
 through
  the form Twitter provides to generate the UI as well as with plain old
 css.
 
  http://twitter.com/about/resources/widgets
 
  If you need any help, I would be happy to help you off the list.
 
 
 
  On Tue, Jan 11, 2011 at 8:08 PM, Adam Green 140...@gmail.com wrote:
   You can use the /statuses/user_timeline API call instead of the feed if
 you
   want. This doesn't require authentication, so there is no need to
 create an
   app, if you use this call:
  http://dev.twitter.com/doc/get/statuses/user_timeline
 
   But  no matter how you get the data, rate limiting will still be the
 same.
   There are three ways to address rate limiting:
   1. Get the feed or /statuses/user_timeline without authentication at a
 rate
   up to 150 times per hour and store the tweets in a database. Then serve
   tweets to your web page from the database.
   2. Create an app that uses OAuth to get the feed or
 /statuses/user_timeline
   at a rate up to 350 times per hour. Store and serve from DB as in 1.
   3. Use the Streaming API to follow the user account. This uses Basic
 Auth,
   so no app is needed. Get the data, store and serve from DB. The
 streaming
   API has the advantage of delivering the data in real time with no rate
   limiting.
 
   The point here is that each page load should not call Twitter for data.
 It
   should call for your copy of the data.
 
   If you decide to use 2, you do need an app to do OAuth. From my
 experience,
   the app registration page needs a properly formatted URL, not a valid
 URL
   that you own. This means anything that follows the format of
  http://domain.comwill work. You can even usehttp://twitter.com.
   --
   Adam Green
   Twitter API Consultant and Trainer
  http://140dev.com
   @140dev
 
   On Tue, Jan 11, 2011 at 7:43 PM, TehOne ele...@gmail.com wrote:
 
   I have a corporate website/portal that I want to pull in tweets to,
   but i'm getting a rate limit using the http feed. So I need to explore
   other options. Do I need to use an authenticated method to get the
   tweets?
 
   Do I really have to register an application to do this, even though
   it's not really an application and my users will never be entering or
   changing the twitter account info. It will be a single twitter account
   that I will be pulling the feed from.
 
   Also, my corporate site doesn't have a public address, and registering
   an application through twitter appears to require a public url. So how
   can I get around this? Do I have to create a fake application with a
   public url, just to generate my keys?
 
   Thanks for any help on this.
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk
 
--
   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
 
  --
  Peter Denton
  Co-Founder, Product Marketingwww.mombo.com
  cell: (206) 427-3866
  twitter @Mombo_movies
  twitter - personal: @petermdenton

 --
 Twitter developer documentation and 

Re: [twitter-dev] Search across multiple accounts

2011-02-23 Thread yaemog Dodigo
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


Re: [twitter-dev] Search across multiple accounts

2011-02-23 Thread Taylor Singletary
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/thread/36b095f97879ff0a?hl=en_US#

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


Re: [twitter-dev] Re: Search across multiple accounts

2011-02-23 Thread Enrico Miglino
Hi,

The thread regard my question, and the suggested solution works fine. I'm
using now in my application and has no problems.

Enrico

On 23 February 2011 19:39, Justin justin.realw...@gmail.com wrote:

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


Re: [twitter-dev] Re: /statuses/filter.json returns 401 with OAuth

2011-02-23 Thread Josiah Carlson
Looking at 3rd party libraries, I realized how ... nasty their auth flows 
were, so I walked through the pieces of: 
http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/
 and 
created my own simple OAuth function with the proper encodings, escapes, 
etc. That got me to the point of being able to successfully make a call to 
verify_credentials.

I then found that I could stream using a single word, or sequences of words 
without spaces. It's then I discovered, as you suggested, that the body of 
the post must be using the OAuth escape method for parameters as per RFC 
3986, as opposed to RFC 2396, which I had been using for the body (and which 
was provided by my language libraries).

So frustrating, but I got it working. Thank you for the help.

 - Josiah

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


Re: [twitter-dev] Re: /statuses/filter.json returns 401 with OAuth

2011-02-23 Thread Matt Harris
Hey Josiah,

Glad you got it working.
I have an OAuth library I put together which you might want to look at. It's
in PHP and shows the OAuth signing process. It also supports multipart
uploads and the Streaming API. You can find it on github:
https://github.com/themattharris/tmhOAuth

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Wed, Feb 23, 2011 at 12:15 PM, Josiah Carlson
josiah.carl...@gmail.comwrote:

 Looking at 3rd party libraries, I realized how ... nasty their auth flows
 were, so I walked through the pieces of:
 http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/
  and
 created my own simple OAuth function with the proper encodings, escapes,
 etc. That got me to the point of being able to successfully make a call to
 verify_credentials.

 I then found that I could stream using a single word, or sequences of words
 without spaces. It's then I discovered, as you suggested, that the body of
 the post must be using the OAuth escape method for parameters as per RFC
 3986, as opposed to RFC 2396, which I had been using for the body (and which
 was provided by my language libraries).

 So frustrating, but I got it working. Thank you for the help.

  - Josiah

  --
 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] twaud.io api: anyone manage to get it working?

2011-02-23 Thread Matt Harris
Hi Seth,

Twaud.io isn't part of the Twitter API but i'll try and help you anyway.

The first thing to note is the Headers should be of the
format X-Verify-Credentials-Authorization. The
x_verify_credentials_authorization is mentioned because Twaud.io supports
the OAuth Echo parameters in the header or POST body.

Looking at your sample X-Verify-Credentials-Authorization I notice you are
sending the realm as http://api.twitter.com . What i'm wondering is whether
you are sending the X-Auth-Service-Provider as
https://api.twitter.com/1/account/verify_credentials.json . According to the
twaud.io API documentation the X-Auth-Service-Provider must be:
https://api.twitter.com/1/account/verify_credentials.json

If you change the protocol to http, or use .xml instead of .json, the
request will not succeed. Double check that the verify_credentials request
fits that pattern. The other thing to ensure is the request to
verify_credentials isn't being sent to the Twitter API servers by your
application. If the request is being sent, the OAuth Echo provider cannot
use it.

Check those things out and let us know how it goes,

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Mon, Feb 21, 2011 at 2:57 AM, Seth seth.delack...@gmail.com wrote:

 I've tried discussing with the author of twaud.io, but he says he
 doesn't really have time to look.  I've tried sending even a minimal
 test iPhone app Xcode project to twitter api support, but a week later
 no response.

 Our app is xAuth authorized, the app sends the username and password
 and gets a token, we produce all the intended headers and post up to
 twaud.io's api as described at twaud.io/api and yet just get the below
 totally opaque response:

 response: HTTP/1.1 403 Forbidden / Not Authorized

 Made sure that the twitter account I used for testing has given both
 our app and twaud.io read/write authorization.

 Here's a sample of what I am putting in X-Verify-Credentials-
 Authorization (which we've tried naming that way and also, per the
 twaud.io api page, x_verify_credentials_authorization).  We've also
 tried sending the value as either post values or as a request header:


 OAuth realm=http%3A%2F%2Fapi.twitter.com,
 oauth_consumer_key=ofEzSNkKNMzu4ANhII5g,
 oauth_token=123520286-U3RXmbgPPF0i4lDkVBdSCx9MEJhHMu8KvzAyosXI,
 oauth_signature_method=HMAC-SHA1,
 oauth_signature=9Z5VMPeL4QoGHCtpiMcUxF%2FPiXI%3D,
 oauth_timestamp=1297141216,
 oauth_nonce=A20C6AB4-AAF9-46A5-B1F0-574A5BD3B538,
 oauth_version=1.0

 I would be more than happy to send a minimal Xcode project to anyone
 who is willing to try running it in the iOS simulator.

 --
 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] Http Response code handling

2011-02-23 Thread Matt Harris
Hi Umashankar,

If you receive a 420 error you should follow the back off strategy I
mentioned to Zaver. We don't discuss how Seach handles it's rate limiting,
just approaches on what to do if you fine yourself rate limited.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Feb 22, 2011 at 11:19 PM, Umashankar Das umashankar...@gmail.comwrote:

 Hi Matt,
  Do the failed requests count [one's with 420 response] into the tally
 for the next hour?

 Regards
 Umashankar Das

 On Wed, Feb 23, 2011 at 12:41 PM, Matt Harris 
 thematthar...@twitter.comwrote:

 Hi Zaver,

 A 420 response from the Search API means you have been rate limited. What
 you should do is stop making requests and then try again 30 seconds later.
 If you still get 420, wait 1 minute. Continue doubling the time you wait
 until the 420 stops and you get results. Then gradually increase your
 request rate again.

 For extra back off magic add a little jitter (e.g. a random number of
 seconds between say 0 and 30) to the doubled wait times.

 Hope that helps,
 @themattharris
 Developer Advocate, Twitter
 http://twitter.com/themattharris



 On Tue, Feb 22, 2011 at 12:29 AM, zaver zave...@hotmail.com wrote:

 Hello,

 I am using the search api with multiple keywords (120 keywords) using
 curl (curl_multi_init etc.), querying the api every 5 mins and i need
 some help on how to handle some of the response codes.
 Specifically:

 420 - i get this error on some of my keywords not all. Does this mean
 that i am rate limited and should wait for the amount of time in the
 Retry-after part in general or only for these keywords? Currently I do
 wait for the amount of time it specifies for the whole keyword set. Is
 that right?

 Haven't come across these yet although i would like to have some
 handling for these.

 502: Bad Gateway: Twitter is down or being upgraded.
 503: Service Unavailable: The Twitter servers are up, but overloaded
 with requests. Try again later.

 Any help is greatly appreciated. Thanks

 Zaver

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


Re: [twitter-dev] Streaming API access level limit

2011-02-23 Thread Matt Harris
Hi J,

The authoritative information for the Streaming API is under the /pages/
path and you should use that for guidance.

The number of connections you are allowed to the Streaming API is described
in the Streaming API Concepts document:
http://dev.twitter.com/pages/streaming_api_concepts

It says:
Each account may create only one standing connection to the Streaming API.
Subsequent connections from the same account may cause previously
established connections to be disconnected. Excessive connection attempts,
regardless of success, will result in an automatic ban of the client's IP
address. Continually failing connections will result in your IP address
being blacklisted from all Twitter access.

When tracking users using the Streaming API the default level allows 5000
follower IDs to be tracked. Make sure the user_ids are specified with the
follow parameter and not the track parameter.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Feb 22, 2011 at 11:22 PM, aquajach aquaj...@gmail.com wrote:

 Hi,

 Just started to play with streaming API, but get confused on how many
 followers id could be tracked with one connection. In basic level of
 filter,
 http://dev.twitter.com/doc/post/statuses/filter says 400 followers ids
 http://dev.twitter.com/pages/streaming_api_methods says 5,000
 followers ids

 Then I tried in local machine, could only follow around 320 ids
 ( receive 413 if more)  and seems multiple connections in one IP are
 not allowed. Any body here know: Is there any ways to follow a few
 thousands ids for each authenticated account (with oauth)? Or how to
 apply for higher access level?

 Any experience share or answers are appreciated!

 J

 --
 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] OAuth Login Issues

2011-02-23 Thread courtstarr
We launched invites today on http://eightbit.me using the @eightbit
account.

Everything during private beta and most of the day was working great
but now people are getting the following when people try to log in
using Twitter.

Woah there!
This page is no longer valid. It looks like someone already used the
token information you provided. Please return to the site that sent
you to this page and try again … it was probably an honest mistake.

This is coming from your servers. Is this a common error? Are we doing
something incorrect or is this a Twitter issue?

Thanks,
Courtney

-- 
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] OAuth Login Issues

2011-02-23 Thread Taylor Singletary
Hey there,

This happens now  then right now, even when you're doing everything correct
-- it should be happening less frequently in the near future. Often a simple
refresh of the authorize or authenticate page will correct the issue.

If you're seeing the issue consistently and without fail, verify that you're
requesting the request token fairly close to the time you pass the user on
to the authorize or authenticate steps. If the steps are generally performed
closely together and the problem is still endemic (rather than just
sporadic) please let us know.

Thanks!
Taylor

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


On Wed, Feb 23, 2011 at 2:26 PM, courtstarr courtst...@gmail.com wrote:

 We launched invites today on http://eightbit.me using the @eightbit
 account.

 Everything during private beta and most of the day was working great
 but now people are getting the following when people try to log in
 using Twitter.

 Woah there!
 This page is no longer valid. It looks like someone already used the
 token information you provided. Please return to the site that sent
 you to this page and try again … it was probably an honest mistake.

 This is coming from your servers. Is this a common error? Are we doing
 something incorrect or is this a Twitter issue?

 Thanks,
 Courtney

 --
 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: Sharing a link on Twitter via an email

2011-02-23 Thread Jonathan Strauss
Hey Lukas,

This is pretty much the exact scenario for which we designed the
awe.sm /share endpoint documented here: 
https://github.com/awesm/awesm-dev-tools/wiki/Create-API#share

awe.sm creates Twitter-friendly tracking links. But unlike
conventional URL shorteners, we create a unique tracking link for each
share action (in your case per email recipient who clicks the tweet
call-to-action) and allow you to encode metadata in that link that
doesn't necessarily need to go into the destination URL string (but
can also be dynamically inserted if you like, see
https://github.com/awesm/awesm-dev-tools/wiki/Redirection-Patterns).

For example, the following GET call loads the tweet button share
interface with a unique link tagged with the awe.sm campaign value of
CAMPAIGN and the awe.sm notes value of RECIPIENT each time you click
it:
http://api.awe.sm/url/share?v=2key=5c8b1a212434c2153c2f2c2f2c765a36140add243bf6eae876345f8fd11045d9channel=twittertool=mKU7uNurl=http://totally.awe.smcampaign=CAMPAIGNnotes=RECIPIENTdestination=http://twitter.com/share?url=AWESM_TARGET%26text=This+link+was+created+dynamically%26via=awesm

If you're interested in chatting more about the specifics of your use-
case and how we might be able to help, drop me a line to jonathan [at]
awe.sm.

Best,
-jonathan

On Feb 23, 7:37 am, Lukas Wittenbraker lkwittenbra...@gmail.com
wrote:
 The links within the email pull customer specific information from our
 database. (customer name, ID, etc) for tracking purposes on the back
 end.  This is the reason I can't pre shorten the links.  I may be up a
 creek and not able to solve this issue.  I was hoping there was some
 sort of script that could shorten the link, or divert it to a url that
 automatically shortens and posts to twitter.

 On Wed, Feb 23, 2011 at 9:32 AM, Taylor Singletary







 taylorsinglet...@twitter.com wrote:
  Hi there,
  I think you want to pre-shorten your links before you even put them in the
  email you're sending out. By pre-shortening the links, they'll already be of
  an appropriate length for sharing on Twitter. When the user clicks the link
  from within an email, your shortening service will unroll the link and
  redirect the user to your chosen destination, parameters intact. If you're
  looking for a way to embed a Tweet box or something fancier, email is really
  the wrong place for that.
  @episod - Taylor Singletary - Twitter Developer Advocate

  On Tue, Feb 22, 2011 at 1:22 PM, ReapMarketing lkwittenbra...@gmail.com
  wrote:

  I am running an email campaign and my developer is having issues with
  getting the link to share on Twitter. The links are user specific and
  contain necessary scripts on the tail end that cannot be removed for
  campaign tracking purposes so the link ends up being over the
  character limit.

  Is it possible to shorten these dynamic links from the click within
  the email to the sharing within Twitter.  I see their are some
  javascript processes available, but I am limited by the fact that I am
  operating within the email itself so I can't apply a javascript to the
  header, like I could on a webpage I work in.

  If this is not clear or you think I could explain better please let me
  know.  Otherwise if you have any ideas I'd appreciate your
  recommendation.

  Thanks,

  ReapMarketing

  --
  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: custom share button and following - works for one twitter user but not for another

2011-02-23 Thread Jonathan Strauss
Are you already following the second Twitter account (i.e.
schoolsvhunger) from your logged in Twitter user? The suggestions will
only show you up to 2 Twitter users you don't currently follow, which
is why you have the option to specify up to 7 (1 via and up to 6
related).

-jonathan

On Feb 22, 8:28 am, KennyB kenny...@gmail.com wrote:
 Hi,

 When I share my page with the related url param as
 'schoolsserve:Schools Fight Hunger', I am asked if I want to follow
 schoolsserve after sharing the suggested text.

 When I only change the related url param to be 'schoolsvhunger:Schools
 Fight Hunger' (no other changes), I am not asked if I want to follow
 schoolsvhunger after sharing the suggested text.

 The code I'm using is below; shown with the 'non-working'
 schoolsvhunger related param in play.

 Any ideas why this wouldn't work? Would it be some kind of privacy
 setting that schoolsvhunger has set?

 div id=custom-tweet-button class=socialicon
         ?php
                 $text = JText::_('SCHOOL PROFILE HEADER TWITTER TEXT');
                 $related = 'schoolsvhunger:Schools Fight Hunger';
 //              $related = 'schoolsserve:Schools Fight Hunger';
                 $twitterurl = 
 'http://twitter.com/share?url='.rawurlencode($url).
                         'related='.rawurlencode($related).
                         'text='.rawurlencode($text);
         ?
         a href=?php echo $twitterurl; ? target=_blank
 rel=nofollowTweet/a
 /div

 The a tag generated by the above is:

 a rel=nofollow target=_blank href=http://twitter.com/share?
 url=http%3A%2F%2Fdev.schoolsfighthunger.org%2Fschool%2F2000463-
 albertville-elementary.htmlamp;related=schoolsvhunger%3ASchools
 %20Fight%20Hungeramp;text=My%20school%20joined%20%40schoolsvhunger
 %20to%20%23fighthunger%21%20Make%20sure%20your%20school%20is%20taking
 %20part-join%20the%20fight%21Tweet/a

 Any help greatly appreciated.

 Thanks
 Kenn

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