Skip to content

Commit 87c2660

Browse files
authored
Trailing whitespace removal.
1 parent e68cf44 commit 87c2660

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

samples/QuickBooks.gs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Populate constants with data specific to your application,
33
* found at https://developer.intuit.com/v2/ui#/app/appdetail/XXXXXXX
44
*/
@@ -27,24 +27,21 @@ function run() {
2727
// Get the Company ID to be used in the request.
2828
var companyId = PropertiesService.getUserProperties()
2929
.getProperty('QuickBooks.companyId');
30-
31-
// Get company information as a test.
32-
var url = 'https://sandbox-quickbooks.api.intuit.com/v3/company/'
33-
+ companyId + '/companyinfo/' + companyId;
34-
30+
// Get Quickbooks Company information to test.
31+
var url = 'https://sandbox-quickbooks.api.intuit.com/v3/company/' +
32+
companyId + '/companyinfo/' + companyId;
3533
var response = UrlFetchApp.fetch(url, {
3634
headers: {
3735
Authorization: 'Bearer ' + service.getAccessToken(),
3836
Accept: 'application/json'
3937
}
4038
});
41-
4239
var result = JSON.parse(response.getContentText());
4340
Logger.log(JSON.stringify(result, null, 2));
4441
} else {
4542
// If not authorized, get authorization URL.
4643
var authorizationUrl = service.getAuthorizationUrl();
47-
44+
// View the Log to obtain the URL.
4845
Logger.log('Open the following URL and re-run the script: %s',
4946
authorizationUrl);
5047
}

0 commit comments

Comments
 (0)