FNC Cloud Pack demos

Hello;

Very sorry, I tried, but I can't follow the FNC Pack demos. I only have a DEMO project which uses units from the shared folder, but I cannot find for example where to define scopes, and how do I ask for authorization, or how do I testtokens.

Thank you.

Hi,

You can use the Connect call to start the authorization process. If authorization is successful the OnConnected event gets triggered and you can start calls to access the service API.

Example:

  TMSFNCCloudGoogleGmail1.Authentication.Key := 'abc';
  TMSFNCCloudGoogleGmail1.Authentication.Secret := 'xyz';
  TMSFNCCloudGoogleGmail1.Authentication.CallBackURL := 'http://localhost:8000';
  TMSFNCCloudGoogleGmail1.Scopes.Add('scope');
  TMSFNCCloudGoogleGmail1.Connect;

Please have a look at the CloudStorageServiceDemo for a full working example.
Other components in the TMS FNC Cloud Pack work in the same way.