Struct ramp_api::Ramp [−][src]
pub struct Ramp { /* fields omitted */ }
Expand description
Entrypoint for interacting with the Ramp API.
Implementations
Create a new Ramp client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API client ID and secret your requests will work.
Create a new Ramp client struct from environment variables. It
takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key and your requests will work.
We pass in the token and refresh token to the client so if you are storing
it in a database, you can get it first.
Get all the transactions in the account.
pub async fn get_access_token(
&mut self,
code: &str,
state: &str
) -> Result<AccessToken, APIError>
List all the reimbursements.
List all the departments.
Create a physical card.
List cards for a user.
Auto Trait Implementations
impl !RefUnwindSafe for Ramp
impl !UnwindSafe for Ramp