Skip to content

Instantly share code, notes, and snippets.

@vialyx
Last active March 2, 2019 20:38
Show Gist options
  • Save vialyx/3a4223e7add04e6cac40fe42f55adbc8 to your computer and use it in GitHub Desktop.
Save vialyx/3a4223e7add04e6cac40fe42f55adbc8 to your computer and use it in GitHub Desktop.
struct Constants {
static let authUrl = URL(string: "https://www.fitbit.com/oauth2/authorize")
static let responseType = "code"
static let clientId = "{YOUR_CLIENT_ID}"
static let redirectScheme = "vialyx://" // YOU MUST DEFINE THAT SCHEME IN PROJECT SETTIGNS
static let redirectUrl = "\(redirectScheme)fitbit/auth"
static let scope = ["activity", "heartrate", "location", "nutrition", "profile", "settings", "sleep", "social", "weight"]
static let expires = "604800"
private init() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment