The api object
- 01 Overviewapi.name: Your plugin's folder name, e.g. "my-plugin"
- 02 api.relay(method, url, headers = {}, body = '') (1/2)The reader makes the request and streams the answer back.
- 03 api.relay(method, url, headers = {}, body = '') (2/2)Non-2xx upstream statuses are not errors. Check r.status.
- 04 api.fetchToSd(url, dest, headers = {}, options = {})Downloads to SD without the body ever passing through the browser. Use it...
- 05 api.writeFile(path, base64)Max 256 KB. Empty content is rejected (400 empty body), so to "clear" a JSON...
- 06 Reading filesThere is no api.readFile. Use one of these:
- 07 api.crypto(op, fields)All binary values are base64, each at most 64 KB. Errors come back as...