bandwidth-hero-proxy icon indicating copy to clipboard operation
bandwidth-hero-proxy copied to clipboard

API endpoint documentation

Open ttpro1995 opened this issue 6 years ago • 1 comments

Hi @ayastreb , I think I would need API documentation (how to make request with postman, ...). I would like to make another application that would use my bandwidth-hero-proxy as a mean of image compression. However, I am not good at nodejs to read the source code.

ttpro1995 avatar Jul 18 '18 02:07 ttpro1995

Hi! There's no real API, it's just a GET request to the endpoint with a few URL params: url - URL to the source image webp - when set to 1 convert to webp, otherwise to jpeg grayscale - when set to 1 convert to greyscale, otherwise keep color quality - compressions quality, higher is better, e.g. 90 is high quality, 30 is low quality

you can see the requests in chrome dev tools network tab, when extension is enabled.

ayastreb avatar Jul 19 '18 00:07 ayastreb