Twitter is an online social networking service that enables users to send and read short 140-character messages called “tweets”.

kawasemi uses one of the REST APIs for sending tweets.


You can obtain keys and access tokens from Twitter Application Management.

config = {
    "CHANNELS": {
        "twitter": {
             "_backend": "kawasemi.backends.twitter.TwitterChannel",
             # Required
             # Consumer Key (API Key)
             "api_key": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
             # Consumer Secret (API Secret)
             "api_secret": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
             # Access Token
             "access_token": "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ",
             # Access Token Secret
             "access_token_secret": "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"


You can specify all parameters available in the API. For instance:

kawasemi.send("Sample tweet with location.", options={
    "twitter": {
        "lat": 37.7821120598956,
        "long": -122.400612831116