API Docs
Autenticação
/auth/refresh
1 min
code examples curl location '/auth/refresh' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "refresh token" "rft abcd1234 abcd 1234 abcd abcd1234efgh" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "refresh token" "rft abcd1234 abcd 1234 abcd abcd1234efgh" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("/auth/refresh", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/auth/refresh") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "refresh token" "rft abcd1234 abcd 1234 abcd abcd1234efgh" }) response = http request(request) puts response read body import requests import json url = "/auth/refresh" payload = json dumps({ "refresh token" "rft abcd1234 abcd 1234 abcd abcd1234efgh" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // token atualizado com sucesso { "access token" "app ock abcd1234 abcd 1234 abcd abcd1234efgh", "access token expire at" "", "refresh token" "rft abcd1234 abcd 1234 abcd abcd1234efgh" }