GithubHelp home page GithubHelp logo

aryeo-api-rust-sdk's Introduction

Aryeo SDK

Introduction

This is an auto-generated client SDK for interfacing with the Aryeo API. We support a variety of languages and frameworks that are a great starting point for experimenting with the API. If there is an additional language or framework that you want to see supported, then please reach out and make a contribution!

Dart Go Node JS PHP Ruby Rust Swift

Authentication

To start using the Aryeo API, you will need to generate an API key from your group's developer settings. Then, make sure to provide your API key as a bearer token. Requests made without an API key will result in a 401 Unauthorized error.

Example: Authorization: Bearer {API_KEY}

Installation

Add the following block to Cargo.toml:

[dependencies]
aryeo = { git = "https://github.com/AryeoHQ/aryeo-api-rust-sdk", branch = "master" }

Getting Started

use aryeo::apis::{configuration::Configuration, listings_api as aryeo_api};

#[tokio::main]
async fn main() {
    let mut config = Configuration::default();    
    config.bearer_access_token = Some(String::from("API_KEY"));
    
    let result = aryeo_api::get_listings_id(
        &config, 
        "UUID"
    )
    .await;

    let result = match result {
        Ok(result) => result,
        Err(error) => panic!("Something went wrong, {:?}", error),
    };
    
    println!("{:?}", result);
}

Documentation for API Endpoints

All URIs are relative to https://api.aryeo.com/v1

Class Method HTTP request Description
AppointmentsApi get_appointments GET /appointments List all appointments.
AppointmentsApi get_available_dates GET /scheduling/available-dates Fetch available days for a user or group
AppointmentsApi get_available_timeslots GET /scheduling/available-timeslots Fetch available timeslots for a user or group
AppointmentsApi get_unconfirmed_appointments GET /unconfirmed-appointments List all unconfirmed appointments.
AppointmentsApi get_unconfirmed_appointments_id GET /unconfirmed-appointments/{unconfirmed_appointment_id} Retrieve an unconfirmed appointment.
AppointmentsApi put_appointments_appointment_id_cancel PUT /appointments/{appointment_id}/cancel Cancel an appointment.
AppointmentsApi put_appointments_appointment_id_reschedule PUT /appointments/{appointment_id}/reschedule Reschedule an appointment.
ListingsApi get_listings GET /listings List all listings.
ListingsApi get_listings_id GET /listings/{listing_id} Retrieve a listing.
OrdersApi get_orders GET /orders List all orders.
OrdersApi get_orders_id GET /orders/{order_id} Retrieve an order.
OrdersApi get_products GET /products List all products.
OrdersApi post_orders POST /orders Create an order.
VendorsApi get_vendors GET /vendors List all vendors.
VendorsApi get_vendors_id GET /vendors/{vendor_id} Retrieve a vendor.

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

[email protected]

aryeo-api-rust-sdk's People

Contributors

actions-user avatar jarrodparkes avatar

Watchers

James Cloos avatar  avatar Brendan Quinlan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.