Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mulgul/garmin-wrapper-ts

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mulgul/garmin-wrapper-ts

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source



@mulgul/garmin-wrapper-ts

Typescript API wrapper for the Garmin IPCBound API

npm Github Actions GPL-3.0-or-later



Thw following library is wrapper around the Garmin IPCBound API. Garmin has two specific API's - The IPC Inbound API, and the IPC Outbound API. This API focuses on giving the tools to access these exact api's with ease. Currently this wrapper focuses on Inbound requests. Outbound service requires more than the scope of this library offers.

How to

InboundGarminWrapper

import { InboundGarminWrapper } from '@mulgul/garmin-wrapper-ts';

const credentials = {
    username: process.env.USERNAME,
    password: process.env.PASSWORD
};
const ipcUrl = process.env.IPCURL;
const imei = process.env.IMEI;

const api = new InboundGarminWrapper(ipcUrl, credentials, imei);

let data;
try {
    data = await api.getTrackingVersion();
} catch (e) {
    console.error(e)
}

options

All api calls take in an option param of type RequestInit. These contain basic header options etc.

await api.getTrackingVersion({
    body: 'foo',
    headers: {
        ...
    }
});

About this repository

License

The source code in this repository is distributed under the Apache-2.0 license. See the file.

This source code comes with absolutely no warranty. Use at your own risk.

FAQs

Package last updated on 17 Nov 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc