Twitter Library
These functions provide access to your Twitter account. To be able to use this library, you MUST connect your Twitter account to your Renesas IoT Sandbox account.
Follow this tutorial to learn how to connect your accounts.
Import
To use this library and its functions, you must use the import line at the beginning of your Base Python code.
import Twitter
Functions
Twitter.post_status
Usage: Twitter.post_status(message)
Posts a tweet to your linked Twitter account
- Credit cost: 1
-
Parameters:
- message:
str
the text to be posted on the tweet
- message:
- Returns: None
Sample Code
import Twitter
message = "Hello!"
Twitter.post_status(message)