Criado para publicar fotos no instagram.
- NodeJs > 8
- NPM
- Browser-refresh (Dev)
- Pm2 (Production)
npm install
cp .env.development.example .env
npm start
npm run build
request("http://localhost:9028/auth/sign-in", {
method: "POST",
json: true,
body: {
username: "",
password: ""
}
});
request("http://localhost:9028/auth/logout", {
method: "POST",
json: true,
body: {
username: ""
}
});
request("http://localhost:9028/auth/get-profile", {
method: "POST",
json: true,
body: {
username: ""
}
});
request("http://localhost:9028/auth/sign-in/verification/sms", {
method: "POST",
json: true,
body: {
username: "",
code: ""
}
});
request("http://localhost:9028/auth/sign-in/challenge-select", {
method: 'POST',
body: {
username: ""
},
json: true
})
request("http://localhost:9028/publish/photo", {
method: "POST",
json: true,
body: {
username: "",
file: "", // o arquivo já deve esta no servidor
caption: "Apenas um teste de postagem"
}
});
request("http://localhost:9028/publish/album", {
method: "POST",
body: {
username: "",
files: [""], // o arquivo já deve esta no servidor, tem que ser enviado ao menos 2 imagens!
caption: "Apenas um teste de postagem"
}
});