Python Forum
Want to put date and time in a POST API call
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Want to put date and time in a POST API call
#1
I want to send notifications to myself from my Raspberry Pi using Twitter and Twitter's API. The format of the tweet needs to be:

POST https://api.twitter.com/1.1/statuses/update.json?status=Notification%20text
How do I make it so that the current date and time are appended to the end of the text? Any spaces need to be replaced with HTML escape codes. Thanks for any guidance.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020