API
Pastecard has a simple API for reading the contents of a card or writing new text to it.
Read (GET)
https://pastecard.net/api/db/{ID}.txt
Write (POST)
https://pastecard.net/api/write.php?user={ID}&text={text}
Append (POST)
https://pastecard.net/api/append.php?user={ID}&text={text}
- The write method will completely overwrite the existing card text with the passed text.
- The append method will add two new line characters and the passed text to the end of the designated user’s card.
- Text passed to the write and append methods must be URL-encoded. Any text beyond 1034 characters will be truncated.
- The read and write methods will return the text of the user’s card upon success. The append method will only return an HTTP 200 response upon success.
- Use of the API is subject to the Terms of Service.
Source
View the source code for the Pastecard web app and iPhone app.
Browser Bookmarklet
Type your ID into the field below to generate a bookmarklet, and then drag it to your bookmarks bar.
When you invoke the bookmarklet, the current page’s URL will be appended to the bottom of your Pastecard. If any text is selected on the page, the text will be appended instead. Any additions over Pastecard’s character limit of 1034 will be truncated.
Blog
- Feburary 29, 2024: State of the Company, 2024
- April 27, 2023: Pastecard in the App Store
- Feburary 29, 2020: State of the Company, 2020
- May 22, 2018: Pastecard S
- January 12, 2018: Pastecard for iOS
- Feburary 29, 2016: State of the Company, 2016
- Feburary 29, 2012: State of the Company, 2012
- July 14, 2010: Why Pastecard