File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments