GYRA+ DOCS
...
Plataforma de decisão de crédi...
Autenticação
1 min
{ "name" "autenticação", "method" "post", "url" "https //gyra core gyramais com br/auth/authenticate", "description" "autenticar a organização", "tab" "examples", "examples" { "languages" \[ { "id" "tqtqldas82ak3xdlxehvp", "language" "curl", "code" "curl location request post 'https //gyra core gyramais com br/auth/authenticate' \\\\\n header 'gyra client secret string' \\\\\n header 'gyra client id string'", "customlabel" "" }, { "id" "km41tueov0jlv rdlydko", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //gyra core gyramais com br/auth/authenticate',\n 'headers' {\n 'gyra client secret' 'string',\n 'gyra client id' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "cwrkdltpinnbr0owh9ywq", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"gyra client secret\\", \\"string\\");\nmyheaders append(\\"gyra client id\\", \\"string\\");\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //gyra core gyramais com br/auth/authenticate\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "hdt0dflrdbxsahpjrxeqk", "language" "python", "code" "import requests\n\nurl = \\"https //gyra core gyramais com br/auth/authenticate\\"\n\npayload = {}\nheaders = {\n 'gyra client secret' 'string',\n 'gyra client id' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "zlkefojbmbzzm j9kj95i", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //gyra core gyramais com br/auth/authenticate\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"gyra client secret\\"] = \\"string\\"\nrequest\[\\"gyra client id\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "tqtqldas82ak3xdlxehvp" }, "results" { "languages" \[ { "id" "8 zwodz8x4eiespgih3ky", "language" "200", "customlabel" "", "code" "\[\n {\n \\"id\\" \\"663a07b482cc4b57913966ef\\",\n \\"createdat\\" \\"2024 05 07t10 51 32 701z\\",\n \\"updatedat\\" \\"2024 05 07t10 51 32 752z\\",\n \\"expiresat\\" \\"2024 05 08t10 51 32 700z\\",\n \\"accesstoken\\" \\"eyjhbgcioijiuzi1niisinr5cci6ikpxvcj9 eyj1c2vyswqioii2njayzdflnmizymjintexogq1zji3zmmilcjzzxnzaw9uswqioii2njnhmddindgyy2m0yju3otezoty2zwyilcjpyxqioje3mtuwnzkwotisimv4cci6mtcxnte2ntq5mn0 uq79xidluqhcigu9ifubgzt28kdpsv wuvrlkhidxku\\",\n \\"userid\\" \\"6602d1e6b3bbb5118d5f27fc\\",\n \\"loggedoutat\\" null,\n \\"organizationid\\" \\"6602cba04faa2a9211fb6fa6\\"\n }\n]" } ], "selectedlanguageid" "8 zwodz8x4eiespgih3ky" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "gyra client secret", "kind" "required", "type" "string", "description" "senha", "children" \[] }, { "name" "gyra client id", "kind" "required", "type" "string", "description" "código identificador", "children" \[] } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "header parameter", "value" "headerparameters" }, "response" \[], "hastryitout" true } credenciais as credenciais da organização são disponibilizados através do cadastro com nossa equipe de onboarding no momento do cadastro, caso deseje solicitar as credenciais entre em contato com nosso time