/** * Logs the list of subscriptions, including the customer ID, date created, plan * name, and the sku ID. Notice the use of page tokens to access the full list * of results. * @see https://developers.google.com/admin-sdk/reseller/reference/rest/v1/subscriptions/list */functiongetSubscriptions(){letresult;letpageToken;do{result=AdminReseller.Subscriptions.list({pageToken:pageToken});for(constsubofresult.subscriptions){constcreationDate=newDate();creationDate.setUTCSeconds(sub.creationTime);console.log('customerID:%s,datecreated:%s,planname:%s,skuid:%s',sub.customerId,creationDate.toDateString(),sub.plan.planName,sub.skuId);}pageToken=result.nextPageToken;}while(pageToken);}
[null,null,["最后更新时间 (UTC):2024-12-21。"],[[["The Admin SDK Google Workspace Reseller service enables authorized reseller admins to manage Google Workspace subscriptions and place customer orders via Apps Script."],["This advanced service requires prior enabling before use and mirrors the functionality of the Admin SDK Reseller API."],["Comprehensive reference documentation, support resources, and sample code are readily available for developers."],["Sample code showcases how to retrieve and log a list of subscriptions, demonstrating pagination for accessing the complete result set."]]],[]]