[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: 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: 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: 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: 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: 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: 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: 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: 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] 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] 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] 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: 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: 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] 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] 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