Since issue https://github.com/10REM/php-garmin-connect/issues/61 The php code is no more working I plan to port part of https://github.com/matin/garth code