Yo

Yo is the simplest and most efficient communication tool in the world.

kawasemi uses one of the API for sending Yos.

Settings

You can obtain an API token from Yo Dashboard.

config = {
    "CHANNELS": {
        "yo": {
            "_backend": "kawasemi.backends.yo.YoChannel",
            # Required
            # Your API token
            "api_token": environ.get("CHANNELS_YO_API_TOKEN"),
            # Optional
            # The recipient's username
            "username": environ.get("CHANNELS_YO_USERNAME"),
        }
    }
}

Text

You can send Yo with text (30 characters max) with Yo API v2.0.

# Yo with text
kawasemi.send("text")

Options

You can send Yo Location or Yo Link by specifying options. For example:

# Yo Link
kawasemi.send(None, options={
    "yo": {
        "link": "http://docs.justyo.co/v1.0/docs/yo"
    }
})

# Yo Location
kawasemi.send(None, options={
    "yo": {
        "location": "35.0261581,135.7818476"
    }
})

Please note that you can only send link or location, but not both.