PageSourceSearch

https://www.truora.com/hubfs/hub_generated/module_assets/1/2214979…/module_Visualizador_de_cdigo.min.js

js truora.com collected 2026-10-02 07:06:03 UTC 8,423 bytes, 2 lines download raw bytes

1var module_221497996644=void document.addEventListener("DOMContentLoaded",()=>{const products={di:{file:"face_recognition.sh",endpoint:"POST /v1/face-recognitions",code:"curl --request POST \\\n  --url 'https://api.identity.truora.com/v1/face-recognitions' \\\n  --header <span class=\"c-string\">'Truora-API-Key: TUA_live_8f92a1b3c4d5e6f7g8h9'</span> \\\n  --header <span class=\"c-string\">'Content-Type: application/x-www-form-urlencoded'</span> \\\n  --data-urlencode <span class=\"c-string\">'face_image=data:image/jpeg;base64,/9j/4AAQSkZJRg...'</span> \\\n  --data-urlencode <span class=\"c-string\">'check_liveness=true'</span> \\\n  --data-urlencode <span class=\"c-string\">'threshold=0.85'</span>",response:'{\n  <span class="c-key">"face_recognition_id"</span>: <span class="c-string">"FAC89a23f11b9804e12"</span>,\n  <span class="c-key">"liveness_summary"</span>: {\n    <span class="c-key">"liveness_status"</span>: <span class="c-string">"passed"</span>,\n    <span class="c-key">"score"</span>: 0.98\n  },\n  <span class="c-key">"match_summary"</span>: {\n    <span class="c-key">"result"</span>: <span class="c-string">"match"</span>,\n    <span class="c-key">"confidence"</span>: 0.96\n  }\n}'},checks:{file:"create_check.sh",endpoint:"POST /v1/checks",code:"curl --request POST \\\n  --url 'https://api.checks.truora.com/v1/checks' \\\n  --header <span class=\"c-string\">'Truora-API-Key: TUA_live_c4b5e6f7a8b9c0d1e2'</span> \\\n  --header <span class=\"c-string\">'Content-Type: application/x-www-form-urlencoded'</span> \\\n  --data-urlencode <span class=\"c-string\">'country=CO'</span> \\\n  --data-urlencode <span class=\"c-string\">'type=person'</span> \\\n  --data-urlencode <span class=\"c-string\">'national_id=123456789'</span> \\\n  --data-urlencode <span class=\"c-string\">'user_authorized=true'</span>",response:'{\n  <span class="c-key">"check"</span>: {\n    <span class="c-key">"check_id"</span>: <span class="c-string">"CHK198e142cdd582a613bb96ff5748f500d"</span>,\n    <span class="c-key">"country"</span>: <span class="c-string">"CO"</span>,\n    <span class="c-key">"type"</span>: <span class="c-string">"person"</span>,\n    <span class="c-key">"status"</span>: <span class="c-string">"not_started"</span>,\n    <span class="c-key">"score"</span>: -1\n  },\n  <span class="c-key">"self"</span>: <span class="c-string">"/v1/checks/CHK198e142cdd582a613bb96ff5748f500d"</span>\n}'},pass:{file:"exchange_token.sh",endpoint:"POST /v1/oauth2/token",code:"curl --request POST \\\n  --url 'https://api.pass.truora.com/v1/oauth2/token' \\\n  --header <span class=\"c-string\">'Truora-API-Key: TUA_live_p0a9s8s7p6a5s4s3'</span> \\\n  --header <span class=\"c-string\">'Content-Type: application/x-www-form-urlencoded'</span> \\\n  --data-urlencode <span class=\"c-string\">'grant_type=authorization_code'</span> \\\n  --data-urlencode <span class=\"c-string\">'client_id=WLT_APP_123'</span> \\\n  --data-urlencode <span class=\"c-string\">'client_secret=sec_live_9d8e7f6a5b4c3'</span> \\\n  --data-urlencode <span class=\"c-string\">'code=WLT_AC_abc123'</span> \\\n  --data-urlencode <span class=\"c-string\">'redirect_uri=https://your-app.com/callback'</span>",response:'{\n  <span class="c-key">"access_token"</span>: <span class="c-string">"WLT_AT_2Zb1g9mP..."</span>,\n  <span class="c-key">"token_type"</span>: <span class="c-string">"Bearer"</span>,\n  <span class="c-key">"expires_in"</span>: 3600,\n  <span class="c-key">"refresh_token"</span>: <span class="c-string">"WLT_RT_9fK3xL..."</span>,\n  <span class="c-key">"id_token"</span>: <span class="c-string">"eyJhbGciOiJIUzI1..."</span>,\n  <span class="c-key">"scope"</span>: <span class="c-string">"openid email profile"</span>\n}'},sign:{file:"create_doc_zapsign.sh",endpoint:"POST /api/v1/docs/",code:'curl --request POST \\\n  --url \'https://api.zapsign.com.br/api/v1/docs/\' \\\n  --header <span class="c-string">\'Authorization: Bearer TUA_live_zapsign_998877\'</span> \\\n  --header <span class="c-string">\'Content-Type: application/json\'</span> \\\n  --data <span class="c-string">\'{\n    "name": "Contrato_Servicios.pdf",\n    "url_pdf": "https://tusitio.com/docs/contrato.pdf",\n    "signers": [\n      {\n        "name": "Jhon Doe",\n        "email": "[email protected]",\n        "send_automatic_email": true\n      }\n    ],\n    "lang": "es"\n  }\'</span>',response:'{\n  <span class="c-key">"open_id"</span>: 123456,\n  <span class="c-key">"token"</span>: <span class="c-string">"doc_token_abc123"</span>,\n  <span class="c-key">"name"</span>: <span class="c-string">"Contrato_Servicios.pdf"</span>,\n  <span class="c-key">"status"</span>: <span class="c-string">"pending"</span>,\n  <span class="c-key">"signers"</span>
1: [\n    {\n      <span class="c-key">"token"</span>: <span class="c-string">"signer_token_xyz789"</span>,\n      <span class="c-key">"name"</span>: <span class="c-string">"Jhon Doe"</span>,\n      <span class="c-key">"sign_url"</span>: <span class="c-string">"https://app.zapsign.com.br/verificar/signer_token_xyz789"</span>,\n      <span class="c-key">"status"</span>: <span class="c-string">"new"</span>\n    }\n  ]\n}'}},tabs=document.querySelectorAll(".lang-tab"),codeBlock=document.getElementById("codeBlock"),responseBlock=document.getElementById("responseBlock"),fileName=document.getElementById("fileName"),pkgCmd=document.getElementById("pkgCmd"),copyBtn=document.getElementById("copyBtn"),statusDot=document.getElementById("statusDot"),statusCode=document.getElementById("statusCode");let currentAnimationId=0,autoRotateTimer=null,currentTabIndex=0;const productKeys=Object.keys(products),stopAutoRotate=()=>{autoRotateTimer&&(clearInterval(autoRotateTimer),autoRotateTimer=null)},typeCode=async(element,htmlString,speed,animId)=>{element.innerHTML="";const temp=document.createElement("div");temp.innerHTML=htmlString;const cursor=document.createElement("span");cursor.className="cursor",cursor.textContent="█";const typeNode=async(node,parentEl)=>{if(currentAnimationId===animId)if(node.nodeType===Node.TEXT_NODE){const text=node.textContent,textNode=document.createTextNode("");parentEl.appendChild(textNode);for(let i=0;i<text.length;i+=2){if(currentAnimationId!==animId)return;textNode.nodeValue+=text.slice(i,i+2),element.appendChild(cursor),await new Promise(r=>setTimeout(r,speed))}}else if(node.nodeType===Node.ELEMENT_NODE){const el=document.createElement(node.tagName);Array.from(node.attributes).forEach(attr=>el.setAttribute(attr.name,attr.value)),parentEl.appendChild(el);for(let child of Array.from(node.childNodes))await typeNode(child,el)}};element.appendChild(cursor);for(let child of Array.from(temp.childNodes))await typeNode(child,element);currentAnimationId===animId&&cursor.classList.add("blink")},switchTab=index=>{tabs.forEach(t=>t.classList.remove("active")),tabs[index].classList.add("active"),(async prodKey=>{currentAnimationId++;const animId=currentAnimationId,data=products[prodKey];data&&(fileName.textContent=data.file,pkgCmd.textContent=data.endpoint,statusCode.textContent="AWAITING REQUEST...",statusCode.style.color="#cbd5e1",statusDot.style.backgroundColor="#cbd5e1",responseBlock.innerHTML="",await typeCode(codeBlock,data.code,4,animId),currentAnimationId===animId&&(statusCode.textContent="PROCESSING...",statusCode.style.color="#eab308",statusDot.style.backgroundColor="#eab308",await new Promise(r=>setTimeout(r,350)),currentAnimationId===animId&&(statusCode.textContent="200 OK • 115ms",statusCode.style.color="#10b981",statusDot.style.backgroundColor="#10b981",await typeCode(responseBlock,data.response,2,animId))))})(tabs[index].getAttribute("data-product"))};tabs.forEach((tab,index)=>{tab.addEventListener("click",()=>{stopAutoRotate(),currentTabIndex=index,switchTab(currentTabIndex)})}),copyBtn.addEventListener("click",()=>{stopAutoRotate();const textToCopy=codeBlock.innerText.replace(/█/g,"");navigator.clipboard.writeText(textToCopy).then(()=>{const originalSvg=copyBtn.innerHTML;copyBtn.innerHTML='<span style="color:#10b981; font-size:11px;">¡Copiado!</span>',setTimeout(()=>{copyBtn.innerHTML=originalSvg},1500)})}),switchTab(0),autoRotateTimer=setInterval(()=>{currentTabIndex=(currentTabIndex+1)%productKeys.length,switchTab(currentTabIndex)},5e3)});
2//# sourceURL=https://21471312.fs1.hubspotusercontent-na1.net/hubfs/21471312/hub_generated/module_assets/1/221497996644/1790788059890/module_Visualizador_de_cdigo.js

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.