airtable post request code example
Example: airtable axios
const data = {
"records": [
{
"fields": {
"Name": name,
"Email": email,
}
}
]
}
let url = "https://api.airtable.com/v0/" + app_id + "/" + view
let axiosConfig = { headers: { Authorization: "Bearer " + app_key , 'Content-Type': 'application/json' } }
axios
.post(
url,
data,
axiosConfig
)
.then(resp => console.log(resp))
.catch(error => console.log(error))