Write
#python
url = 'https://www.nikolaindustry.com/_functions/writedata' params = { 'databasekey': '9WuUyPtOZ1NEGFU', 'userid': 'L5gm8VlCzXsxXI6', 'itemid': 'Z1RjU' } data = { 'some_key': 'some_value' } response = requests.post(url, params=params, json=data) print(response.status_code) print(response.text)
#Node.js
const https = require('https');
const data = JSON.stringify({
some_key: 'some_value'
});
const options = {
hostname: 'www.nikolaindustry.com',
path: '/_functions/writedata?databasekey=9WuUyPtOZ1NEGFU&userid=L5gm8VlCzXsxXI6&itemid=Z1RjU',
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Length': data.length
}
};
const req = https.request(options, res => {
console.log(`statusCode: ${res.statusCode}`);
res.on('data', d => {
process.stdout.write(d);
});
});
req.on('error', error => {
console.error(error);
});
req.write(data);
req.end();
Read
Update
Read All Records