Last active
March 2, 2019 20:38
-
-
Save vialyx/3a4223e7add04e6cac40fe42f55adbc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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