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
  • Generar Token
  • Generar Guía Hash

Embedded Map

Con esta opción puedes incrustar el mapa de seguimiento en tu app web o móvil.

AnteriorEventos Paradas (Direcciones)

Última actualización hace 5 años

Utilizamos el objeto iframe, para insertar el código de seguimiento

<iframe 
    title="Embedded Tracking Rapigo"
    width="300"
    height="200"
    src="https://rapigo.netlify.com/?token=<token>?guia=<hash-guia>">
</iframe>

Generar Token

Generar Guía Hash

Para generar el hash de la guía utilizaremos el algoritmo (sistema criptográfico de clave pública), para solicitar la clave publica "<public_key>" haga click .

Ejemplo en Python

import Crypto
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_OAEP

public_key = "<public_key>".decode('utf8')

guia = '<no-guia>'
guia = guia.encode()

cipher = PKCS1_OAEP.new(public_key)
encrypted_guia = cipher.encrypt(guia)

print(encrypted_guia)
JWT Authentication
RSA
aquí