Reputation: 928
I have a variable i want to store in a pastebin so i found this but the link to the API isn't working.
I was wondering if it would be possible to store a variable in a pastebin file so when you go to the site on another computer it gets the value from pastebin and makes it the variable
e.g.
var posts = <Link to pastebin>
user makes a post so it edits the pastebin
so when another user gets on the site they can see what the other user post.
Upvotes: 0
Views: 4442
Reputation: 4335
Currently there is no API for editing pastes directly.
You can create or delete them using the api (wrappers for JS exist here and here, API docs are provided here). There are lots of other examples on how to use the api listed here.
If you do not use the node modules listed above, you can have a look into that code at here - they do not use the api for editing, they do post the forms manually.
Upvotes: 1