public function uploadActivity($file, $activity_type = null, $name = null, $description = null, $private = null, $trainer = null, $commute = null, $data_type = null, $external_id = null)
    {
        try {
            return $this->service->uploadActivity($file, $activity_type, $name, $description, $private, $trainer, $commute, $data_type, $external_id);
        } catch (ServiceException $e) {
            throw new ClientException('[SERVICE] ' . $e->getMessage());
        }
    }
public function uploadActivity($file, $activity_type = null, $name = null, $description = null, $private = null, $trainer = null, $commute = null, $data_type = null, $external_id = null)
    {
        try {
            return $this->service->uploadActivity($file, $activity_type, $name, $description, $private, $trainer, $commute, $data_type, $external_id);
        } catch (ServiceException $e) {
            throw new ClientException('[SERVICE] ' . $e->getMessage());
        }
    }
public function uploadActivity ( $ file , $ activity_type = null , $ name = null , $ description = null , $ private = null , $ trainer = null , $ commute = null , $ data_type = null , $ external_id = null ) { try { return $ this -> service -> uploadActivity ( $ file , $ activity_type , $ name , $ description , $ private , $ trainer , $ commute , $ data_type , $ external_id ) ; } catch ( ServiceException $ e ) { throw new ClientException ( '[SERVICE] ' . $ e -> getMessage ( ) ) ; } }
Upload an activity

@link    https://strava.github.io/api/v3/uploads/#post-file
@param   mixed $file
@param   string $activity_type
@param   string $name
@param   string $description
@param   int $private
@param   int $trainer
@param   int $commute
@param   string $data_type
@param   string $external_id
@return  array
@throws  Exception
Upload an activity