View Source Squeeze.Tasks.ResyncStravaActivities (OpenPace v0.0.1)
A task to resync all strava activities for all users.
Link to this section Summary
Functions
Run the task to resync Strava activities.
Checks if the credential still has valid access to Strava Returns {:ok, athlete} if valid, {:error, reason} if not
Link to this section Functions
Run the task to resync Strava activities.
options
Options
:user_id- Optional user ID to sync activities for a specific user:silent- Boolean to suppress output messages. Defaults to false
examples
Examples
# Sync all users
iex> ResyncStravaActivities.run()
# Sync specific user
iex> ResyncStravaActivities.run(user_id: 123)
# Sync silently
iex> ResyncStravaActivities.run(silent: true)
Checks if the credential still has valid access to Strava Returns {:ok, athlete} if valid, {:error, reason} if not