Strava\API\Client::updateActivity PHP Метод

updateActivity() публичный Метод

Update an activity
public updateActivity ( integer $id, string $name = null, string $type = null, boolean $private = false, boolean $commute = false, boolean $trainer = false, string $gear_id = null, string $description = null ) : array
$id integer
$name string
$type string
$private boolean
$commute boolean
$trainer boolean
$gear_id string
$description string
Результат array
    public function updateActivity($id, $name = null, $type = null, $private = false, $commute = false, $trainer = false, $gear_id = null, $description = null)
    {
        try {
            return $this->service->updateActivity($id, $name, $type, $private, $commute, $trainer, $gear_id, $description);
        } catch (ServiceException $e) {
            throw new ClientException('[SERVICE] ' . $e->getMessage());
        }
    }