Table of Contents

Class AuthorizationScope

Namespace
Tudormobile.Strava.Model
Assembly
Tudormobile.Strava.dll

Authorization Scope

public class AuthorizationScope
Inheritance
AuthorizationScope
Inherited Members

Remarks

Requested scopes, as a comma delimited string, e.g. "activity:read_all,activity:write". Applications should request only the scopes required for the application to function normally. The scope activity:read is required for activity webhooks.

read: read public segments, public routes, public profile data, public posts, public events, club feeds, and leaderboards

read_all:read private routes, private segments, and private events for the user

profile:read_all: read all profile information even if the user has set their profile visibility to Followers or Only You

profile:write: update the user's weight and Functional Threshold Power (FTP), and access to star or unstar segments on their behalf

activity:read: read the user's activity data for activities that are visible to Everyone and Followers, excluding privacy zone data

activity:read_all: the same access as activity:read, plus privacy zone data and access to read the user's activities with visibility set to Only You

activity:write: access to create manual activities and uploads, and access to edit any activities that are visible to the app, based on activity read access level

Constructors

AuthorizationScope(PublicScopes, ProfileScopes, ActivityScopes)

Create and initialize a new instance.

public AuthorizationScope(AuthorizationScope.PublicScopes publicScope = (AuthorizationScope.PublicScopes)0, AuthorizationScope.ProfileScopes profileScope = (AuthorizationScope.ProfileScopes)0, AuthorizationScope.ActivityScopes activityScope = (AuthorizationScope.ActivityScopes)0)

Parameters

publicScope AuthorizationScope.PublicScopes

General scope.

profileScope AuthorizationScope.ProfileScopes

Profile scope.

activityScope AuthorizationScope.ActivityScopes

Activity scope.

Fields

READ

Read public data only.

public static readonly AuthorizationScope READ

Field Value

AuthorizationScope

Remarks

These are the minimal meaningful permissions.

Properties

ActivityScope

Activity scope.

public AuthorizationScope.ActivityScopes ActivityScope { get; set; }

Property Value

AuthorizationScope.ActivityScopes

ProfileScope

Profile scope.

public AuthorizationScope.ProfileScopes ProfileScope { get; set; }

Property Value

AuthorizationScope.ProfileScopes

PublicScope

General scope.

public AuthorizationScope.PublicScopes PublicScope { get; set; }

Property Value

AuthorizationScope.PublicScopes

Methods

ToString()

Converts scope instance to a string.

public override string ToString()

Returns

string