airtable axios

Solutions on MaxInterview for airtable axios by the best coders in the world

showing results for - "airtable axios"
Vadim
28 Jul 2020
1const data = {
2      "records": [
3        {
4          "fields": {
5            "Name": name,
6            "Email": email,
7          }
8        }
9      ]
10    }
11    
12    let url = "https://api.airtable.com/v0/" + app_id + "/" + view
13    let axiosConfig = { headers: { Authorization: "Bearer " + app_key , 'Content-Type': 'application/json' } }
14    axios
15      .post(
16        url,
17        data,
18        axiosConfig
19      )
20      .then(resp => console.log(resp))
21      .catch(error => console.log(error))
22