Admin SDK Google Workspace 販売店サービスを使用すると、Apps Script で Admin SDK 販売店 API を使用できます。この API を使用すると、承認済みの販売パートナー管理者は、顧客の注文を行い、 Google Workspace 月単位の請求制サブスクリプションを管理できます。
リファレンス
このサービスの詳細については、Admin SDK Google Workspace Reseller API のリファレンス ドキュメントをご覧ください。Apps Script のすべての高度なサービスと同様に、Admin SDKGoogle Workspace 販売店サービスは、公開 API と同じオブジェクト、メソッド、パラメータを使用します。詳細については、メソッド シグネチャの決定方法をご覧ください。
/** * 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);}
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-21 UTC。"],[[["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."]]],[]]