pluto/scripts/get-token.sh

8 lines
355 B
Bash
Raw Normal View History

2021-12-23 00:29:33 +00:00
curl https://sandbox-b2b.revolut.com/api/1.0/auth/token \
-H "Content-Type: application/x-www-form-urlencoded"\
--data "grant_type=authorization_code"\
--data "code=oa_sand_[...]"\
--data "client_id=XXXX_[...]"\
--data "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer"\
--data "client_assertion=long string [...]"