Struct quickbooks::QuickBooks [−][src]
pub struct QuickBooks { /* fields omitted */ }
Expand description
Entrypoint for interacting with the QuickBooks API.
Implementations
Create a new QuickBooks 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 key your requests will work.
pub async fn new_from_env<T, R>(token: T, refresh_token: R) -> Self where
T: ToString,
R: ToString,
[src]
pub async fn new_from_env<T, R>(token: T, refresh_token: R) -> Self where
T: ToString,
R: ToString,
[src]Create a new QuickBooks 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.
pub async fn list_attachments_for_purchase(
&self,
purchase_id: &str
) -> Result<Vec<Attachment>, APIError>
[src]pub async fn list_attachments_for_bill(
&self,
bill_id: &str
) -> Result<Vec<Attachment>, APIError>
[src]pub async fn list_attachments_for_bill_payment(
&self,
bill_payment_id: &str
) -> Result<Vec<Attachment>, APIError>
[src]pub async fn fetch_bill_payment_page(
&self,
start_position: i64
) -> Result<Vec<BillPayment>, APIError>
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for QuickBooks
impl Send for QuickBooks
impl Sync for QuickBooks
impl Unpin for QuickBooks
impl !UnwindSafe for QuickBooks
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more