2017 © Pedro Peláez
 

library garmin-wellness

Unofficial Oauth 1.0 adapter for garmin-wellness API

image

techgyani/garmin-wellness

Unofficial Oauth 1.0 adapter for garmin-wellness API

  • Thursday, December 15, 2016
  • by techgyani
  • Repository
  • 3 Watchers
  • 3 Stars
  • 991 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

Unofficial garmin-wellness adapter for Oauth 1.0 Client.

This package provides a Garmin API Client for the PHP League's OAuth 1.0 Client., (*1)

Installation

composer require techgyani/garmin-wellness

Usage

Usage is the same as The League's OAuth client, using techgyani\OAuth1\Client\Server\Garmin as the provider., (*2)

$server = new techgyani\OAuth1\Client\Server\Garmin([
    'identifier'   => 'your-client-id',
    'secret'       => 'your-client-secret',
    'callback_uri' => 'http://callback.url/callback',
]);

Please refer to the Garmin wellness API for the available endpoints., (*3)

Below are the steps to test examples :, (*4)

1. Copy examples in your web-server root if needed.
2. Define consumerKey, consumerSecret and callback_uri enviornment variables or alternatively set them directly in all php files in example. Below is the .htaccess code to demonstrate how you may do it.


setEnv consumerKey sddsadas
setEnv consumerSecret fdsfdsfsd
setEnv callback_uri http://localhost/garmin-wellness/vendor/techgyani/garmin-wellness/examples/garmin_callback.php

3. Now run examples/index.php in your browser. It should redirect you to the garmin server, where you need to login and authorize the application.
4. Once authorization is done user will be redirected to examples/garmin_api_test.php. There you must see activity summary output if everything is okay.
5. You can change parameter values in examples/garmin_api_test.php because it is picking up user token from the session.

The Versions

15/12 2016

dev-master

9999999-dev

Unofficial Oauth 1.0 adapter for garmin-wellness API

  Sources   Download

MIT

The Requires

 

15/12 2016

0.1.3

0.1.3.0

Unofficial Oauth 1.0 adapter for garmin-wellness API

  Sources   Download

MIT

The Requires

 

15/12 2016

0.1.2

0.1.2.0

Oauth 1.0 adapter for garmin-wellness

  Sources   Download

MIT

The Requires

 

15/12 2016

0.1.0

0.1.0.0

Oauth 1.0 adapter for garmin-wellness

  Sources   Download

MIT

The Requires

 

15/12 2016

0.1.1

0.1.1.0

Oauth 1.0 adapter for garmin-wellness

  Sources   Download

MIT

The Requires