mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
20 lines
509 B
PHP
20 lines
509 B
PHP
<?php
|
|
/*
|
|
* Routes is a class wrapper for the Strava REST API functions.
|
|
*/
|
|
|
|
class WPStrava_Routes
|
|
{
|
|
const ROUTES_URL = 'http://app.strava.com/routes/';
|
|
|
|
/**
|
|
* Get single route by ID.
|
|
*
|
|
* @param int $route_id ID of activity to retrieve.
|
|
* @return object stdClass representing this route.
|
|
* @author Daniel Lintott
|
|
*/
|
|
public function getRoute($route_id ) {
|
|
return WPStrava::get_instance()->get_api()->get( "routes/{$route_id}" );
|
|
} // getRouteDetails
|
|
} |