janthomas89 / komoot-api-client
Simple, unofficial Komoot API client
0.1.0
2020-06-13 17:48 UTC
Requires
- symfony/browser-kit: ^5.1
- symfony/css-selector: ^5.1
- symfony/http-client: ^5.1
- symfony/mime: ^5.1
Requires (Dev)
- symfony/dotenv: ^5.1
This package is auto-updated.
Last update: 2024-04-14 02:34:58 UTC
README
Simple, unofficial Komoot API client that can only do two things:
- List a user's latest tour ids
- Download a user's tour GPX track
Warnig: The API client needs the user's credentials, which is basically a security nogo. It is just meant for a private project with my own Komoot account. In a public setting, one would prefer an OAuth based login using the official Komoot API. However, Komoot does grant access to its API for private purpose.
Install
composer require janthomas89/komoot-api-client
Usage
List a user's latest tour ids
$komoot = new KomootApiClient('foo@bar.de', 'yourPassword');
$latestTourIds = $komoot->getLatestTourIds();
Download a user's tour GPX track
$komoot = new KomootApiClient('foo@bar.de', 'yourPassword');
$tourGpx = $komoot->getTourGpx(123456);