Revolut
Revolut API integration for Rust.
[!NOTE] This crate has no relationship with Revolut Ltd, as such, it is an unofficial implementation that uses the documented public API endpoints.
[!CAUTION] This crate is in its very early stages and is expected to be incomplete and might contain critical bugs. Do not use it in a production environment in its current state.
Business API
Setting up
Follow the instructions at the Revolut API documentation site.
In order to issue requests in the general case, two settings are necessary:
- Refresh token
- Client assertion
The library will automatically request new access tokens when the cached one expires, or when it performs the first request in cold state.
List accounts
$ REVOLUT_CLIENT_ASSERTION='<CLIENT_ASSERTION>' REVOLUT_REFRESH_TOKEN='<REFRESH_TOKEN>' just list-accounts
Misc
Generate a new access token
$ REVOLUT_CLIENT_ASSERTION='<CLIENT_ASSERTION>' REVOLUT_AUTHORIZATION_CODE='<AUTHORIZATION_CODE>' just retrieve-access-token