how to use api in kodular which provide link with header
1 Like
i searched but dont got
add some details to your post like reference etc
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://qrcode-monkey.p.rapidapi.com/qr/custom?size=600&file=png&config=%7B%22bodyColor%22%3A%20%22%230277BD%22%2C%20%22body%22%3A%22mosaic%22%7D&data=https%3A%2F%2Fwww.qrcode-monkey.com")
.get()
.addHeader("x-rapidapi-host", "qrcode-monkey.p.rapidapi.com")
.addHeader("x-rapidapi-key", "3ec32b8f4emsh87b06bf1257fecdp176877jsnfcae06b933b8")
.build();
Response response = client.newCall(request).execute();
this is api
1 Like
how to we use this type of api in our application
Run it in an online CURL runner and copy result URL.Now modify it according to your needs.
Works only for curl
but how to use online curl runner in app
Set the URL using the Set URL block
Request Headers are easy
You can add 2 make a list blocks to the parent Make a list and then in each child block put 2 texts which are given in the api
ok that i will try and reply
Use this chrome extension to test APIs
thanks man i am very happy now
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.