public function createActivity($name, $type, $start_date_local, $elapsed_time, $description = null, $distance = null, $private = null, $trainer = null)
    {
        try {
            return $this->service->createActivity($name, $type, $start_date_local, $elapsed_time, $description, $distance, $private, $trainer);
        } catch (ServiceException $e) {
            throw new ClientException('[SERVICE] ' . $e->getMessage());
        }
    }
public function createActivity($name, $type, $start_date_local, $elapsed_time, $description = null, $distance = null, $private = null, $trainer = null)
    {
        try {
            return $this->service->createActivity($name, $type, $start_date_local, $elapsed_time, $description, $distance, $private, $trainer);
        } catch (ServiceException $e) {
            throw new ClientException('[SERVICE] ' . $e->getMessage());
        }
    }
public function createActivity ( $ name , $ type , $ start_date_local , $ elapsed_time , $ description = null , $ distance = null , $ private = null , $ trainer = null ) { try { return $ this -> service -> createActivity ( $ name , $ type , $ start_date_local , $ elapsed_time , $ description , $ distance , $ private , $ trainer ) ; } catch ( ServiceException $ e ) { throw new ClientException ( '[SERVICE] ' . $ e -> getMessage ( ) ) ; } }
Create an activity

@link    https://strava.github.io/api/v3/activities/#create
@param   string $name
@param   string $type
@param   string $start_date_local
@param   int $elapsed_time
@param   string $description
@param   float $distance
@param   int $private
@param   int $trainer
@return  array
@throws  Exception
Create an activity