Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
Check this out on Dev.to
def get_positive(array) | |
arr = array.uniq.sort | |
smallest = 1 | |
arr.each do |num| | |
if num == smallest | |
smallest += 1 | |
elsif num > smallest | |
return smallest | |
end | |
end |
request: | |
{"url": "https://snapi.sanborns.com.mx/psa/ivoy/track/004210937R002291074", "data": {"code": "R", "date": "2021-01-25 21:40:06", "description": "Recolectado"}, "method": "POST", "headers": {"User-Agent": "iVoy-Webhook/2.6.0", "x-iVoy-Customer": "9158b878-a7f1-11e9-a6e2-0a76b6404696", "x-iVoy-Delivery": 1812240, "x-iVoy-Event-Type": "GUIDE_UPDATED", "x-iVoy-Resource-Id": "2291074", "x-iVoy-Resource-Status": 3}} | |
response: 200 | |
{"msj": "Track no registrado, No existe pedido asociado a 004210937R002291074", "code": 400, "state": false, "headers": {"Accept": "application/json, text/plain, */*", "User-Agent": "iVoy-Webhook/2.6.0", "Content-Type": "application/json;charset=utf-8", "Content-Length": 69, "x-iVoy-Customer": "9158b878-a7f1-11e9-a6e2-0a76b6404696", "x-iVoy-Delivery": 1812240, "x-iVoy-Event-Type": "GUIDE_UPDATED", "x-iVoy-Resource-Id": "2291074", "x-iVoy-Resource-Status": 3}} |
#request | |
{ | |
"token": "da23731e410d4725941564a2080b2432", | |
"amount": { | |
"subtotalIva": 0, | |
"subtotalIva0": 200000, | |
"ice": 0, | |
"iva": 0, | |
"currency": "COP" | |
}, |