clients.txt 733 B

123456789101112131415161718
  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. A C client is available to be build with makefile. Build and see included
  5. help for more information.
  6. Requirements to create a new client are:
  7. - Talk to the selfpaste endpoint over HTTP(S)
  8. - Make a POST with multipart/form-data
  9. - The post must have field pasty and field dl
  10. -- pasty=File to upload
  11. -- dl=YOUR SECRET
  12. - Can parse json at success
  13. -- message: Contains the URL or detailed information
  14. -- status: integer based in HTML status code.
  15. - A normal HTTP 200 without json is not a success