From 28dd214897468e1a6b7edad8e2f553876c5ce319 Mon Sep 17 00:00:00 2001 From: Patrick Kitchens Date: Thu, 26 Apr 2018 05:33:52 -0500 Subject: [PATCH] Commit for testing XML. --- MoCha/Assets/Scenes/Main.unity | Bin 53688 -> 53792 bytes MoCha/Assets/Scripts/FitBitAPI.cs | 4 ++-- MoCha/ProjectSettings/ProjectSettings.asset | Bin 56395 -> 56411 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MoCha/Assets/Scenes/Main.unity b/MoCha/Assets/Scenes/Main.unity index 1cef1c2cb4c2a6dc7a4a29afd11485808ca1f395..a35ec1e12d0e9a225fd93650bd59a34a2aed70a5 100644 GIT binary patch delta 770 zcmYL{%}Z2K7{;HOJHi!Ft{koD`)7s5H!GT!Nkc)R#EWL)yT~Nn#%XZqrlnYvg1v1sR&>RI~eUVH;!xdb9hkFi(&8Dw#b7oF_fR z%0yG985YTgsHVf9F#9-Ap*J1cI$jP_P}NJm8eeD9N5_}Y8ymZ4688i!W&w?S{;_)b zzF`G7{H`rw@it(J8Czgmm`|3WXAA5I+b8qr>sh-^YY!+GJ{l1p8pB7ux`%X%$sM!tgyFaUFJ}VFfVXL-zceM;zD>UleTxT zRe|gySDIUyN#`C@khusvp_=Wruys9MQmvzx!hb6-$+MtVszrmR#X5f1*uWQ^m2hgP_zQf=VPy9Hct5bP)Pl9qeR`+OAE$ z6dW9$X|gy)-jb+@qaY40;@C+XiejsFap?Kv28YAR`Q6LSz4_wi{iUCN8z_tcM~ zvowxR=Tv0=#r?`zso353@Bc$s$UDrHecCMqysw2*WmReGK>OTn7g&P0> diff --git a/MoCha/Assets/Scripts/FitBitAPI.cs b/MoCha/Assets/Scripts/FitBitAPI.cs index 4dfdbca..476f977 100644 --- a/MoCha/Assets/Scripts/FitBitAPI.cs +++ b/MoCha/Assets/Scripts/FitBitAPI.cs @@ -22,7 +22,7 @@ namespace Assets.Scripts.Fitbit //if you don't know how to do the callback through a native browser on a mobile device //http://technicalartistry.blogspot.ca/2016/01/fitbit-unity-oauth-2-and-native.html //can probably help :) - private const string CustomAndroidScheme = "mochaapp://TheCallback"; + private const string CustomAndroidScheme = "mocha://"; private const string _tokenUrl = "https://api.fitbit.com/oauth2/token"; private const string _baseGetUrl = "https://api.fitbit.com/1/user/-/"; @@ -107,7 +107,7 @@ namespace Assets.Scripts.Fitbit { //we don't have a refresh token so we gotta go through the whole auth process. var url = - "https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=" + _clientId + "&redirect_uri=" + + "https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=" + _clientId + "&prompt=login&redirect_uri=" + CallBackUrl + "&scope=activity%20nutrition%20heartrate%20location%20profile%20sleep%20weight%20social"; Application.OpenURL(url); diff --git a/MoCha/ProjectSettings/ProjectSettings.asset b/MoCha/ProjectSettings/ProjectSettings.asset index d8a42fd8958e31040a217174a9390950cf663793..78e4db1f91b8718bba54c452c338b85cc73a7cec 100644 GIT binary patch delta 49 zcmX@TgZcIjW)231a|{d&ccM3Pw47zM-rRdupLepsWfop`pr~VBN>P4h3IpTjy|?-p E0kLxt0ssI2 delta 35 tcmV+;0NnrExC6_$0|)>B&Hw-a+)J?tgv|jfvyII!4U;g?471qUg8}j14j}*l