Ugly fitbit version :(
This commit is contained in:
parent
008b327c9d
commit
b873cbd083
6 changed files with 12 additions and 2 deletions
BIN
MoCha/Assets/Scenes/FitbitLogin.unity
Normal file
BIN
MoCha/Assets/Scenes/FitbitLogin.unity
Normal file
Binary file not shown.
9
MoCha/Assets/Scenes/FitbitLogin.unity.meta
Normal file
9
MoCha/Assets/Scenes/FitbitLogin.unity.meta
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e4e05e44213ffe141906009c29238b2e
|
||||||
|
timeCreated: 1525379963
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
|
@ -18,7 +18,7 @@ namespace Assets.Scripts.Fitbit
|
||||||
private const string _consumerSecret = "69307b9f332caf9946ef4e23cabde2e4";
|
private const string _consumerSecret = "69307b9f332caf9946ef4e23cabde2e4";
|
||||||
private const string _clientId = "22CX4L";
|
private const string _clientId = "22CX4L";
|
||||||
private const string _callbackURL = "http://localhost/callback";
|
private const string _callbackURL = "http://localhost/callback";
|
||||||
private const string CustomAndroidScheme = "mocha://";
|
private const string CustomAndroidScheme = "http://localhost/callback";
|
||||||
|
|
||||||
private const string _tokenUrl = "https://api.fitbit.com/oauth2/token";
|
private const string _tokenUrl = "https://api.fitbit.com/oauth2/token";
|
||||||
private const string _baseGetUrl = "https://api.fitbit.com/1/user/-/";
|
private const string _baseGetUrl = "https://api.fitbit.com/1/user/-/";
|
||||||
|
@ -73,6 +73,7 @@ namespace Assets.Scripts.Fitbit
|
||||||
{
|
{
|
||||||
_bFirstFire = false;
|
_bFirstFire = false;
|
||||||
}
|
}
|
||||||
|
GUI.Label(new Rect(10, 10, 100, 20), "Calories: " + _fitbitData.CurrentCalories);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LoginToFitbit()
|
public void LoginToFitbit()
|
||||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
||||||
m_EditorVersion: 2017.4.0f1
|
m_EditorVersion: 2017.3.1f1
|
||||||
|
|
Reference in a new issue