OAuth_token
POST
/api/oauth/token
const url = 'https://met.cards/api/oauth/token';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"grant_type":"example","code":"example","redirect_uri":"example","client_id":"example","code_verifier":"example","refresh_token":"example","resource":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://met.cards/api/oauth/token \ --header 'Content-Type: application/json' \ --data '{ "grant_type": "example", "code": "example", "redirect_uri": "example", "client_id": "example", "code_verifier": "example", "refresh_token": "example", "resource": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
grant_type
required
string
code
string
redirect_uri
string
client_id
string
code_verifier
string
refresh_token
string
resource
string
Examplegenerated
{ "grant_type": "example", "code": "example", "redirect_uri": "example", "client_id": "example", "code_verifier": "example", "refresh_token": "example", "resource": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}