Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @gooin/garmin-connect with all npm packages installed. Try it out:

const { GarminConnect } = require('../dist/index'); // Has to be run in an async function to be able to use the await keyword const main = async () => { // Create a new Garmin Connect Client const GCClient = new GarminConnect({ username: 'your-email', password: 'your-password' }); // TODO: Test China Domain // China Domain // const GCClient = new GarminConnect({ // username: 'your-email', // password: 'your-password' // }, 'garmin.cn'); // Uses credentials from garmin.config.json or uses supplied params await GCClient.login(); // // Get user info // const info = await GCClient.getUserInfo(); // Log info to make sure signin was successful // console.log(info); // // Get user settings const settings = await GCClient.getUserSettings(); // Log info to make sure signin was successful console.log(settings); }; // Run the code main();

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@gooin/garmin-connect v1.6.5

Makes it simple to interface with Garmin Connect to get or set any data point

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free