Last active
July 27, 2022 22:33
-
-
Save jhowbhz/063c70bcec21e1095eea6d76cc65fc2a to your computer and use it in GitHub Desktop.
Obter QRCODE com MyZap 2.0
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
<!DOCTYPE html> | |
<!-- Antes de utilizar esses codigos, verifique as informações em https://apibrasil.com.br --> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<img src="" alt="" id=image> | |
</body> | |
<script src="https://cdn.socket.io/4.4.0/socket.io.min.js" integrity="sha384-1fOn6VtTq3PWwfsOrk45LnYcGosJwzMHv+Xh/Jx5303FVOXzEnw0EpLv30mtjmlj" crossorigin="anonymous"></script> | |
<script> | |
const socket = io('HOST_DA_API'); | |
socket.on('events', (events) => { | |
//console.log(events) | |
document.getElementById('image').src = events?.qrCode | |
}) | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment