Advertisement
Guest User

Groovy-Plurk-Sample

a guest
Aug 23rd, 2010
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.48 KB | None | 0 0
  1. import com.google.jplurk.*
  2.  
  3. class Mothership {
  4.    
  5.     def API_KEY = '**************************'
  6.     def __user = '******'
  7.     def __pass = '******'
  8.     def client = null
  9.  
  10.     def Mothership() {
  11.         client = new PlurkClient(new ISettings.Simple(API_KEY, Lang.tr_ch))
  12.         client.login(__user, __pass)
  13.     }
  14.  
  15.     def plurk(text, qualifier) {
  16.         client.plurkAdd text, qualifier
  17.     }
  18.  
  19.     static main(args) {
  20.        
  21.         def ship = new Mothership()
  22.         ship.plurk 'Groovy-Plurk-Bot Testing!', Qualifier.LOVES
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement