How do I post to Gwibber from python?
I have tried
import gwibber.utils
foo = gwibber.utils.GwibberPublic()
foo.post("This is a test message")
from https://wiki.ubuntu.com/Quickly/Snippets.
But it doesn't work.
|
How do I post to Gwibber from python? I have tried
from https://wiki.ubuntu.com/Quickly/Snippets. But it doesn't work. |
||||
|
|
|
You should really be using the GIR based API, here is a more current example:
That will post to all accounts that are currently enabled to send. Here are what the parameters for send_message are:
So if you want to only post from a specific account, you can do something like this:
|
|||||||||||||||||
|