How to use api in app

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()
	.addHeader("x-rapidapi-host", "")
	.addHeader("x-rapidapi-key", "3ec32b8f4emsh87b06bf1257fecdp176877jsnfcae06b933b8")

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.