Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Yönetici SDK'sı Google Workspace Bayi hizmeti, Apps Script'te Yönetici SDK'sı Bayi API'sini kullanmanıza olanak tanır.
Bu API, yetkili bayi yöneticilerinin müşteri siparişleri vermesine ve Google Workspace aylık faturalandırılan abonelikleri yönetmesine Google Workspace olanak tanır.
Referans
Bu hizmet hakkında ayrıntılı bilgi için Yönetici SDK'sı Google Workspace Bayi API'sinin referans dokümanlarına bakın. Apps Script'teki tüm gelişmiş hizmetler gibi Yönetici SDK'sıGoogle Workspace Bayi hizmeti de herkese açık API ile aynı nesneleri, yöntemleri ve parametreleri kullanır. Daha fazla bilgi için Metod imzaları nasıl belirlenir? başlıklı makaleyi inceleyin.
Aşağıdaki örnek kodda API'nin 1. sürümü kullanılmaktadır.
Aboneliklerin listesini alma
Bu örnekte, müşteri kimliği, oluşturulma tarihi, plan adı ve SKU kimliği dahil olmak üzere aboneliklerin listesi günlüklenir.
Sonuçların tam listesine erişmek için sayfa jetonlarının kullanıldığına dikkat edin.
/** * 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);}
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-06-05 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."]]],[]]