Get, Post, Put, Delete Requests

The get, post, put, and delete methods use the axios API

Make a Get Request

// Name: Get Example
import "@johnlindquist/kit"
let response = await get(
"https://scriptkit.com/api/get-example"
)
await div(md(response.data.message))

Open get-example in Script Kit

Make a Post Request

// Name: Post Example
import "@johnlindquist/kit"
let response = await post(
"https://scriptkit.com/api/post-example",
{
name: await arg("Enter your name"),
}
)
await div(md(response.data.message))

Open post-example in Script Kit

Discuss Post