PHP code example of mkraemer / garmin-connect-sso
1. Go to this page and download the library: Download mkraemer/garmin-connect-sso library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mkraemer / garmin-connect-sso example snippets
$username = '...';
$password = '...';
$client = new GuzzleHttp\Client();
$garminSSO = new MKraemer\GarminConnect\SSO\SSO(
$client,
$username,
$password
);
$cookieJar = $garminSSO();
//use this cookieJar for authenticated guzzle requests
var_dump($cookieJar);