clients.txt 853 B

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