Package gwibber :: Package lib :: Class GwibberPublic
[hide private]
[frames] | no frames]

Class GwibberPublic

source code

GwibberPublic is the public python class which provides convience methods for using Gwibber.

Instance Methods [hide private]
 
__init__(self) source code
 
post(self, message) source code
 
GetServices(self)
Returns a list of services available as json string...
source code
 
GetAccounts(self)
Returns a list of services available as json string...
source code
 
SendMessage(self, message)
Posts a message/status update to all accounts with send_enabled = True.
source code
 
Refresh(self)
Calls the Gwibber Service to trigger a refresh operation...
source code
 
Shorten(self, url)
Takes a long url in and returns a shortened url as a string, based on your ...
source code
 
MonitorAccountChanged(self, cb) source code
 
MonitorAccountDeleted(self, cb) source code
Method Details [hide private]

GetServices(self)

source code 

Returns a list of services available as json string
example:
    import json, gwibber.lib
    gw = gwibber.lib.GwibberPublic()
    services = json.loads(gw.GetServices())

GetAccounts(self)

source code 

Returns a list of services available as json string
example:
    import json, gwibber.lib
    gw = gwibber.lib.GwibberPublic()
    accounts = json.loads(gw.GetAccounts())

SendMessage(self, message)

source code 

Posts a message/status update to all accounts with send_enabled = True.  It 
takes one argument, which is a message formated as a string.
example:
    import gwibber.lib
    gw = gwibber.lib.GwibberPublic()
    gw.SendMessage("This is a message")

Refresh(self)

source code 

Calls the Gwibber Service to trigger a refresh operation
example:
    import gwibber.lib
    gw = gwibber.lib.GwibberPublic()
    gw.Refresh()

Shorten(self, url)

source code 

Takes a long url in and returns a shortened url as a string, based on your 
configured shortening service
example:
    import gwibber.lib
    gw = gwibber.lib.GwibberPublic()
    gw.Shorten(url)