clients.txt 630 B

123456789101112131415
  1. A bash client 'selfpaste.sh' is available for use in the client folder.
  2. To create this file just copy selfpaste.default.sh to selfpaste.sh and
  3. make sure you change ENDPOINT and SELFPASTE_UPLOAD_SECRET.
  4. Requirements to create a new client are:
  5. - Talk to the selfpaste endpoint over HTTP(S)
  6. - Make a POST with multipart/form-data
  7. - The post must have field pasty and field dl
  8. -- pasty=File to upload
  9. -- dl=YOUR SECRET
  10. - Can parse json at success
  11. -- message: Contains the URL or detailed information
  12. -- status: integer based in HTML status code.
  13. - A normal HTTP 200 without json is not a success