Skip to content

Instantly share code, notes, and snippets.

View icarito's full-sized avatar
🐙

Sebastian Silva icarito

🐙
  • Amazonas Sur
View GitHub Profile
@icarito
icarito / README.md
Created February 19, 2019 00:17 — forked from Kethku/README.md
SCRIPT-8
import requests
def get_data_doc_number(user, password, tipo_doc, numero_doc, format='json'):
'''
url = 'http://py-devs.com:8888/api'
tipo_doc = 'dni' o 'ruc'
'''
url = 'http://py-devs.com:8888/api'
url = '%s/%s/%s' % (url, tipo_doc, str(numero_doc))
res = {'error': True, 'message': None, 'data': {}}