Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NodeJS在庫連携例
const req = require('request');
const fs = require('fs');
req.post({
headers: {
'Content-Type': 'multipart/form-data',
'X-Api-Key': 'MY_KEY'
},
url: 'https://api.facy.jp/integration/inventory',
method: 'POST',
formData: {
file: fs.createReadStream(__dirname + '/MY_CSV_FILE.csv')
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment