Skip to content

Instantly share code, notes, and snippets.

@takeshik
Created October 30, 2011 17:38
Show Gist options
  • Save takeshik/1326169 to your computer and use it in GitHub Desktop.
Save takeshik/1326169 to your computer and use it in GitHub Desktop.
(assembly "LinqToTwitter")
(load "cts:System.Diagnostics")
(import "cts:LinqToTwitter" "T")
T.PinAuthorizer.(new).(with
Credentials T.InMemoryCredentials.(new)
GetPin (\ [] (input))
GoToTwitterAuthorization (\ [u:String] ($ Process.(Start u) ()))
).(let a
(= a.OAuthTwitter.OAuthConsumerKey "zap")
(= a.OAuthTwitter.OAuthConsumerSecret "zap")
a.(Authorize)
T.TwitterContext.(new a).(let c
c.(UpdateStatus "バルス!")
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment