This is a Python client for the Yo RPC API.
pip install YoClient
Instantiate a client by passing an API Key in the constructor
from yo_client import YoClient
client = YoClient("some_api_key")
Send a Yo to a user with optional text and an optional link or coordinate.
Currently, the Yo API allows either a link or coordinate to be sent with a Yo
, but not both.
from yo_client import YoClient
client = YoClient("some_api_key")
response = client.send_yo(username="some_username", text="some_text", link="some_link")
Send a Yo to all subscribers - the only value to pass this method is a link.
from yo_client import YoClient
client = YoClient("some_api_key")
response = client.send_yo_to_all_subscribers(link="some_link")
from yo_client import YoClient
client = YoClient("some_api_key")
response = client.create_account(username="some_username")
from yo_client import YoClient
client = YoClient("some_api_key")
response = client.username_exists(username="some_username")
from yo_client import YoClient
client = YoClient("some_api_key")
response = client.get_subscribers_count()