问题标签 [google-reseller-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
573 浏览

google-api - 如何在 Google Apps Reseller API 中使用 nextPageToken?

我正在编写一个简单的 Java 应用程序,它使用 Reseller API 从 Google Apps Reseller 获取所有客户订阅。但是,由于最大大小为每页 100 个,我无法对结果进行分页,而且我无法确定下一页标记。这是到目前为止的代码。如何使用 setNextPageToken() 并打印所有结果?

0 投票
0 回答
312 浏览

google-reseller-api - 用户代码未处理 Google.GoogleApiException

我无法使用服务凭证模型连接到 Google Apps Reseller API(适用于 .NET)。

关于我哪里出错的任何想法?

脚步:

  1. 在谷歌开发者控制台中创建服务应用程序
  2. 启用的 API(Admin SDK;BigQuery API;Debuglet Controller API;Enterprise;License Manager API;Google Apps Reseller API;Google Cloud Logging API;Google Cloud SQL;Google Cloud Storage;Google Cloud Storage JSON API;站点验证 API)
  3. 在 Google Apps 域(经销商域)上创建 API 权限

资源:

======================

应用程序错误:

0 投票
0 回答
92 浏览

google-reseller-api - 我可以使用经销商域下的服务帐户在转售域下创建/管理用户吗?

作为经销商,我是否可以利用服务帐户调用经销商 API 和目录 API 来创建新域并在其下管理用户帐户,而无需用户交互/登录/同意?

Reseller API 的端到端教程 ( https://developers.google.com/admin-sdk/reseller/v1/codelab/end-to-end ) 表明这是可能的。我可以在我的经销商域下创建一个服务帐户。使用此服务帐户,我可以在我的经销商域下模拟超级用户管理员,并可以实现上述目的。

另一方面,当我阅读有关授权请求的文章 ( https://developers.google.com/admin-sdk/reseller/v1/how-tos/authorizing ) 时,它提到“对 Google Apps 的所有请求经销商 API 必须由经过身份验证的用户授权”,这似乎表明需要某种形式的同意。此外,它没有提到支持服务帐户。

我试图在论坛中搜索类似的主题,但我看到的反应有些矛盾。答案范围从“是的,这有效”到“经销商 API 不支持服务帐户”或“必须在每个转售域中手动启用 API 访问”。

谢谢!

0 投票
1 回答
117 浏览

sandbox - 在沙盒中创建新客户收到 500 错误。谷歌转销商 API v1

我已经验证了我的请求,当我尝试在沙盒中创建新客户时,我收到 500 错误。

要求:

回复:

0 投票
3 回答
300 浏览

google-reseller-api - AdminReseller.Subscriptions.changeSeats() 函数示例...

有没有人为 Subscriptions 提供 changeSeats 函数的工作示例?

我正在为我们的客户自动订购许可证,但我无法让它工作。

我得到了subscriptions.list 但在chageSeats 中我得到一个警告,我传递了错误数量的参数,不幸的是我不知道我应该传递什么并且在文档中找不到它,只有http GET 请求.. .

感谢您的任何帮助。

这就是我所拥有的...

0 投票
2 回答
140 浏览

node.js - 我正在尝试使用节点的谷歌经销商 api 插入新客户。我收到 400 错误

//参数

} //使用api

我收到此错误:

0 投票
1 回答
372 浏览

java - Google Reseller API 获取 GoogleJsonResponseException:403 Forbidden

我正在开发一个使用 Google Apps Reseller API(在此处找到)的项目。

我遇到了 403 禁止异常。

代码(大部分来自 Google Codelab Example Here

这是我用来连接 API 的类。我提供了一个 p12 文件,它使用服务帐户,在调用 API 时,它冒充其中一位超级管理员,因此应该允许它进行所有调用。

目前我只使用只读范围。

但是我在拨打电话时收到以下错误消息:

0 投票
0 回答
1852 浏览

google-api - G Suite 是否有用于测试转销商 API 的沙盒或测试帐户

我想使用 G Suite Reseller API 来销售 G Suite,现在我正在做技术评估。Google 是否向合作伙伴提供沙盒或测试帐户以进行代码开发和测试?如何申请沙盒或经销商测试帐户?

谢谢。

0 投票
1 回答
117 浏览

google-reseller-api - 获取 G Suite 座位价格(尤其是折扣)

我正在使用Google Reseller API制作一个工具来为 G Suite 用户订购新许可证(增加席位)。

现在我的数据库中有当前价格,工作正常,但它没有考虑特殊情况,例如从G Suite Basic升级到G Suite Business,其中第一个合同期的价格为 12 的价格为 18 个月.

有没有办法获得 G Suite 座位的当前价格或特价?

0 投票
1 回答
1202 浏览

google-api - 使用经销商 api 范围获取“Google_Service_Exception”

使用经销商 API 范围获取“Google_Service_Exception”:

致命错误:未捕获的异常 'Google_Service_Exception' 带有消息 '{ "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } ' 在 C:\xampp\htdocs\customerportal\vendor\google\apiclient\src\Google\Http\REST.php:118 堆栈跟踪:#0 C :\xampp\htdocs\customerportal\vendor\google\apiclient\src\Google\Http\REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #1 [内部函数]: Google_Http_REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #2 C:\xampp\htdocs\customerportal\vendor\google\apiclient\src\Google\Task\Runner.php(181): call_user_func_array(Array, Array) #3 C:\xampp\htdocs\customerportal\vendor\google\apiclient\src \Google\Http\REST.php(58): Google_Task_Runner->run() #4 C:\xampp\htdocs\customerportal\vendor\google\apiclient\src\Goog 在 C:\xampp\htdocs\customerportal\vendor\ google\apiclient\src\Google\Http\REST.php 在第 118 行