From 043959c57d19bdde6388771ae5375602a406c1e5 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa Date: Mon, 25 Jul 2022 13:04:42 +0700 Subject: [PATCH] Minor changes --- abstract-image-processing/README.md | 37 ++++++++++----------------- abstract-public-holidays/README.md | 2 +- abstract-website-screenshot/README.md | 4 +-- 3 files changed, 16 insertions(+), 27 deletions(-) diff --git a/abstract-image-processing/README.md b/abstract-image-processing/README.md index bfc6df5..3be31f9 100644 --- a/abstract-image-processing/README.md +++ b/abstract-image-processing/README.md @@ -6,42 +6,31 @@ Manage your images programmatically with this powerful API: compress, convert, c ## __Example Request__ * Curl ``` -curl https://images.abstractapi.com/v1/upload/ -X POST --form data='{api_key": "{{token}}", "lossy": true}' --form image=@path/to/image/file.jpg +curl https://images.abstractapi.com/v1/url/ -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"api_key": "{{token}}", "lossy": true, "url": "https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg"} ``` * Raw ``` -POST /v1/upload/ HTTP/1.1 +POST https://images.abstractapi.com/v1/url/ HTTP/1.1 Host: images.abstractapi.com -Content-Type: multipart/form-data; boundary=---abcd1234abcd1234abcd +Content-Type: application/json +Accept: application/json ----abcd1234abcd1234abcd -Content-Disposition: form-data; name="data" - -{api_key": "{{token}}", "lossy": true} ----abcd1234abcd1234abcd -Content-Disposition: form-data; name="image"; filename="file.jpg" -Content-Type: image/jpeg - -................... -................... -................... -................... ----abcd1234abcd1234abcd-- +{"api_key": "{{token}}", "lossy": true, "url": "https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg"} ``` ## __Response__ * Success ``` { - "original_size": "the size of the original input image, in bytes", - "original_height": "original height in pixels of the image", - "original_width": "original width in pixels of the image", - "final_size": "the size of the new image, in bytes", - "bytes_saved": "the number of bytes saved by compressing and resizing the image", - "final_height": "final height in pixels of the image", - "final_width": "final width in pixels of the image", - "url": "url of the image hosted by abstract for you to download. Images are available for 1 day.", + "original_size":205559, + "original_height":430, + "original_width":1142, + "final_size":75101, + "bytes_saved":130458, + "final_height":430, + "final_width":1142, + "url":"https://abstr..." } ``` * Error diff --git a/abstract-public-holidays/README.md b/abstract-public-holidays/README.md index 4eb4956..d450710 100644 --- a/abstract-public-holidays/README.md +++ b/abstract-public-holidays/README.md @@ -1,4 +1,4 @@ -# [Abstract Public Holidays](https://www.abstractapi.com/holidays-api) +# [Abstract Public Holidays](https://www.abstractapi.com/api/holidays-api) ## __Description__ Data on national, regional, and religious holidays via API diff --git a/abstract-website-screenshot/README.md b/abstract-website-screenshot/README.md index bfb77dc..9b13b0c 100644 --- a/abstract-website-screenshot/README.md +++ b/abstract-website-screenshot/README.md @@ -1,7 +1,7 @@ -# [Abstract Public Holidays](https://www.abstractapi.com/holidays-api) +# [Abstract Website Screenshot](https://www.abstractapi.com/api/website-screenshot-api) ## __Description__ -Data on national, regional, and religious holidays via API +Transform any URL into an image with Abstract's Website Screenshot API ## __Example Request__ * Curl