cURL to blocks AI automatic generator | Create blocks for any API Service with AI tool | Getaix.com

Awesome @Jerin_Jacob!
I loved your work :slightly_smiling_face:

1 Like

Really Great Update :+1:

1 Like

not working for me i have a curl which run fine in online website which convert curl in response content but when i try this method i didnt get response
please help me

without knowing your curl statement, no body can help you.

All the key pairs with an -H, need to go in the responseHeaders list as lists of pairs, the rest in a normal GET URL.

Can you please show me blocks. How to arrange it

any error message?

this is the last step of my app please help me

Which builder are you using, it doesn't look like AppInventor?

i tried android builder and niotron both

Looks like it is one of those urls that is expecting a web page (the base url works in a webview). You might be able to capture the response in a webviewstring and return this to your app.

can you please provide me some blocks please

waiting from last 2 hours :slightly_frowning_face: :slightly_frowning_face: :slightly_frowning_face:

Your curl command does not work in my terminal?

That sort of comment will not encourage people to help you.....

2 Likes

i tried in

Run Curl Commands Online (reqbin.com)

and also in 2 android apps and its working fine...

I believe I understand what is going on. You site is returning the data in a compressed format. If I use the --compressed option in your curl command it returns the data in my terminal (linux).

Remove:

-H "accept-encoding:gzip"

from your headers, and it should work.

ref

you are really genius man...

thanks a lot...

its working now

I see you also asked on Kodular - you should advise that you got your solution on the AI2 community :wink:

Ya... sure...