[twitter-dev] Twitter Button Counter Not Incrementing

2011-07-02 Thread Sam
Hello all,
I was wondering if someone could explain why the counter on this page
does not increase:

http://www.stubhub.com/promotions/scratch/content/tweet.html

Thanks for the help,
Sam

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


[twitter-dev] How many tweets per day come through the Twitter firehose?

2011-06-10 Thread Sam Jordan
Hi,

Just curious if anyone knows how many tweets per day come through the
Twitter firehose on a daily basis, average?

Thanks

Sam

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


[twitter-dev] Question about rate limiting

2011-05-23 Thread Sam Oldak
I am developing an app that allows users to login with twitter.  I'm a bit 
confused about the rate limiting applied to verifying credentials of users. 
 Is it 350/hour for the application, or per user that uses the application? 
 For example, could 1000 people signin within an hour, or am I limited to 
350 per hour?

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


[twitter-dev] Re: Tweet Button Display Issue

2011-04-12 Thread Sam Hughes
Hey Matt,

Thanks for getting back to me, I have attached the HTML that was
generated from the Twitter resources page:

a href=http://twitter.com/share; class=twitter-share-button data-
url=http://www.mycleveragency.com; data-text=I just found the first
hidden easter egg! data-count=none data-via=sammyhTweet/
ascript type=text/javascript src=http://platform.twitter.com/
widgets.js/script

I did find a work around but it isn't ideal as it directs users to a
new Twitter window, It'd be so much better if I could get it to work
with the actual tweet button.

Cheers,

Sam

On Apr 11, 8:37 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey Sam,

 Can you share the HTML you are using to markup the Tweet Button so we can
 see what the issue could be.

 Thanks,
 @themattharris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

 On Mon, Apr 11, 2011 at 3:37 AM, Sam Hughes samvhug...@googlemail.comwrote:







  Hey guys,

  I am trying to customize some tweet buttons so that when clicked on
  the pop-up opens and the tweet text is something I have wrote. I know
  that the tweet button has this functionality, but when I try to embed
  the code onto any site the text reverts so that it tweets the page
  title that the Tweet button sits on. Anyone know why this isn't
  working? or know any good work arounds?

  Cheers,

  Sam

  --
  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: Better support for Developers

2010-07-28 Thread Sam
What I have found is that 99% of the topics on here relate to Oauth...
if you have a question about a different aspect of the api it is less
likely that you will get a reply.

The wiki documentation is fairly good and code examples are given, but
if you are trying to do something that is not covered in the wiki
there is often limited info available. Similarly if you want to see
what api features are planned for the future, and when, it is
difficult to find reliable info.

I haven't tried contacting twitter tech support, so can't comment on
that.

On the whole the api is great!!! and the wiki gave me enough info to
easily create most features of my app. As Chi-Shun Chen said, it is
partly down to your skills as a developer to find solutions to
problems and get your app working - on the other hand, better
documentation and tutorials and more variety of api features will
always make it easier for us...


[twitter-dev] Re: Search within followers / following

2010-07-21 Thread Sam
does anyone know of a way to search just among the people you are
following?


[twitter-dev] I just wondering how does tweetmeme do that, make category from urls or tweets?

2010-07-18 Thread Sam
i am using C# and i konw how to get urls from tweets via streaming
api, but i don't know how to make category. i searched a couple of
days, but didn't get any answer.


[twitter-dev] Search within followers / following

2010-07-08 Thread Sam
It would be great if there was a way to search just within users you
are following, or those who are following you.

Currently the only way to do this is to get the latest 3200 tweets
from your friends and then search that result for your keyword. There
are 2 main drawbacks for this method:

i) You have to make 16 paged api requests to get the 3200 tweets, and
then process that data into arrays, etc. This is very slow, and not a
conservative way of using the api
ii) For less common search terms often no results will be returned as
there are no matches in the last 3200 tweets.


It seems that this should be possible as you can currently use search
srtings like:
from:user1+OR+from:user2+OR+from:user3

however, this method is restricted to a few users, as there is a limit
of the number of characters you can have in the URL string.

How about having extra search paramaters like:
?q=keyword+following:user1 (returns all tweets mentioning 'keyword'
from users that 'user1' is following)

or

?q=keyword+followers:user1 (returns all tweets mentioning 'keyword'
from users that are following 'user1')



I had thought of another way around this for my app, which is:

Make an api call for all tweets from my timeline every 3 minutes
(using cron job)
Cache all new tweets in mysql database
Power my own searches against the twitter data in my own database

Drawbacks of this method would be:

i) have to store a lot of data in the db (and find a way of
automatically deleting tweets over a certain age)
ii) have to completely re-design my app from scratch


Has anyone else come up against this problem? I haven't been able to
find much mention about it on the development talk?
Is this a planned feature for the future?


[twitter-dev] Re: abrahams twitteroauth issue

2010-06-25 Thread Sam Wierema
You should not increment your cursor, because Twitter returns a cursor
for you. And if cursor is 0, it means that there are no more pages (-1
+ 1 = 0).

Check your $followers variable that you got from the first call. It
should be called something like next_cursor.

On Jun 25, 2:26 pm, Rick rickstuivenb...@gmail.com wrote:
 Howdy!

 I am currently making my application OAuth compatible from basic auth,
 currently I have a issue I need to get resolved in order to switch to
 the new OAuth method.

 I am getting my followers from: $oauth-get('statuses/followers'); but
 that only gives me the last 100 followers, I trought it would be easy
 to do it this way:

 $cursor = -1;
 $followers = $oauth-get('statuses/followers', array('cursor' =
 $cursor));
 // Other code here..

 $cursor++;
 $followers = $oauth-get('statuses/followers', array('cursor' =
 $cursor));

 Is it possible to get all my users, because this code does not work
 and my inspiration was wrong.

 Hopefully you can help me.

 Regards,

 Rick


[twitter-dev] Re: abrahams twitteroauth issue

2010-06-25 Thread Sam Wierema
Yes, it's very possible. Haven't tested it, but it should be something
like this:

$cursor = -1;
while( $cursor !== 0 ) {
$info = $oauth-get( 'statuses/followers', array( 'cursor' =
$cursor ) );
if( $oauth-http_code === 200  !isset( $info-error ) ) {
// Count or whatever here
$cursor = $info-next_cursor;
}
}

If you just want to count all of your followers, why not do users/
show? That contains a followers_count variable in it.

On Jun 25, 4:18 pm, Rick rickstuivenb...@gmail.com wrote:
 Thank you for your reply.

 I don't use next_cursor or whatsoever. I just use the $followers
 variable to use count it with $totaal = count($followers); so I can
 use it in my code. The cursor code I posted before is the only thing I
 use to try and get information.

 Is it even possible to get all the followers with the abrahams twitter
 library?

 On 25 jun, 15:11, Sam Wierema samwier...@gmail.com wrote:



  You should not increment your cursor, because Twitter returns a cursor
  for you. And if cursor is 0, it means that there are no more pages (-1
  + 1 = 0).

  Check your $followers variable that you got from the first call. It
  should be called something like next_cursor.

  On Jun 25, 2:26 pm, Rick rickstuivenb...@gmail.com wrote:

   Howdy!

   I am currently making my application OAuth compatible from basic auth,
   currently I have a issue I need to get resolved in order to switch to
   the new OAuth method.

   I am getting my followers from: $oauth-get('statuses/followers'); but
   that only gives me the last 100 followers, I trought it would be easy
   to do it this way:

   $cursor = -1;
   $followers = $oauth-get('statuses/followers', array('cursor' =
   $cursor));
   // Other code here..

   $cursor++;
   $followers = $oauth-get('statuses/followers', array('cursor' =
   $cursor));

   Is it possible to get all my users, because this code does not work
   and my inspiration was wrong.

   Hopefully you can help me.

   Regards,

   Rick


[twitter-dev] Re: Cannot update status with Twitter PHP Library

2010-06-25 Thread Sam Wierema
If you're using Abraham's library you should drop the .json and the
first slash in the call:
$return = $twitter-post( 'statuses/update', array( 'status' =
'TEST' ) );

If you're using EpiTwitter (not Abraham's library) you should probably
use something like this (according to this:
http://wiki.github.com/jmathai/twitter-async/#methodnames):
$return = $twitter-post_statusesUpdate( array( 'status' =
'TEST' ) );

On Jun 25, 8:14 pm, Straube gutostra...@gmail.com wrote:
 Hi,

 I'm trying to update an account status with the Abraham's PHP Library,
 but I'm getting the following exception message:

 Bad request / Your browser sent a request that this server could not
 understand.

 I've already authorized my application to connect with my test account
 and I saved the authentication data in constants. I'm using the code
 bellow to do the update:

 try {
   $twitter = new EpiTwitter(Config::TWITTER_APP_TOKEN,
 Config::TWITTER_APP_SECRET, Config::TWITTER_OAUTH_TOKEN,
 Config::TWITTER_OAUTH_SECRET);
   $return = $twitter-post('/statuses/update.json', array ( 'status'
 = 'TEST' ));
   echo $return-response;} catch (Exception $e) {

   echo $e-getMessage();

 }

 API methods that uses 'get' instead of 'post' (e.g. account/
 verify_credentials) works without problem.

 Thanks in advance.

 Straube


[twitter-dev] Re: Problem with adding favorites (api.twitter.com/1)

2010-06-18 Thread Sam Street
Perfect! Thanks :)

On Jun 4, 5:17 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 We might have a documentation bug here that we'll get fixed soon.

 Try:

 http://api.twitter.com/1/favorites/create/15256536658.xmlor .json

 Taylor Singletary
 Developer Advocate, Twitterhttp://twitter.com/episod



 On Fri, Jun 4, 2010 at 9:01 AM, Sam Street sam...@gmail.com wrote:
  Im having difficulties adding favorites to Twitter.

  I am using the following URL:

 http://api.twitter.com/1/favorites/15256536658/create.xml

 http://api.twitter.com/1/favorites/15256536658/create.json

  Neither seem to work via my OAuth App. I get the following response:

  string(70) {request:/1/favorites/15256536658/
  create.json,error:Not found}

  Is this a known bug? Should I be usinghttp://twitter.cominstead of
  api.twitter.com/1 ?

  -Sam


[twitter-dev] Re: Geo-caching Without Lat/Long

2010-06-11 Thread Sam Ramji
We've built a free tool with similar capabilities but including OAuth
authentication and contextual links to the full Twitter API, and no
login required in order to save API calls.

You can see the same lat/long query here:

http://app.apigee.com/console/5ffbfabd-04c0-4802-a71d-542c23a1ec0e/rendersnapshotview

Hope this is helpful - we are seeking feedback on the tool if you have
any.

Thanks,

Sam

On Jun 11, 9:48 am, Bryan bryan.p...@gmail.com wrote:
 Hey Abraham. The above example is dated. My point is appending
 max_result=1 onto any verified result results in a 404:

 http://hurl.it/hurls/08a6b684b494cab6138754d7b7470d9895968d59/88bbdc8...

 is okay, but with max_results=1:

 http://hurl.it/hurls/df8773b96e453cfd5426123c3ba4354fc2d96769/6d952ea...

 returns a 404

 Thanks for the link; that's a very useful tool!

 On Jun 11, 11:40 am, Abraham Williams 4bra...@gmail.com wrote:



  The lat/long you are passing to the API are in the Yellow Sea so Twitter is
  404ing as it does not have any places near there.

 http://hurl.it/hurls/db27e3e9bce56f7f9a8209b935af6a25d5fa5677/2775b26...

  Abraham
  -
  Abraham Williams | Hacker Advocate |http://abrah.am
  @abraham |http://projects.abrah.am|http://blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.

  On Fri, Jun 11, 2010 at 07:28, Bryan bryan.p...@gmail.com wrote:
   Matt--

   Okay thanks for the reply. I'm building a news aggregator so the goal
   was to enter the location manually. Still, I'm having trouble with the
   geo-coding method. I'm using Abraham's php library and I do the
   following:

          $location = $connection-get('geo/reverse_geocode', array('lat' =
   '37.75' , 'long' = '122.68'));
          echo $connection-http_code;

   Which returns 404. $location-id is empty. Any thoughts as to what I'm
   doing wrong?

   On Jun 11, 9:21 am, Matt Harris thematthar...@twitter.com wrote:
Hey Bryan,

Status updates only accept lat/long or place_id. There isn't a way of
providing plain text locations for these fields. If you wish to display 
a
textual representation of where someone is on your app you would need to
carry out a reverse geocode first.

I don't know the method you are using to obtain the location but
   generally
we see developers use the lat/long returned by the browser or device.

One thing that might be useful to know is that we perform a reverse
   lookup
on the lat/long when we display the tweet, converting it to some textual
description like SoMa, San Francisco, or from here as appropriate.

Hope that answers your question,
Matt

On Fri, Jun 11, 2010 at 6:41 AM, Bryan bryan.p...@gmail.com wrote:
 Hey everyone, is there a way to geo-tweet with the API without knowing
 the Lat/Long? In other words, can I say San Francisco, CA or search
 for valid place_id's with this name? I'm trying to make my user
 interface as user-friendly as possible, and asking for lat/long for my
 userbase won't work. I also want to rely on as few as API's as
 possible, so I'd prefer not to run my name through Google's Map API
 and then through the reverse geocode API on twitters. Thanks.

--

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


[twitter-dev] Problem with adding favorites (api.twitter.com/1)

2010-06-04 Thread Sam Street
Im having difficulties adding favorites to Twitter.

I am using the following URL:

http://api.twitter.com/1/favorites/15256536658/create.xml

http://api.twitter.com/1/favorites/15256536658/create.json

Neither seem to work via my OAuth App. I get the following response:

string(70) {request:/1/favorites/15256536658/
create.json,error:Not found}


Is this a known bug? Should I be using http://twitter.com instead of
api.twitter.com/1 ?

-Sam


[twitter-dev] Can't send options to twitter.lib.php functions

2010-01-24 Thread Sam
Hello,

I'm using twitter.lib.php class which is great. However, I can't seem
to pass on options to the functions that I'm calling. In this case,
I'd like to change the count of the friends' statuses to 50. But it
still is showing me only 20.

What am I missing? Any help greatly appreciated.

Thanks!


// require the twitter library
require twitter.lib.php;

// your twitter username and password
$username = username;
$password = passwor;

// initialize the twitter class
$twitter = new Twitter($username, $password);

// fetch your @mentions in json
$statuses = $twitter-getFriendsTimeline(array('count'=50), 'rss');

// print rss

echo $statuses;


[twitter-dev] Re: TwitVid upload function

2010-01-19 Thread Sam Street
I don't understand that code. I'm a PHP/MySQL kinda guy

... but if you're having problems with TwitVid - just use Twicli's
API. http://twic.li/api - support for photos/videos/audio/sets

I don't see the point in separating content over various different
sites. The internet is enough of a mess already :)

-Sam

On Jan 19, 1:42 pm, John Meyer john.l.me...@gmail.com wrote:
 I've changed it back to where the media file goes last and I still get
 that error so if anybody has an idea of what I'm doing wrong there I
 would appreciate it.

 On 1/19/2010 4:54 AM, Rich wrote:

  I've discovered the same thing, it seems TwitVid is doing some weird
  manual parsing of variables and/or HTTP headers and everything needs
  to be exactly spaced as they would expect it.

  I had to tweak almost everything that works for other services to get
  it to work with TwitVid.

  On Jan 18, 9:03 pm, John Meyerjohn.l.me...@gmail.com  wrote:
  I'm part of the TwitterVB library project. Part of my effort is to write
  an object that encapsulates a connection to TwitVid.com  I'm currently
  testing the upload function but am having problems:

        Upload = String.Empty

                If DateTime.Now  m_dtTL Then
                    Me.Authenticate()
                End If
                Try
                    Dim bMovieFile() As Byte =
  System.IO.File.ReadAllBytes(p_strFileName)
                    Dim strBoundary As String = Guid.NewGuid.ToString()
                    Dim strHeader As String = String.Format(--{0},
  strBoundary)
                    Dim strFooter As String = String.Format(--{0}--,
  strBoundary)
                    Dim rqUpload As HttpWebRequest =
  DirectCast(WebRequest.Create(TWITVID_UPLOAD_URL), HttpWebRequest)
                    With rqUpload
                        .PreAuthenticate = True
                        .AllowWriteStreamBuffering = True
                        .ContentType = String.Format(multipart/form-data;
  boundary={0}, strBoundary)
                        .Method = POST
                    End With
                    Dim strFileType As String = application/octet-stream

                    Dim strFileHeader As String =
  [String].Format(Content-Disposition: file; name={0};
  filename={1}, media, p_strFileName)
                    Dim strFileData As String =
  Encoding.GetEncoding(iso-8859-1).GetString(bMovieFile)
                    Dim strContents As New StringBuilder()
                    With strContents
                        .AppendLine(strHeader)

                        .AppendLine(strFileHeader)
                        .AppendLine([String].Format(Content-Type: {0},
  strFileType))
                        .AppendLine()
                        .AppendLine(strFileData)
                        .AppendLine(strHeader)
                        .AppendLine([String].Format(Content-Disposition:
  form-data; name={0}, token))
                        .AppendLine()
                        .AppendLine(m_strOauth)
                        .AppendLine(strHeader)
                        .AppendLine([String].Format(Content-Disposition:
  form-data; name={0}, message))
                        .AppendLine()
                        .AppendLine(p_strMessage)

                        .AppendLine(strFooter)
                    End With

                    Dim bContents() As Byte =
  Encoding.GetEncoding(iso-8859-1).GetBytes(strContents.ToString())
                    rqUpload.ContentLength = bContents.Length

                    Dim rqStreamFile As Stream = rqUpload.GetRequestStream()
                    rqStreamFile.Write(bContents, 0, bContents.Length)
                    Dim rspFileUpload As HttpWebResponse =
  DirectCast(rqUpload.GetResponse, HttpWebResponse)
                    Dim rdrResponse As New
  StreamReader(rspFileUpload.GetResponseStream())
                    Dim strResponse As String = rdrResponse.ReadToEnd()
                    Dim xResponse As New XmlDocument
                    xResponse.LoadXml(strResponse)
                    Dim xnRSP As XmlNode = 
  xResponse.SelectSingleNode(//rsp)
                    If xnRSP.Attributes(stat).Value = ok Then
                        Upload = 
  xnRSP.SelectSingleNode(//mediaurl).InnerText
                    Else
                        Upload = strResponse

                    End If

                Catch ex As Exception
                    MsgBox(ex.Message)
                End Try
                Return Upload

            End Function

  Calling this function gives me this error:

  ?xml version=1.0 encoding=UTF-8?
  rsp stat=fail

  err code=1002 msg=No file specified to upload /
  /rsp

  if anybody has any ideas I'd appreciate it (note I've put the file on
  the front and in the back. Both return the same error).


[twitter-dev] Re: To find out ids directly that both in (follower/ids) and ( friends/ids ) ?

2009-10-28 Thread Sam Street

I don't think you can do this directly with the API.
I've just used http://uk2.php.net/array_diff in the past

On Oct 28, 3:38 am, Chi-Shun Chen andrewchen...@gmail.com wrote:
 Hi all.

 I had a question,
 take a example for show what i want:

 if someone's
   Followers/ids = A,B,C,D,E,G
   Friends/ids = D,F,G

 are there a API that can get  result  Xxxx/ids= D,G   directly?

 Its easy  to call two apis and calculate by myself when two list are
 small.
 but it become inconvenient when one list is huge,(such as 7000 ids +
 10 ids )

 thanks.

 Andrew


[twitter-dev] Re: Noise-tweet regex repository

2009-10-09 Thread Sam Street

Please don't forget the Ive just taken the 'WHOSE HOTTER' quiz and
voted for Miley fucking Cyrus spam via @reply (and DM also)

On Oct 9, 7:03 am, Dave Briccetti da...@davebsoft.com wrote:
 A Twitter client can do an HTTP get to here:

  http://talkingpuffin.appspot.com/filters/noise

 and expect lines of plain text like this:

 Just joined a twibe. Visit http\://twibes\.com/.*
 just joined a video chat at http\://tinychat\.com.*


[twitter-dev] Re: Noise-tweet regex repository

2009-10-09 Thread Sam Street

ps. thats not the actual string. I'll paste actual noise here as I
discover it though

On Oct 9, 10:22 am, Sam Street sam...@gmail.com wrote:
 Please don't forget the Ive just taken the 'WHOSE HOTTER' quiz and
 voted for Miley fucking Cyrus spam via @reply (and DM also)

 On Oct 9, 7:03 am, Dave Briccetti da...@davebsoft.com wrote:

  A Twitter client can do an HTTP get to here:

   http://talkingpuffin.appspot.com/filters/noise

  and expect lines of plain text like this:

  Just joined a twibe. Visit http\://twibes\.com/.*
  just joined a video chat at http\://tinychat\.com.*


[twitter-dev] Re: Show off your programming skills and develop custom components

2009-10-08 Thread Sam Street

Sounds interesting as a side project for me. Thanks

On Oct 8, 4:43 pm, Avi Hein (Conduit) avi.h...@conduit.com wrote:
 Are you up to the challenge?

 Conduit, a SaaS platform that any web publisher can use to offer
 content and applications to users across the World Wide Web, has
 launched the Conduit Awards, to reward developers and programmers of
 custom components and applications for community toolbars that run on
 the Conduit platform.

 The Conduit platform provides an intuitive environment in which web
 publishers can create a custom Community Toolbar in any language, free
 of charge. The flexible solution offers rich APIs, and enables easy
 integration with any software or social media technology.

 Winners of the Conduit Awards (http://bit.ly/conduitawards1) will
 receive up to $15,000 in cash prizes. The grand prize winner will win
 $4,000 and a Nokia Booklet 3G.

 This is a great way for new programmers to build a portfolio and
 experienced developers to keep up their skills and challenge others.

 Components can be developed in languages such as HTML/CSS, JavaScript,
 PHP, and XML. To start developing, check out Conduit’s open API
 (http://bit.ly/3TlSoA)!

 Hurry! Component entries must be submitted before November 1.

 For more information or to enter, check out the Conduit Awards website
 athttp://awards.conduit.com

 What have you developed today?

 
 Follow the awards on Twitterhttp://www.twitter.com/hakerem
 Become a fan of Conduit on Facebookhttp://www.facebook.com/conduityoursite


[twitter-dev] Re: Noise-tweet regex repository

2009-10-08 Thread Sam Street

It's a nice idea. I'd go ahead with it - but also release the regex
publicly.
Apps make enough external requests as it is

On Oct 9, 12:14 am, Dewald Pretorius dpr...@gmail.com wrote:
 I think it might be a better idea to publish the regex code somewhere,
 so that developers can directly include it in their apps if they want
 to.

 If you provide a web service, can I send my users to your email
 address or support system if your regexs reject their tweets as false
 positives? ;-)

 I suck at regex. Regex is for super intelligent beings levitating on a
 much higher and different intellectual stratus than me. So, any kind
 of regex that can be copied and pasted is always very welcome.

 Dewald

 On Oct 8, 6:28 pm, Dave Briccetti da...@davebsoft.com wrote:

  I detest tweets like these:

  just joined a video chat athttp://xxxMakeyour own video chat 
  athttp://xxx#xxx
  just joined a twibe ...

  I am thinking of starting a repository of regular expressions matching
  noise-tweets like these, that Twitter clients could query via a Web
  Service, and the public could contribute to.

  Is this a good idea?


[twitter-dev] SUP (Simple Update Protocol), FriendFeed and Twitter

2009-09-07 Thread Sam Street

Hi all,

I've recently been doing some research on how FriendFeed manages to
push user's twitter updates to users FriendFeed profile so fast. I was
very impressed at the speed these updates were delivered to FriendFeed
and appears on my profile (within 5 seconds) so I started looking into
how it works.

I've learnt quite a lot about SUP by Googling it: Lots of relevant
links here http://blog.friendfeed.com/2008/12/simple-update-protocol-update.html

tl;dr FriendFeed faced problems updating their profiles because they
were issuing millions of API calls to keep everyones profiles up to
date. They came up with a proposal for SUP - a new kind of API that
services provide that only lists accounts that have been updated
recently. This saves FriendFeed requesting ALL users so frequently -
they now only need to request the API for accounts that have new
content.

According to that blog post various services have already setup SUP
feeds to help FriendFeed update things in close-to-real-time.

My question is: Does Twitter have a SUP feed that can publicly be
used? We are starting development on a site with similar real-time
functionality to FriendFeed and currently face the same problem
FriendFeed had (before they devised the SUP proposal and
implementation).

If Twitter does not provide a public SUP feed? can someone please try
to explain how FriendFeed push user's twitter updates within seconds??
My only guess is that they may be constantly connected to the
streaming API's firehose method and monitoring updates from twitter
accounts that are also associated with FriendFeed profiles.

Hoping someone can shed some light on this for me.

Thank you!

-Sam



[twitter-dev] Twitter Trademark in Trouble Too

2009-08-20 Thread Sam Johnston

[although somewhat more controversial I look forward to seeing the
followup conversation - once again refer to the article itself for the
inline links - @samj]

Twitter Trademark in Trouble Too
http://samj.net/2009/08/twitter-trademark-in-trouble-too.html

Yesterday I apparently stuck a nerve in revealing Twitter's Tweet
Trademark Torpedoed. The follow up commentary both on this blog and on
Twitter itself was interesting and insightful, revealing that in
addition to likely losing tweet (assuming you accept that it was
ever theirs to lose) the recently registered Twitter trademark itself
(#77166246) and pending registrations for the Twitter logo (#77721757,
#77721751) are also on very shaky ground.

Trademarks 101

Before we get into details as to how this could happen lt's start with
some background. A trademark is one of three main types of
intellectual property (the others being copyrights and patents) in
which society grants a monopoly over a source identifier (e.g. a
word, logo, scent, etc.) in return for being given some guarantee of
quality (e.g. I know what I'm getting when I buy a bottle of black
liquid bearing the Coke® branding). Anybody can claim to have a
trademark but generally they are registered which makes the process of
enforcing the mark much easier. The registration process itself is
thus more of a sanity check - making sure everything is in order, fees
are paid, the mark is not obviously broken (that is, unable to
function as a source identifier) and perhaps most importantly, that it
doesn't clash with other marks already issued.

Trademarks are also jurisdictional in that they apply to a given
territory (typically a country but also US states) but to make things
easier it's possible to use the Madrid Protocol to extend a valid
trademark in one territory to any number of others (including the EU
which is known as a Community Trademark). Of course if the first
trademark fails (within a certain period of time) then those dependent
on it are also jeopardised. Twitter have also filed applications using
this process.

Moving right along, there are a number of different types of
trademarks, starting with the strongest and working back:

* Fanciful marks are created specifically to be trademarks (e.g.
Kodak) - these are the strongest of all marks.
* Arbitrary marks have a meaning but not in the context in which
they are used as a trademark. We all know what an apple is but when
used in the context of computers it is meaningless (which is how Apple
Computer is protected, though they did get in trouble when they
started selling music and encroached on another trademark in the
process). Similarly, you can't trademark yellow bananas but you'd
probably get away with blue bananas or cool bananas because they
don't exist.
* Suggestive marks hint at some quality or characteristic without
describing the product (e.g. Coppertone for sun-tan lotion)
* Descriptive marks describe some quality or characteristic of the
product and are unregistrable in most trademark offices and
unprotectable in most courts. Cloud computing was found to be both
generic and descriptive by USPTO last year in denying Dell. Twitter is
likely considered a descriptive trademark (but one could argue it's
now also generic).
* Generic marks cannot be protected as the name of a product or
service cannot function as a source identifier (e.g. Apple in the
context of fruits, but not in the context of computers and music)

Twitter
Twitter's off to a bad start already in their selection of names -
while Google is a deliberate misspelling of the word googol
(suggesting the enormous number of items indexed), the English word
twitter has a well established meaning that relates directly to the
service Twitter, Inc. provides. It's the best part of 1,000 years old
too, derived around 1325–75 from ME twiteren (v.); akin to G
zwitschern:

- verb (used without object)

1. to utter a succession of small, tremulous sounds, as a
bird.
2. to talk lightly and rapidly, esp. of trivial matters;
chatter.
3. to titter, giggle.
4. to tremble with excitement or the like; be in a flutter.

- verb (used with object)

5. to express or utter by twittering.

- noun

6. an act of twittering.
7. a twittering sound.
8. a state of tremulous excitement.

Although the primary meaning people associate these days is that of a
bird, it cannot be denied that twitter also means to talk lightly
and rapidly, esp. of trivial matters; chatter. The fact it is now
done over the Internet matters not in the same way that one can talk
or chat over it (and telephones for that matter) despite the
technology not existing when the words were conceived. Had twitter
have tried to obtain a monopoly over a more common words like
chatter and chat there'd have been hell to pay, but that's not to
say they should get away with it now.

Let's leave the definition at that for now as twitter have 

[twitter-dev] Re: Twitter's Tweet Trademark Torpedoed

2009-08-20 Thread Sam Johnston

Evening all,

Apologies for the lag - monitoring this group from the web interface.

@David: You may well still get sued if Twitter think they have a case
but I doubt it, and I doubt they'd win too. The real power they wield
over developers is access to their APIs as you observe (even if the
ToS doesn't always support this - et @retweet).

@Andy: Thanks!

@Dale: Proceeding to registration is only one piece of the puzzle.
They then need to enforce it and even then the value of enforcing it
needs to exceed the reputational cost of doing so. If the users and
developers don't take kindly to it (as would almost certainly be the
case) then there's no point. Furthermore, if Twitter doesn't own the
trademark then they shouldn't be enforcing it (again, @retweet)

@Joseph: If Twitter lose tweet as I argue they should then it
doesn't mean it goes to CoTweet or anyone else for that matter - if
anything the dead trademark could cause problems for others trying to
[ab]use it in the future (which is also a good thing). The problem is
they are trying to trademark something that is a part of an existing
[pending] trademark - I can't go trademarking Micro when there are
existing Microsoft trademarks for example.

I'll follow up in a separate thread about the Twitter trademark which
may also be problematic,

Sam

On Aug 19, 7:57 pm, Sam Johnston s...@samj.net wrote:
 [refer to the article itself for the inline links - @samj]

 Twitter's Tweet Trademark 
 Torpedoedhttp://samj.net/2009/08/twitters-tweet-trademark-torpedoed.html

 Last month Twitter founder Biz Stone announced in a blog post (May The
 Tweets Be With You) that they have applied to trademark Tweet because
 it is clearly attached to Twitter from a brand perspective.  This
 understandably caused widespread upset as the word tweet has been
 used generically by users for some time as well as in any number of
 product names by independent software vendors. Here's some samples
 from the resulting media storm:

     * CNET News: Is Twitter freaking out over 'tweet' trademark?
     * TechExpert: Twitter Trying to Trademark Tweet
     * LA Times: Will Twitter trademark 'tweet' before it’s
 genericized?
     * PC Magazine: Twitter Trying to Trademark 'Tweet'
     * TechCrunch: Twitter Grows “Uncomfortable” With The Use Of The
 Word Tweet In Applications
     * TechCrunch: Twitter To Developers: “Tweet” Your Heart Out, But
 Don’t “Twitter” It
     * Bloomberg: Twitter Lays Claim to ‘Tweet’ Trademark in Bid to
 Protect Brand

 What they failed to mention though was that according to USPTO records
 (#77715815) not only had they actually applied some months before (on
 16 April 2009) but that their application had been refused that very
 same day (1 July 2009).

 According to documents from the Trademark Document Retrieval system,
 their lawyers (Fenwick  West LLP) were notified of the rejection by
 email to tradema...@fenwick.com that day. The USPTO had explained that
 marks in prior-filed pending applications may present a bar to
 registration of applicant’s mark. [...] If the marks in the referenced
 applications register, applicant’s mark may be refused registration
 under Trademark Act Section 2(d) because of a likelihood of confusion
 between the two marks, referencing and attaching not one, not two but
 three separate trademark applications:

     * #77695071 for TWEETMARKS (pending receipt of Statement of Use)
     * #77697186 for COTWEET (pending clarification)
     * #77701645 for TWEETPHOTO (pending transfer to Supplemental
 Register)

 Now I may not be a lawyer (I did play a role in overturning Dell's
 cloud computing and Psion's Netbook trademarks) but given all
 three of the marks identified look like proceeding to registration (it
 only takes one to rain on their parade), it's my non-expert opinion
 that Twitter has a snowflake's chance in hell of securing a monopoly
 over the word Tweet.

 That's too bad for Twitter but it's great news for the rest of the
 community as it's one less tool for locking in Twitter's rapidly
 growing microblogging monopoly. People do use the word tweet
 generically (including with non-Twitter services) and if Twitter, Inc.
 were successful in removing it from the public lexicon then we could
 all suffer in the long run.

 In any case it is neither serious nor safe for one company to become
 the pulse of the planet and that is why I will be following up with
 a series of posts as to how distributed social networking can be made
 a reality through open standards (if that stuff is of interest to you
 then subscribe and/or follow me for updates). I've also got some
 interesting things in the pipeline in relation to standards and
 trademarks in general so watch this space.

 Anyway it just goes to show that with trademarks you need to use it
 or lose it. The propagation delay of the media has dropped from
 months at the outset to near real-time today so companies need to move
 fast to protect their marks or lose them forever

[twitter-dev] Twitter's Tweet Trademark Torpedoed

2009-08-19 Thread Sam Johnston

[refer to the article itself for the inline links - @samj]

Twitter's Tweet Trademark Torpedoed
http://samj.net/2009/08/twitters-tweet-trademark-torpedoed.html

Last month Twitter founder Biz Stone announced in a blog post (May The
Tweets Be With You) that they have applied to trademark Tweet because
it is clearly attached to Twitter from a brand perspective.  This
understandably caused widespread upset as the word tweet has been
used generically by users for some time as well as in any number of
product names by independent software vendors. Here's some samples
from the resulting media storm:

* CNET News: Is Twitter freaking out over 'tweet' trademark?
* TechExpert: Twitter Trying to Trademark Tweet
* LA Times: Will Twitter trademark 'tweet' before it’s
genericized?
* PC Magazine: Twitter Trying to Trademark 'Tweet'
* TechCrunch: Twitter Grows “Uncomfortable” With The Use Of The
Word Tweet In Applications
* TechCrunch: Twitter To Developers: “Tweet” Your Heart Out, But
Don’t “Twitter” It
* Bloomberg: Twitter Lays Claim to ‘Tweet’ Trademark in Bid to
Protect Brand

What they failed to mention though was that according to USPTO records
(#77715815) not only had they actually applied some months before (on
16 April 2009) but that their application had been refused that very
same day (1 July 2009).

According to documents from the Trademark Document Retrieval system,
their lawyers (Fenwick  West LLP) were notified of the rejection by
email to tradema...@fenwick.com that day. The USPTO had explained that
marks in prior-filed pending applications may present a bar to
registration of applicant’s mark. [...] If the marks in the referenced
applications register, applicant’s mark may be refused registration
under Trademark Act Section 2(d) because of a likelihood of confusion
between the two marks, referencing and attaching not one, not two but
three separate trademark applications:

* #77695071 for TWEETMARKS (pending receipt of Statement of Use)
* #77697186 for COTWEET (pending clarification)
* #77701645 for TWEETPHOTO (pending transfer to Supplemental
Register)

Now I may not be a lawyer (I did play a role in overturning Dell's
cloud computing and Psion's Netbook trademarks) but given all
three of the marks identified look like proceeding to registration (it
only takes one to rain on their parade), it's my non-expert opinion
that Twitter has a snowflake's chance in hell of securing a monopoly
over the word Tweet.

That's too bad for Twitter but it's great news for the rest of the
community as it's one less tool for locking in Twitter's rapidly
growing microblogging monopoly. People do use the word tweet
generically (including with non-Twitter services) and if Twitter, Inc.
were successful in removing it from the public lexicon then we could
all suffer in the long run.

In any case it is neither serious nor safe for one company to become
the pulse of the planet and that is why I will be following up with
a series of posts as to how distributed social networking can be made
a reality through open standards (if that stuff is of interest to you
then subscribe and/or follow me for updates). I've also got some
interesting things in the pipeline in relation to standards and
trademarks in general so watch this space.

Anyway it just goes to show that with trademarks you need to use it
or lose it. The propagation delay of the media has dropped from
months at the outset to near real-time today so companies need to move
fast to protect their marks or lose them forever. As for whether the 1
July post was a scramble to protect the mark on receipt of the USPTO's
denial, whether the USPTO was acting in response to it, or whether it
was just a coincidence and particularly bad timing I don't know. I
don't really care either as the result is the same, but I would like
to believe that the USPTO is becoming more responsive to the needs of
the community (after all, they revoked Dell's cloud computing
trademark in the days following the uproar, despite having already
issued a Notice of Allowance offering it to them).


[twitter-dev] Re: Permanent URL to profile images?

2009-08-18 Thread Sam Street

I cache the users profile image and background when they authorize and
each time they reauthorize the return values are compared. If they are
different the images are updated and recached.
I couldn't find a better way to handle this other than running a
cronjob that calls /users/show method for each authorized user and
updates thier profile images url  - but i dont recommend this (api
rape)

On Aug 18, 9:35 pm, Andrew Badera and...@badera.us wrote:
 On Tue, Aug 18, 2009 at 4:21 PM, natefanaronatefan...@gmail.com wrote:

  There is no officially supported way to get a static url for profile
  images but if you're familiar with google app engine you may want to
  check this out:http://code.google.com/p/spiurl/

 Nice, great find, thanks for sharing.

 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)


[twitter-dev] Do not display a background image

2009-08-18 Thread Sam Street

Just noticed something relating to the API method users/show

When requesting a user's data I dont see a field relating to whether
the user has chosen Do not display a background image

If you see here: http://twitter.com/users/show.xml?screen_name=AstuteCat
The default twitter background (clouds) is listed as this users
profile_background_image_url when infact no background image is
displayed on their profile:

http://twitter.com/AstuteCat

This has caused the following to happen on my app: http://twic.li/AstuteCat

It would be great to be able to check if a user has chosen not to
display a background image.

Thanks


[twitter-dev] Add rel=shortlink support for auto-detecting short links

2009-08-18 Thread Sam Johnston

Morning all,

I have just added this idea to Get Satisfaction (http://bit.ly/sN7Gh)
that I think will be of interest to many of you:

Please add support for the rel=shortlink (http://purl.org/net/
shortlink) standard so that Twtiter can detect short links from the
site (HTTP headers and/or HTML code) rather than having to manufacture
them itself using tinyurl.com, bit.ly, etc. This results in better
quality (less opaque), more reliable links in a way that doesn't hurt
the Internet.

WordPress.com have just announced (http://bit.ly/7WlPp) that they have
added rel=shortlink links to the HTTP headers and HTML HEAD of their 7
million hosted blogs (totaling well over 100 million pages) and this
is in addition to a number of other high profile sites such as PHP.net
and Ars Technica.

It also just got a lot more interesting for clients to support the
standard as doing so allows them to get better/faster/cheaper short
links that will be at least as reliable as the site itself. A recent
Pingdom report revealed shortener overheads running into many hundreds
of milliseconds and yet in-house shorteners (especially those on the
same domain) can have a negligible performance impact.

@samj


[twitter-dev] Re: My Issue with the ReTweet API and my solutions

2009-08-17 Thread Sam Street

I totally agree.
It's going to work but will need full adoption from all major apps.
It's going to be confusing seeing different # retweets because certain
apps retweet without the RT API

On Aug 17, 4:21 pm, Cameron Kaiser spec...@floodgap.com wrote:
  Favorites are like secret ballots. That has its place in society, but
  it doesn't serve the same needs as standing behind some alpha primate
  and banging your chest in time to stand behind his message. Favorites
  mark things for personal consumption. They are contemplative and
  reflective.

 Actually, I enjoy reading other people's favourites. I even select some
 additional ones I got a kick out of out of them.

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- Generating random numbers is too important to be left to chance. 
 ---


[twitter-dev] Re: When is whitelisting necessary?

2009-08-16 Thread Sam Street

Necessary, for example, if you use a particular account to notify your
users of a certain event (sending them notifications). Large apps with
high traffic might need to send over 150 alerts from the bot account
per hour.

Im thinking it's also used for apps that try to deliver tweets in
'realtime' by requesting the REST API very frequently rather than use
the streaming APIs.

Perhaps it's also used to make multiple requests to /users/show via a
cronjob that makes sure all the user's of the site have an up to date
profile image and background image cached. (If a user changes their
profile picture on Twitter, your cached URL 404's)

Anyway I've only used whitelisting for the first (notifying users when
they are tagged into photos - or when they are invited to events on
twappening.com)

-Sam @sampicli http://twicli.com

On Aug 16, 12:16 pm, boaz sapirb...@gmail.com wrote:
 Hello,

 I am new to Twitter API and I am trying to understand whether I should
 apply for whitelisting my application. The documentation says:
 IP whitelisting takes precedence to account rate limits. GET requests
 from a whitelisted IP address made on a user's behalf will be deducted
 from the whitelisted IP's limit, not the users. Therefore, IP-based
 whitelisting is a best practice for applications that request many
 users' data.
 However if for example 200 users are accessing twitter through my
 application in one hour, and each access from my app to twitter is
 done with the relevant end user as the twitter authenticated user, I
 can do 200*150=3 API calls in one hours without whitelisting the
 IP address, which is more than the 2 I could do with whitelisting.
 Can anyone give a counter example where whitelisting is absolutely
 necessary?

 Thank you,
 Boaz


[twitter-dev] Re: I must be stupid.

2009-08-15 Thread Sam Street

This library worked perfectly for me 
http://github.com/jmathai/twitter-async/tree/master

On Aug 15, 6:28 am, Adam Shannon a...@ashannon.us wrote:
 On Fri, Aug 14, 2009 at 5:37 PM, Chad Etzel c...@twitter.com wrote:

  Hi Adam,

  If you really want to learn this yourself, the best method is to read
  through the oAuth spec here:
 http://oauth.net/core/1.0a

  This explains exactly how to create the signatures, etc...

  -Chad

  On Fri, Aug 14, 2009 at 6:34 PM, Adam Shannona...@ashannon.us wrote:

   On Fri, Aug 14, 2009 at 5:30 PM, Peter Denton petermden...@gmail.com
   wrote:

   Hi Adam,
   If you want you can email me off list and I can help you use Abrahams.
  Its
   really about as simple as something as going to be that you can trust
  will
   work. Else, you might end up creating a lot of issues without knowing
  it.

   Regards
   Peter

   On Fri, Aug 14, 2009 at 3:25 PM, Julio Biason julio.bia...@gmail.com
   wrote:

   On Sat, Aug 15, 2009 at 7:25 AM, Adam Shannona...@ashannon.us wrote:
foreach ($oauth['parms'] as $parm) {
$request_uri = $request_uri . $parm;
}

   Well, you didn't state the results you're getting (which error) so I'm
   just guessing here. If I'm not mistaken, PHP uses a hash for array
   indexes and, thus, it may be adding the elements in the $request_uri
   in the wrong order. I can't remember how to do that in PHP, but in
   Python it would be something like:

   for key in sort(oauth['params'].keys()):
    request_uri += oauth['params'][key]

   --
   Julio Biason julio.bia...@gmail.com
   Twitter:http://twitter.com/juliobiason

   @Julio
   Thanks, the error is:
   Failed to validate oauth signature and token.
   Also, do the attributes need to be in some specified order?
   @Peter
   I would really like to teach myself how to do this rather then just
  taking a
   framework and relying on blackbox operations.

   --
   - Adam Shannon (http://ashannon.us)

 Many thanks, I've read some of the spec before but I shall read the entire
 thing tomorrow.

 --
 - Adam Shannon (http://ashannon.us)


[twitter-dev] Seeking Beta Tester Developers for my API

2009-08-15 Thread Sam Street

Hi all,

I'm looking for a few developers to help me test the API I have built
for http://twicli.com (content sharing  user tagging)

The API's work as you would expect with each content type (photo,
video, audio) having an 'upload' and 'uploadAndTweet' method.

The backend of the API is actually fine, I just don't have an app to
test it with. I have simulated sending requests using PHP but I'm
unsure whether the results will be the same when the photo/video data
is sent via iPhone or Adobe AIR. Does anyone know what format a photo
posted via an app is sent in? Binary data?

I don't want to release the API publicly without actually testing it
first so any help is appreciated and I'll offer free advertising on
both www.picli.com and www.twicli.com

I'm also working on various get methods aswell as post. Seemingly most
content sharing apps I've seen only seem to offer methods to upload
content through their API rather than request data about a specific
piece of content. I plan to build a method that will deliver detailed
information including users who have been tagged into the photo (for
example).

Anyway, if anyone's willing to help that would be fantastic and I will
return the favour.

-Sam http://twitter.com/sampicli


[twitter-dev] Re: Authenticating / release of IDs usernames

2009-08-15 Thread Sam Street

I recommend switching to OAuth where verify_credentials seems to be
handled in conjunction with the oauth tokens rather than user/pass.

Here's how I use it:

1. User authorizes for the first time
2. Twitter user ID, Screen name, password (and various style data) is
stored in my 'twitter_users' table

From that point on, when the user authorizes in the future each field
is compared to the cached values in the database. If any are
different.. the twitter_users table is updated with up to date info.

It's always best to use twitter user id as an identifier rather than
username.

I suggest checking to see if id matches your stored ID each time a
user logs in. If it's different (username has been reset and used by a
new account) create a new row.

Hope this helped in any way

-Sam @sampicli http://twicli.com

On Aug 15, 10:18 pm, stasisme...@googlemail.com
stasisme...@googlemail.com wrote:
 Hi all,

 I came across a strange issue today with a few users in my app that
 still uses basic auth:

 1. User signs up to app with username / password
 2. App verifies against verify_credentials
 3. On success, the returned id is stored.

 4. User changes their screen_name, and that screen name is released to
 be used by others
 5. User creates a new account, and uses the old username with same
 password
 6. App continues to authenticate using username / password

 At thsi point, my app was processing the direct messages feed, and I
 performed a 'just in case' check on the recipient_id and the stored
 user_id. That's when some exceptions occurred, where the stored
 user_id did not match the recipient_id.

 So I'm wondering - how have people protected against this?


[twitter-dev] Re: Unable to login to my twitter account since wednesday night

2009-08-08 Thread Sam Street

I haven't been able to login for the past few days either.
Luckily using Firefox I was still logged in through a session so this
is fine and apps like TweetDeck for iPhone seem to work (HTTP Auth API
must have no problems logging in)

I can not login through the twitter frontpage or through OAuth.

On Aug 8, 3:59 am, Vincent Nguyen kureik...@gmail.com wrote:
 Yes, me too!
 But my friends can login well!
 When login it's taking very long time and then result is an empty page at
 twitter.com/session

 2009/8/8 Tim Dorr timd...@gmail.com



  Log in from the front page. I'm getting the same thing from
  twitter.com/login, but the front page is doing the trick.

  On Aug 7, 9:30 pm, d d cawah...@gmail.com wrote:
   I figured that maybe it was just a glitch with a few accounts but it
   would appear that it has singled me out because I do not see any other
   issues of this sort.  When I attempt to login it takes a really long
   time and then finally goes to thewww.twitter.com/sessionpageand I
   even tried to select forgot my password just incase it was just me
   entering the incorrect password but when I submitted that again the
   page took a very long time and finally said done at the base but no
   email was ever sent to my email account.  Short of emailing the
   a...@twitter.com this is my last resort.

   Please help


[twitter-dev] Re: Why is Biz saying things are back in action?

2009-08-07 Thread Sam Street

My app http://twicli.com is unavailable. Looks like the ?oauth_token
isnt being created properly.

Hope things come back soon. Thanks

On Aug 7, 7:06 am, Rich rhyl...@gmail.com wrote:
 The most frustrating thing is oAuth being down, meaning new users
 can't sign in to oAuth apps!

 On Aug 7, 6:40 am, Jesse Stay jesses...@gmail.com wrote:

  The more communication, to both us and the public, the better.  That's the
  best thing Twitter can do right now - I definitely feel their pain, as we're
  all going through it right now.  It's just harder on us because we're not
  privy to what Twitter knows right now (nor do we have the control they
  have).  Communication is key. (and tell Rodney I said hi Sean!)

  Jesse

  On Fri, Aug 7, 2009 at 12:59 AM, Sean Callahan 
  seancalla...@gmail.comwrote:

   Yeah Jesse, I hear you and am super bummed out. My service,
   TweetPhoto.com, is also down in terms of users being able to login
   through basic auth. It's been like that all day. No one has been able
   to upload photos. I emailed Doug at Twitter and he requested my
   server's IP address which I provided. I guess they are slowly trying
   to bring apps back online. I just wish this happened a little sooner.
   I feel totally helpless at the moment. What are your thoughts?

   On Aug 6, 6:25 pm, Jesse Stay jesses...@gmail.com wrote:
Why is Biz saying things are back in action when apps like mine, and
   many
other very large names are still broken from it.  Sending this message 
to
users sends a false message to them stating they should expect we should
   be
up as well.  At a very minimum, please state the API is still having
   issues
so users can know what to expect:

   http://blog.twitter.com/2009/08/update-on-todays-dos-attacks.html

Jesse


[twitter-dev] Re: Problem with in reply to status id

2009-08-07 Thread Sam Street

Oh yeah. This just worked for me through web.

My mistake!

On Aug 7, 7:59 am, Abraham Williams 4bra...@gmail.com wrote:
 2009/8/6 Sam Street sam...@gmail.com

  2. replying to a status id that you posted yourself from the same
  account

 This is actually incorrect. I've posted replies to myself from the web
 interface.

 Abraham

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


[twitter-dev] Re: oauth redirects fail....

2009-08-07 Thread Sam Street

My app fails when requesting tokens.
I still cant even login to Twitter.com through web - it just freezes.
Anyway, nope its solved soon.
Thanks

On Aug 7, 6:28 pm, Vincent Nguyen kureik...@gmail.com wrote:
 Me too! My App can request a oauth token but can not do anything when
 redirecting to Twitter!
 And I even can not login to my account from web! All is broken:(!

 2009/8/7 Muthu Ramadoss muthu.ramad...@gmail.com



  I'm not able to even post updates on my twitter account from web. May
  be this is the case after the DOS attack and will be remedied soon.

  On Aug 7, 7:07 am, hansamann sven.hai...@googlemail.com wrote:
   I experience the same, hope this is just the Twitter DOS attack
   aftermath. My app cannot request a requestToken for example, which
   results in a time out on my pages as this is the first thing you do
   before you redirect to twitter.

   Also, I cannot seem to get the friends timeline, friends and
   followers at least not regularly I believe.

   Anyone else?

   Cheers
   Sven

   On Aug 6, 5:31 pm, Howard Siegel hsie...@gmail.com wrote:

If this has only been happening since this morning, then it is likely
  this
is just part of the aftermath of the DOS attack on Twitter.

- h

On Thu, Aug 6, 2009 at 15:53, yuf kyl...@gmail.com wrote:

 I have yet to get oAuth callbacks to work properly.  After clicking
 Allow, I end up on a completely blank twittter.com/oauth/authorize
 page.  If I try to look at the source, it asked if should resend.  If
 I do, the source comes back that contains the redirect.  But if I'm
 not looking at the source, the page just hangs for a while, and then
 ends up blank.

 What is up here?  I've tried a variety of callback urls, from
 localhost, to the actual domain I'm using for development.

 Any one experience similar?


[twitter-dev] Re: OAuth and twitter.com home authentication strange behavior

2009-08-06 Thread Sam Street

My app also dies straight during auth http://twicli.com/auth

On Aug 6, 10:45 pm, Rich rhyl...@gmail.com wrote:
 Especially annoying seeing as I've gone totally oAuth now.  I don't
 blame Twitter, just the idiots that initiated the DDoS attack

 On Aug 6, 10:33 pm, Andreu Pere andreup...@gmail.com wrote:

  The same behaviour for my application. When the app wants to start the oAuth
  workflow in order to authenticate and login the user, the server returns a
  timeout fromhttps://twitter.com/oauth/authenticate?parameters

  On Thu, Aug 6, 2009 at 11:24 PM, Rich rhyl...@gmail.com wrote:

   I can't get oAuth to authenticate on any of my clients either.  It
   works when the client has previously authenticated... but trying to
   get a new token it fails when clicking 'Allow'

   On Aug 6, 7:42 pm, stephane stephane.philipa...@gmail.com wrote:
It's probably linked to the current DDOS but the authentication flow
shows some strange behavior :

1 - I try to initiate an OAuth authentication fromwww.twazzup.com
  - twazzup server gets a timeout trying to connect to twitter for
oauth token (ApplicationError 5 on appengine)
3 - I go to twitter.com click sign-in
  - strangely twitter redirects me to the oauth authorization form
(do you want to allow twazzup blabla ...)

So I have to questions there :
A / did you block incoming OAuth reqs from appengine ?
B/ is the strange behavior (twitter home authentication mixing with
another OAuth flow) something we, 3rd party app developers, can or
should take care of ?

Cheers,

Stephanewww.twazzup.com


[twitter-dev] Re: Problem with in reply to status id

2009-08-06 Thread Sam Street

The message will not include 'in reply to X' if you are
1. replying to an invalid status id
2. replying to a status id that you posted yourself from the same
account

On Aug 6, 9:50 pm, Duane Roelands duane.roela...@gmail.com wrote:
 Difficult to spot the error without knowing the values of message
 and in inreply.

 Are you sure these values are correctly populated when this code
 executes?

 On Aug 6, 4:25 pm, digi ishmeetah...@gmail.com wrote:

  I hate to bump this... but I need help... anybody

  On Aug 6, 9:39 am, digi ishmeetah...@gmail.com wrote:

   hello there,

   I have been trying to fix this for so long but It is not working.
   I am developing a wndows mobile application for twitter in C#  am
   trying to reply to a status id. The message gets posted but it is not
   posted as a reply but just an update message. I dont know what I am
   missing... Please help. I am pasting my code too
   //Code

   postString = source=MyAppstatus= + Uri.EscapeUriString(message) +
   in_reply_to_status_id= + Uri.EscapeUriString(inreply);

               HttpWebRequest webRequest = (HttpWebRequest)
   WebRequest.Create(sendTweetUrl);
               NetworkCredential credentials = new NetworkCredential
   (Username, Password);
               webRequest.Credentials = credentials;

               ASCIIEncoding encoding = new ASCIIEncoding();
               byte[] postData = encoding.GetBytes(postString);

               webRequest.Method = POST;
               webRequest.Timeout = 2;
               webRequest.ContentLength = postData.Length;
               webRequest.AllowWriteStreamBuffering = true;
               webRequest.ProtocolVersion = HttpVersion.Version11;
               webRequest.ProtocolVersion = HttpVersion.Version10;
         try
               {
                   using (Stream outStream = webRequest.GetRequestStream
   ())
                   {
                       outStream.Write(postData, 0, postData.Length);
                       outStream.Flush();
                   }
               }
               catch (Exception ex)
               {
                     throw new customException(Connection
   unsuccessful., ex);
               }
            try
               {
                   using (HttpWebResponse response = (HttpWebResponse)
   webRequest.GetResponse())
                   {
                       using (StreamReader reader = new StreamReader
   (response.GetResponseStream()))
                       {
                           reader.ReadToEnd();
                       }
                   }
               }
               catch (WebException ex)
               {throw new customException(Update unsuccessful., ex);}

   Let me know if there is anything I am missing.
   in btw I am also including the @username in the reply to the status
   id.

   Is there anything else?


[twitter-dev] Re: set the from [Application]

2009-08-03 Thread Sam Street

I've had this difficulty too, with the 'source' parameter being
ignored.
I recommend using OAuth which handles it all fine. I'm weary about
providing my password to apps these days

On Aug 3, 6:49 am, Pek wushup...@gmail.com wrote:
 how do you set the from field when you tweet from the API. Right now
 mine says from API. I'd like it to say from [My Application]

 I've set all the fields necessary from the apps settings


[twitter-dev] Re: Introducing Chad Etzel, Twitter Platform Support

2009-07-31 Thread Sam Street

Welcome :)

On Jul 31, 9:59 pm, Doug Williams d...@twitter.com wrote:
 Hi all --
 We are excited to announce that Chad Etzel has joined our team part-time to
 support the developer community. He is the one man show behind TweetGrid [1]
 amongst other projects [2]. We reached out to Chad to join our team after
 his continual and valuable participation in the community made his passion
 for the Platform evident. The Platform team is not the only Twitter team
 that noticed his value. On a recent trip to our local coffee shop [3], a
 search engineer shared that Chad often notices search defects and suggests
 fixes consistently ahead of most other developers.

 He is one of the most experienced Twitter API developers in the community
 and we feel this experience will serve developers' interests well. Chad will
 be helping to answer requests that enter our support channels [3] to bolster
 our support to developer community. He will be working remotely from his
 home in North Carolina. You can follow him on Twitter 
 athttp://twitter.com/jazzychad.

 We are happy to have Chad on our team an look forward to continuing to build
 support as a pillar of our offering .The API is hiring passionate developers
 and evangelists so if you are interested in getting involved, please let us
 know.

 1.http://tweetgrid.com
 2.http://jazzychad.net
 3.http://twitpic.com/a99zj(@noradio and @al3x in frame)

 Thanks,
 Doug


[twitter-dev] Re: Deprecation of source parameter registration

2009-04-12 Thread Sam Johnston

Hi Doug,

On Apr 9, 4:14 am, Doug Williams d...@twitter.com wrote:

 Beginning late this week or early next week, application developers will no
 longer be able to request API source parameters. Instead, new source
 parameters will only be available for OAuth applications, and will be
 managed by the developer through the registration and management interface 
 (http://twitter.com/oauth_clients).

This seems a little premature don't you think? The source parameter is
important for marketing applications as well as gauging popularity -
OAuth is both still in beta and unsupported by many clients/
applications.

I've just started developing a Twitter app using python-twitter that
is to run on Google AppEngine, but it will be some time after the next
release before we have OAuth support (and even then it's dependent on
a major overhaul of the HTTP layer)[1].

Sam

1. http://code.google.com/p/python-twitter/issues/detail?id=37q=oauth#c4


[twitter-dev] Re: A Twitter Query Language (TQL) ?

2009-03-24 Thread Sam Sethi


Twitter would be better off supporting gdata queries

Thanks in advance

Sam

W: www.twitblogs.com/ssethi
M: +44 7985 705075

Sent from my iPhone

On 23 Mar 2009, at 18:40, Alex Payne a...@twitter.com wrote:



Thanks for the feedback.

On Sun, Mar 22, 2009 at 20:46, Zac Bowling zbowl...@gmail.com wrote:


If it was built and twitter charged something similar to the rate  
that
Amazon's SimpleDB charges for processing power required to preform  
the

query, I would gladly pay.


Zac Bowling


On Sun, Mar 22, 2009 at 7:14 PM, Zac Bowling zbowl...@gmail.com  
wrote:
There was the one I mentioned in my first email that was a bridge  
with

MSSQL (Tweet-SQL) but that is nothing more then a bunch of managed
(written in c#) stored procedure calls for MSSQL 2005 which maybe  
what

you are thinking of. That's not really anything close to what I'm
looking for.

It doesn't even have to be SQL like but just a some kind of  
structured

query language for twitter. That would be awesome.


Zac Bowling




On Sun, Mar 22, 2009 at 4:49 PM, Abraham Williams  
4bra...@gmail.com wrote:
I'm positive that a third party was providing a tql api for their  
database
of tweets and that it was announced on this list but now  
searching returns

nothing. Does anybody else remember this? Maybe it was a dream...

On Sun, Mar 22, 2009 at 15:28, Zac Bowling zbowl...@gmail.com  
wrote:


I would love it if Twitter would develop an equivalent to  
Facebook's

FQL, Yahoo's YQL, Amazon's SimpleDB, or Google's GQL (used for app
engine data storage).

Basically an abstracted SQL-like query engine for doing queries  
and
getting back data the data you want using virtual tables of  
different

data twitter serves up.

You could do something basic like:

SELECT StatusID, UserID, Text FROM StatusUpdates as S
WHERE
  S.UserID in (SELECT UserID FROM SocialGraph WHERE  
FollowerUseringID

= MYUSERID) and
  S.StatusID  LASTID
ORDER BY S.StatusID DESC
LIMIT 200

to get a basic user's following timeline or whatever. From there  
you

can build on from that and get a bit more complex.

It could even build on from just query syntax to modify and  
destructive

calls.

Maybe something like:
DELETE FROM StatusUpdates WHERE StatusID = 200102;

or:
INSERT INTO StatusUpdates(text,replyToStatusID,replyToUserID)  
VALUES

('@johnsmith hello',123601020,235133);

or:
UPDATE StatusUpdates SET favorite = TRUE WHERE StatusID =  
123601020;


You could do it where you do an HTTP get/post with a query like  
above
to twitter's rest api, and the results could come back as JSON  
or XML

or whatever.

Some concepts like this could be done in a local side wrapper  
(like
I've seen a SQL bridge for MSSQL for twitter on here a while  
back) but
it would be awesome if these were processed twitter server side.  
If

done right, it can save on overhead on both twitter and from the
client side.

Like in one case I have where I'm hitting the following  
timeline, I'm

missing something out of the user structure that you get back from
that, so I turn around and do another user call on user for each  
tweet
to get that data. Half the data I get back in both cases don't  
use on
both calls but it would be awesome to be able to get that data  
in one

call.

A lot to consider around optimization and limits and a bit of  
work to

build it but I think something like that would be really useful.


Zac




--
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison WI United States.








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


[twitter-dev] Re: Pushing Twitter data into the clients

2009-03-12 Thread Sam Sethi


Please can we get a Twitter xmpp feed. If Twitter are not going to  
offer this can they allow GNIP to go live. GNIP say Twitter are not  
allowing them to offer the firehose via xmpp to developers. Why? Pull  
based polling is last year. Maybe at the least Twitter could offer a  
Long polling option like friendfeed to give a psuedo realtime feed


Thanks in advance

Sam

W: www.twitblogs.com

Sent from my iPhone

On 12 Mar 2009, at 21:21, Alex Payne a...@twitter.com wrote:



POST requests are unlimited.

We used to support XMPP as an experimental feature, but we don't  
currently.


Delivering push features at our scale is a challenge. We're currently
making our traditional REST request/response APIs the best they can
be. In the future, maybe we'll tackle push as well. In the medium
term, select partners will be able to have tweets pushed to them over
HTTP via our firehose mechanism.

As Andrew suggested, there's been quite a lot of discussion on these
topics in this group and elsewhere on the web.

On Thu, Mar 12, 2009 at 13:55, Adrian spiritpo...@gmail.com wrote:


Hi there, I was wondering if it's possible to push data, rather than
have the content pulled with JSON or XML fetches. You can poll after
set amounts of time, but that only present the illusion of Push, and
uses up bandwith.

Also, is the API limit applied to POST requests?

Lastly, has Twitter thought about implementing XMPP.





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


[twitter-dev] Twitter Apps going live with Oauth

2009-03-05 Thread Sam K Sethi
Hello

We have had Twitter OAuth in twitblogs test site for a few weeks
http://oauth.twitblogs.com and I know several other people have also got it
implemented (TWE2) on test sites waiting for Twitter to give us ALL the
thumbs up but it seems some apps are not waiting or have jumped the gun.

http://excla.im
http://microplaza.com
http://combotweet.com

I have asked twitter to clarify the situation and explain why some apps are
allowed to go live and others are having to wait patiently and then found
this from Matt Sanford

*During this closed beta we recommend very strongly that you not **do
 general software releases using the feature.  If we find any **security or
 performance problems we will need to turn off OAuth and I **don't want to
 break your apps. Your app can sign up users who are not **in the closed
 beta but since this is really a focus on getting **feedback please try and
 limit the audience to people who you feel can **provide some feedback. *


So there you have it.

Thanks in advance

Sam

www.twitblogs.com/ssethi

This email is: [ ] bloggable [ ] twittable [ ] ask first [X] private


[twitter-dev] Re: RESTful API to unshorten URL's from twitter

2009-03-04 Thread Sam K Sethi
We have already implmented Tweetmeme's API in our test site and will pish it
live on Friday. Good job Nick.

Thanks in advance

Sam

www.twitblogs.com/ssethi

This email is: [ ] bloggable [ ] twittable [ ] ask first [X] private


Sent from: Poplar Eng United Kingdom.

2009/3/4 Nick Halstead
nickhalst...@gmail.comhttps://www.linkedin.com/addcontacts?addresses=nickhalst...@gmail.comaddByHand=Add+these+contactsbatchID=0context=0membersOnly=truecurrentPage=1goback=.oca_1_false_0_0



 Today we launched an API for tweetmeme, for those who havent tried it,
 we aggregate all the twitter URL's to rank the most popular stories.
 Well the upside of this is that we have massive database of all the
 short URL's - and where they resolve to, included in this we also go
 and grab the page that it points at, and so we fetch the title,
 category of content, and a few other bits.

 We have tried to stick very closely to the RESTful + twitter style
 API

 The documentation is here - http://www.tweetmeme.com/apidoc.php

 An example of the url fetcher -
 http://api.tweetmeme.com/url_info?url=http://is.gd/lznv

 We also have two methods that let you fetch the most popular + the
 most recent stories.

 Would love to get feedback on what other data mining methods we could
 expose.



[twitter-dev] Re: Which services use twitter username and password as account identifier

2009-03-01 Thread Sam K Sethi
Hi Paul

As you know we already have a working version of Twitters OAuth on a test
site http://ouath.twitblogs.com and will integrate into our live site when
twitter let us.  The way we are looking to overcome the user login issue is
to use JainRain's www.rpxnow.com and associate a users ID to their OAuth
token.

Our worry is will this all confuse non-technical users

Thanks in advance

Sam

www.twitblogs.com/

This email is: [ ] bloggable [ ] twittable [ ] ask first [X] private


2009/3/1 Dossy Shiobara do...@panoptic.com


 On 3/1/09 1:28 PM, Petermdenton wrote:


 Dossy, serioulsy, no one is saying the sky is falling. This list is for
 application developers to discuss development topics as they please. You
 may know everything, but for those of us who wish to discuss


 We need to resist spreading FUD.  Twitter has its problems, but creating
 ones where there aren't any helps no one.


 --
 Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
 Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)



[twitter-dev] Re: Which services use twitter username and password as account identifier

2009-03-01 Thread Sam K Sethi
Hi

I wonder if there is any value in twitter supporting the openid/oauth hybrid
extension
http://googledataapis.blogspot.com/2009/01/bringing-openid-and-oauth-together.html

This would allow us 3rd party developers to create a login mechanism for our
own sites but wrap the Authentication and Authorisation request up in one
call to twitter but I guess this requires twitter to support openid.

Thanks in advance

Sam

www.twitblogs.com/ssethi

This email is: [ ] bloggable [ ] twittable [ ] ask first [X] private


Sent from: Poplar Eng United Kingdom.

2009/3/1 Paul Kinlan paul.kin...@gmail.com

 Hi Sam,

 I think most things other than a basic username and password will confuse
 most people, which is why asking for their twitter username and password is
 done (rightly or wrongly) because people know it, use it all the time on
 twitter and don't have to remember yet another password.

 I will give JainRains solution a look over. Trouble is, it looks two phase,
 log-in via openId/facebook/etc then hook up your twitter account (using
 oAuth); obviously once you have set up your twitter account your only ever
 have to log in using the JainRain stuff.  I do like using the twitter
 account and password (like many app developers) because its central, you can
 verifiy the details and let people use your service in one simple step and
 you don't need another external sevice to authenticate against.  I just
 worry that using external services will limit who uses Twitter apps, and I
 also worry that managing the credentials myself will negate all the benefits
 that oAuth provides (because most people will use the same password as their
 twitter password).

 On http://oauth.twe2.com you only ever type anything when you are
 redirected to Twitters site, twe2 doesn't ask for anything ever.  In my
 opinon it is the cleanest thing from a UX point of view, however, it's not
 (from what I have been told) how your supposed to use oAuth.

 Paul.

 2009/3/1 Sam K Sethi samkse...@googlemail.com

 Hi Paul


 As you know we already have a working version of Twitters OAuth on a test
 site http://ouath.twitblogs.com and will integrate into our live site
 when twitter let us.  The way we are looking to overcome the user login
 issue is to use JainRain's www.rpxnow.com and associate a users ID to
 their OAuth token.

 Our worry is will this all confuse non-technical users

 Thanks in advance

 Sam

 www.twitblogs.com/

 This email is: [ ] bloggable [ ] twittable [ ] ask first [X] private


 2009/3/1 Dossy Shiobara do...@panoptic.com


 On 3/1/09 1:28 PM, Petermdenton wrote:


 Dossy, serioulsy, no one is saying the sky is falling. This list is for
 application developers to discuss development topics as they please. You
 may know everything, but for those of us who wish to discuss


 We need to resist spreading FUD.  Twitter has its problems, but creating
 ones where there aren't any helps no one.


 --
 Dossy Shiobara  | do...@panoptic.com | http://dossy.org/
 Panoptic Computer Network   | http://panoptic.com/
  He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on. (p. 70)






Re: Twitter trends for particular subjects, hashtags, @replies

2009-02-07 Thread Sam Sethi

So when will the firehose be available and on what format xmpp. It  
used to exist ...  Waiting to see of we use gnip xmpp firehose or  
Twitter?

Thanks in advance

Sam

W: www.twitblogs.com/ssethi
M: +44 7985 705075

Sent from my iPhone

On 7 Feb 2009, at 16:31, Chad Etzel jazzyc...@gmail.com wrote:


 I believe for that you will need the firehose and do your own analysis
 on what defines a trend in your point of view... Other than that, I
 don't readily see a way to get that kind of info from current
 resources.

 -Chad

 On Sat, Feb 7, 2009 at 6:11 AM, Dan slightlyoffb...@gmail.com wrote:

 Has anyone found a way to work the API to get this sort of
 functionality?  We are able to determine the top 10 trends for all of
 twitter at any given time, but what about trends for all @replies  
 to a
 particular user, or trends in posts that contain a particular  
 hashtag?



Re: xmpp + entire pubsub

2009-01-29 Thread Sam Sethi

Really annoyed that Twitter are halting Gnip from allowing new users  
access their xmpp feed until Twitter api updated but no dates on  
Twitter api release means we are stuck. Prefer the xmpp solution and  
would like to use it asap.

Also cannot access api.wiki so cannot read the upaste on native xmpp  
firehose support

Thanks in advance

Sam

W: www.twitblogs.com/ssethi
M: +44 7985 705075

Sent from my iPhone

On 29 Jan 2009, at 13:58, Stuart stut...@gmail.com wrote:


 2009/1/29 ledil leonardo.dile...@googlemail.com:
 how to get the entire pubsub without gnip or how can I make use of
 XMPP (firehouse) ?

 You can't at the moment. There is a new firehose solution on the way
 but it's pure HTTP not XMPP.

 Gnip is your best option. Might I ask what you have against using  
 them?

 -Stuart

 -- 
 http://stut.net/