Tweet Information

POST https://api.twitter.com/1.1/statuses/update.json?status=The weather in {{thecity}} is {{weather}} and {{temp}} °F. AQI is {{AQI}}, air quality is {{aq}}. You can have {{activity}} activites today. {{jacket}}

This API uses the Twitter API v1.1 statuses/update call to send tweets to the specified Twitter account. The information in the tweet is composed with the environment variables set by GET AirNow-AQI and GET OpenWeather - Temp-Weather.



Twitter API v1.1 statuses/update

Request Params

KeyDatatypeRequiredDescription
statusstringRequired

The status update sent to the specified Twitter account. |

RESPONSES

status: OK

{"created_at":"Thu Oct 29 01:07:35 +0000 2020","id":1321619655673352192,"id_str":"1321619655673352192","text":"The weather in Los Angeles is clear sky and 67.08 °F. AQI is 80, air quality is Moderate. You can have indoor activites today.","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[]},"source":"","in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":1318655883396616192,"id_str":"1318655883396616192","name":"Jerry Li","screen_name":"jerry_li_dev","location":"","description":"","url":null,"entities":{"description":{"urls":[]}},"protected":false,"followers_count":0,"friends_count":0,"listed_count":0,"created_at":"Tue Oct 20 20:50:48 +0000 2020","favourites_count":0,"utc_offset":null,"time_zone":null,"geo_enabled":false,"verified":false,"statuses_count":44,"lang":null,"contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"F5F8FA","profile_background_image_url":null,"profile_background_image_url_https":null,"profile_background_tile":false,"profile_image_url":"http://pbs.twimg.com/profile_images/1321203510814240768/Kcs4uu5L_normal.jpg","profile_image_url_https":"https://pbs.twimg.com/profile_images/1321203510814240768/Kcs4uu5L_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/1318655883396616192/1603834464","profile_link_color":"1DA1F2","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":true,"default_profile":true,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false,"translator_type":"none"},"geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"lang":"en"}