/** * List Admin SDK reseller. * @see https://developers.google.com/admin-sdk/reseller/reference/rest/v1/subscriptions/list */functionlistSubscriptions(){constoptionalArgs={maxResults:10};try{constresponse=AdminReseller.Subscriptions.list(optionalArgs);constsubscriptions=response.subscriptions;if(!subscriptions||subscriptions.length===0){console.log('Nosubscriptionsfound.');return;}console.log('Subscriptions:');for(constsubscriptionofsubscriptions){console.log('%s(%s,%s)',subscription.customerId,subscription.skuId,subscription.plan.planName);}}catch(err){// TODO (developer)- Handle exception from the Reseller APIconsole.log('Failedwitherror%s',err.message);}}