Commit for testing XML.

This commit is contained in:
Patrick Kitchens 2018-04-26 05:33:52 -05:00
parent 576ee9b8b9
commit 28dd214897
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -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);