This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AuthenticationToken": { | |
"Token": 165097, | |
"AccessToken": "c6fabb4d-dcbf-4d41-95d1-91718d74b311" | |
}, | |
"DadosEstabelecimento": { | |
"nomeFantasia": "the solutions", | |
"cpfCnpj": "36765731000175", | |
"tipoLojaId": 1, | |
"segmentoLojaId": "103", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AuthenticationToken": { | |
"Token": 165092, | |
"AccessToken": "eee57fc2-4ab0-4402-bfea-9576ba2ef0a2" | |
}, | |
"Nome": "JOAO VAGNER BRITO DE MEDEIROS", | |
"TipoCadastro": 1, | |
"Email": "[email protected]", | |
"Cpf": "36629159870", | |
"DataNascimento": "19890623", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AuthenticationToken": { | |
"Token": 165085, | |
"AccessToken": "97184bea-711e-4bb6-9a20-5ea5ed05d4a9" | |
}, | |
"DadosEstabelecimento": { | |
"nomeFantasia": "Atreyo", | |
"cpfCnpj": "15844946000101", | |
"tipoLojaId": 1, | |
"segmentoLojaId": "1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AuthenticationToken": { | |
"Token": 165074, | |
"AccessToken": "76e3ca85-41bd-4002-92f5-b23feac6a623" | |
}, | |
"DadosEstabelecimento": { | |
"nomeFantasia": "Atreyo", | |
"cpfCnpj": "27.897.411/0001-88", | |
"tipoLojaId": 1, | |
"segmentoLojaId": "103", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AuthenticationToken": { | |
"Token": 165042, | |
"AccessToken": "6d5cd129-7c21-436d-8d6e-5d7a3ecc82dc" | |
}, | |
"DadosEstabelecimento": { | |
"nomeFantasia": null, | |
"cpfCnpj": "15844946000101", | |
"tipoLojaId": 1, | |
"segmentoLojaId": 14, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/erp/list', (request, response) => { | |
const admin = require('firebase-admin'); | |
var db = admin.firestore(); | |
var usersRef = db.collection('users'); | |
var users_list = {}; | |
var allUsers = usersRef.get() | |
.then(snapshot => { | |
snapshot.forEach((doc) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"5OaXdhSOeHO9o6fZfhtQgk5Ej4a2": { | |
"topics": [ | |
"R3L18wxD0af0IFLY2j68" | |
], | |
"gender": "M", | |
"email": "[email protected]", | |
"cpf": "99248859920", | |
"userName": "RBort" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) | |
#thanks https://stackoverflow.com/questions/17157721/how-to-get-a-docker-containers-ip-address-from-the-host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web_bot_1 | 172.19.0.1 - - [07/Feb/2018 18:32:08] "GET /test HTTP/1.1" 500 - | |
web_bot_1 | Traceback (most recent call last): | |
web_bot_1 | File "/app/app.py", line 19, in <module> | |
web_bot_1 | conn = pymssql.connect(data_conn['hostname'], data_conn['username'], data_conn['password'], data_conn['database']) | |
web_bot_1 | File "pymssql.pyx", line 641, in pymssql.connect (pymssql.c:10824) | |
web_bot_1 | | |
web_bot_1 | pymssql.OperationalError: (40532, b'DB-Lib error message 40532, severity 20:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib error message 20002, severity 9:\nAdaptive Server connection failed\n') | |
web_bot_1 | 172.19.0.1 - - [07/Feb/2018 18:32:10] "GET /test HTTP/1.1" 500 - | |
web_bot_1 | Traceback (most recent call last): | |
web_bot_1 | File "/app/app.py", line 19, in <module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, datetime | |
import json | |
from flask import Flask, redirect, request, render_template | |
from flask.json import jsonify | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_restful import reqparse, abort, Api, Resource | |
from flask_cors import CORS, cross_origin | |
from uuid import uuid4 |