Javadoc link

References

[[Twitter.simpletweet.py]]

[[Twitter.uploadpicture.py]]

[[Twitter.uploadFromOpenCV.py]]

Example code (from branch develop):
#file : Twitter.py (github)
# start the service
twitter = runtime.start("twitter","Twitter")
 
# credentials for your twitter account and api key info goes here
consumerKey = "XXX"
consumerSecret = "XXX" 
accessToken = "XXX"
accessTokenSecret = "XXX"
 
# set the credentials on the twitter service.
twitter.setSecurity(consumerKey, consumerSecret, accessToken, accessTokenSecret)
twitter.configure()
 
# tweet all of your beep bop boops..
twitter.tweet("Ciao from MyRobotLab")

GroG

11 years 5 months ago

Tested raver1975''s Twitter.uploadFromOpenCV.py script ... WORKY - THUMBS UP !

Whooooo hooooooo...that's fantastic :D Raver and GroG rulez :D Now Twitter service has good capabilities :D

NOW IT IS FASTER BETTER STRONGER :D

Example configuration (from branch develop):
#file : Twitter.py (github)
!!org.myrobotlab.service.config.ServiceConfig
listeners: null
peers: null
type: Twitter