Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surfoo/geocaching-api-demo
Demo of the Geocaching Api
https://github.com/surfoo/geocaching-api-demo
Last synced: 7 days ago
JSON representation
Demo of the Geocaching Api
- Host: GitHub
- URL: https://github.com/surfoo/geocaching-api-demo
- Owner: Surfoo
- License: mit
- Created: 2018-06-19T21:46:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T21:00:57.000Z (about 2 months ago)
- Last Synced: 2024-10-15T02:37:02.707Z (22 days ago)
- Language: PHP
- Size: 392 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geocaching SDK PHP Demo
## Try the demo
composer install
Edit the file `app/config.php` with your OAuth keys, callback URL and environment (`staging` or `production`)
Your callback URL must be authorized by Groundspeak, you need to contact the support (`http://localhot:8000` is a good example for your development).
### Run the server
php -S 0.0.0.0:8000 -t public
Run the command above and open your browser on http://localhost:8000
The code written `index.php` is an example of implementation of the OAuth process (inspired by the example of [thephpleague](https://github.com/thephpleague/oauth2-client)) and the SDK for the [Geocaching API](https://github.com/Surfoo/geocaching-php-sdk), feel free to modify it for your needs.