Socket
Socket
Sign inDemoInstall

@snapp-store/miare-sdk

Package Overview
Dependencies
1
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @snapp-store/miare-sdk

A javascript sdk for mia.re api


Version published
Weekly downloads
10
decreased by-64.29%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

miare-sdk

Miare SDK is a Typescript library for dealing with mia.re 3rd party api 🛵.

Installation

Use the package manager npm to install miare-sdk.

npm install @snapp-store/miare-sdk

Usage

Pass your API key and environment between "staging" or "production" to Miare class and create an instance of it.

import Miare from '@snapp-store/miare-sdk';

const miare = new Miare('<YOUR_MIARE_API_KEY>', 'staging');

const someFancyFunction = async () => {
  // some loginc here

  const canceledTrips = await miare.getTrips({ state: 'canceled_by_client' });

  return canceledTrips;
};

Available Methods

  • createTrip(createTripParameters)
  • addCourseToTrip(tripid, newCourse)
  • removeCourseFromTrip(courseId)
  • cancelTripById(tripId)
  • getTripById(tripId)
  • getTrips(getTripsParameters)
  • getEstimatePrice(source, destination)
  • getAreas()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

FAQs

Last updated on 24 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc