Examples
import PasteeeTo access the Paste.ee API, you need an Application Key. You can create yours at the following link: https://paste.ee/account/api (after logging in to Paste.ee) In that page, first create an Application, then click ACTIONS -> AUTHORIZATION PAGE, and then SUBMIT. You will see the Application Key.
In the following examples I assume that you have assigned your Application Key to the appkey variable, for instance from an environment variable:
appkey = ENV["PASTEEE_APPKEY"]Create a paste that expires in one hour. This returns the id of the new paste.
id = Pasteee.paste(appkey, "Hola mundo"; expiration="3600")The paste can be retrieved using the returned id.
paste = Pasteee.get(appkey, id)Paste.ee pastes are organized in sections. Here we retrieve the contents of section number 1 of the paste we just created.
paste["sections"][1]["contents"] # "Hola mundo"Delete the paste.
Pasteee.delete(appkey, id)This page was generated using Literate.jl.