Api
  • Rapigo Api
  • Autenticación
    • HttpBasicAuth
    • JWT Authentication
  • Api
    • Ejemplo de servicios
    • Validar Dirección
    • Cotizar Servicio
    • Pedir Servicio
    • Ver Información Guia
  • Webhooks
    • Eventos Servicio
    • Eventos Paradas (Direcciones)
  • Embedded Map
Con tecnología de GitBook
En esta página
  • Ejemplo Python
  • Ejemplo Nodejs
  1. Autenticación

HttpBasicAuth

Ejemplo Python

from requests.auth import HTTPBasicAuth
requests.get('url', auth=HTTPBasicAuth('user', 'pass'))

Ejemplo Nodejs

var username = 'Test';
var password = '123';
var auth = 'Basic ' + Buffer.from(username + ':' + password).toString('base64');
// new Buffer() is deprecated from v6

// auth is: 'Basic VGVzdDoxMjM='

var header = {'Host': 'url', 'Authorization': auth};
var request = client.request('GET', '/', header);
AnteriorAutenticaciónSiguienteJWT Authentication

Última actualización hace 5 años