本文整理汇总了TypeScript中googleapis.google.androidpublisher方法的典型用法代码示例。如果您正苦于以下问题:TypeScript google.androidpublisher方法的具体用法?TypeScript google.androidpublisher怎么用?TypeScript google.androidpublisher使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类googleapis.google
的用法示例。
在下文中一共展示了google.androidpublisher方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: fromServiceAccount
/*
* Library initialization with a service account to access Play Developer API and an initialized FirebaseApp.
* Library consumer should use this method to initialize the library.
*/
static fromServiceAccount(playApiServiceAccount: any, firebaseApp: app.App): PlayBilling {
// Initialize Google Play Developer API client
const jwtClient = new google.auth.JWT(
playApiServiceAccount.client_email,
null,
playApiServiceAccount.private_key,
['https://www.googleapis.com/auth/androidpublisher'], // Auth scope for Play Developer API
null
);
const playDeveloperApiClient = google.androidpublisher({
version: 'v2',
auth: jwtClient
});
return this.fromApiClient(playDeveloperApiClient, firebaseApp);
}