Hello Everyone!
I want to use Clip Drop as my Image Editing API.
I do not know how to use This API in Thunkable.
This isn’t easy in thunkable for me as it is not a URL API. Please Help.
Please give me What header and parameters should be used.
Uploading: Capture.PNG…
I’m not 100% sure what you mean by ‘not a URL API’. You still need to:
- Create an API in Thunkable
- Use the specific clipdrop endpoint URL in the API config menu for your new API
https://clipdrop-api.co/cleanup/v1 < this is the clipdrop inpainting endpoint for example
- Set the API key in Thunakble to match your clipdrop API key
- Set the API’s body to match the inputs required by the endpoint
in the above case it’s the url of an image file and a mask file
- Make a post request
Specifically to answer your question though:
Headers:
Authorization: Bearer {YOUR API KEY HERE}
Content-Type: application/json
Parameters:
none
2 Likes
Can You Please Please Give me a screenshot of the image OF BLOCKS and Webapi?
Look you’re going to need to meet us halfway here and do some leg work too.
Here’s a start but if you post what you have right now then we’ll be able to help more:
2 Likes
When I run The Code, The text shows that I have provided no API Key.
Your Authorization should be “Bearer” followed by a space followed by your API key. As an example, if your API key was 34R5T, then your Authorization string would be Bearer 34R5T.
Make sure there are no extra spaces or punctuation. In your screenshot (as well as the screenshot above it), there are a colon : and brackets { } that should not be there.
2 Likes
Still, It is Showing No API Provided
Are these under the Headers section?
Have you been able to get this API call working in Postman or another 3rd-party API client? That’s a good first step before working with an API in Thunkable.
Yes, These are In Header Section.
Why my Authentication was showing Wrong?
the documentation gives this example
curl -X POST https://clipdrop-api.co/cleanup/v1
-H ‘x-api-key: YOUR_API_KEY’
-F ‘image_file=@image.jpg’
-F ‘mask_file=@mask.png’
-o result.png
so your header block should be as shown below:
3 Likes
So where will Be the Image URL?
use the same way you did , using set web_api body
1 Like
you were supposed to use the header block like i showed
you changed it
1 Like
you didnt change the header block - it’s still the same
here’s yours:
here’s mine
2 Likes
Can you please give me the Project Link so I can Check It Out?
your header block contains ‘generate json block from object’ - please take that out
1 Like