...
- Follow the instructions in Samples Setup to have the sample deployed.
Because we are using a Google spreadsheet as the datasource, we need to update the credentials for accessing the spreadsheet. This is done using a Client ID, Client Secret and Refresh Token that is generated from the Google API Console. Follow the google documentation for instructions on how to get an OAuth2 client ID and client secret. In order to get these credentials, you will be asked to provide an authorization redirect URL. Be sure to use localhost as the IP in the browser redirect URL.
- Now you can add the credentials to the GSpreadSample data service as follows:
Log in to the management console of your server using the following URL: https://localhost:9443/carbon/
Note For the purpose of this sample, be sure to use localhost as the IP in the above URL.
- Click List under Services in the navigator. The GSpreadSample will be listed there.
- Click the GSpreadSample to open the sample's dashboard.
- Click Edit Data Service Wizard to start editing the data service using the management console.
- Click Next until you reach the Datasource screen shown below.
- Click the GSpreadSample datasource to start editing the datasource.
- Note that a client ID, client secret and refresh token are specified by default. Replace the Client ID and Client Secret values using the new values you obtained in step 2 above.
- Click Generate Token. You will be redirected to the google consent page. After you approve that, the refresh token will be inserted into the Refresh Token field as shown below.
- Save the datasource. You can now run the sample as explained below.
...