Skip to content

AryeoHQ/aryeo-api-dart-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

Requirements

Dart 2.0 or later

Installation & Usage

Add the following block to pubspec.yaml:

dependencies:
  aryeo:
    git:
      url: https://github.com/AryeoHQ/aryeo-api-dart-sdk.git
      ref: master

Getting Started

import 'package:aryeo/api.dart';

void main() {
    defaultApiClient.getAuthentication<HttpBearerAuth>('JWT').accessToken = 'API_KEY';

    final api_instance = ListingsApi();
    const uuid = 'UUID';

    try {
        api_instance.getListingsId(uuid)                    
                    .catchError((e) {
                        print("Got error: ${e.error}");
                        return 42;
                    })
                    .then((result) {
                        print(result.data?.address.addressLine1);
                    });                                                                    
    } catch (e) {
        print('Exception when calling ListingsApi->getListingsId: $e\n');
    }   
}

Documentation for API Endpoints

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

Class Method HTTP request Description
AppointmentsApi getAppointments GET /appointments List all appointments.
AppointmentsApi getAvailableDates GET /scheduling/available-dates Fetch available days for a user or group
AppointmentsApi getAvailableTimeslots GET /scheduling/available-timeslots Fetch available timeslots for a user or group
AppointmentsApi getUnconfirmedAppointments GET /unconfirmed-appointments List all unconfirmed appointments.
AppointmentsApi getUnconfirmedAppointmentsId GET /unconfirmed-appointments/{unconfirmed_appointment_id} Retrieve an unconfirmed appointment.
AppointmentsApi putAppointmentsAppointmentIdCancel PUT /appointments/{appointment_id}/cancel Cancel an appointment.
AppointmentsApi putAppointmentsAppointmentIdReschedule PUT /appointments/{appointment_id}/reschedule Reschedule an appointment.
ListingsApi getListings GET /listings List all listings.
ListingsApi getListingsId GET /listings/{listing_id} Retrieve a listing.
OrdersApi getOrders GET /orders List all orders.
OrdersApi getOrdersId GET /orders/{order_id} Retrieve an order.
OrdersApi getProducts GET /products List all products.
OrdersApi postOrders POST /orders Create an order.
VendorsApi getVendors GET /vendors List all vendors.
VendorsApi getVendorsId GET /vendors/{vendor_id} Retrieve a vendor.

Documentation For Models

Documentation For Authorization

Token

  • Type: HTTP Bearer authentication

Author

jarrod@aryeo.com