mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-19 06:34:03 +09:00
Moved code to src directory
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Routes is a class wrapper for the Strava REST API functions.
|
||||
*
|
||||
* @author Daniel Lintott
|
||||
* @since 1.3.0
|
||||
*/
|
||||
class WPStrava_Routes {
|
||||
const ROUTES_URL = 'https://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 get_route( $route_id ) {
|
||||
return WPStrava::get_instance()->get_api()->get( "routes/{$route_id}" );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user