JSON API
Sleazy Fork provides a read-only JSON and JSONP API for accessing data. In the HTML source of pages on Sleazy Fork, look for <link rel="alternate" type="application/json"> and <link rel="alternate" type="application/javascript"> for the URLs.
Prefilled updates
While there is no API for updates, you can use a special prefill URL to populate the update form. The user can then review and submit the update. This URL bypasses the normal anti-XSS protections on POST requests.
- URL:
https://sleazyfork.org/fr-CA/script_versions/prefill(for new scripts),https://sleazyfork.org/fr-CA/scripts/SCRIPTID/versions/prefill(for updating existing scripts) - Method:
POST - Code parameter:
script_version[code] - Content type:
multipart/form-data - The request must include the user's session cookie.
Webhook notifications
Sleazy Fork can check for updates based on push and release webhook notifications from GitHub, GitLab, and Bitbucket. Read more info on webhooks..
