Skip to content

Instantly share code, notes, and snippets.

@an01f01
Created September 15, 2022 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an01f01/e02fc3fbf8c3ecb9ca03d349bba251e4 to your computer and use it in GitHub Desktop.
Save an01f01/e02fc3fbf8c3ecb9ca03d349bba251e4 to your computer and use it in GitHub Desktop.
procedure THeaderFooterwithNavigation.FormCreate(Sender: TObject);
var
url: string;
begin
{ This defines the default active tab at runtime }
TabControl1.First(TTabTransition.None);
{ TODO: Navigate to URL on load }
url := 'https://www.fitbit.com/oauth2/authorize?response_type=code' +
'&client_id=<YOUR_CLIENT_ID_GOES_HERE>' +
'&redirect_uri=http%3A%2F%2Flocalhost' +
'&scope=activity%20heartrate%20location%20nutrition%20profile%20settings%20sleep%20social%20weight%20oxygen_saturation%20respiratory_rate%20temperature' +
'&expires_in=604800';
TMSFNCWebBrowser1.Visible := true;
TMSFNCWebBrowser1.Navigate(url);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment