2

我现在正在测试 Google EMM API,我正在尝试生成一个注册 url 来注册企业。

scopes = ['https://www.googleapis.com/auth/androidenterprise']

credentials = ServiceAccountCredentials.from_json_keyfile_name(
    'my_key.json', scopes)
http_auth = credentials.authorize(Http())

API = 'androidenterprise'
VERSION = 'v1'
SERVICE = discovery.build(API, VERSION, http=http_auth)

response = SERVICE.enterprises().generateSignupUrl(callbackUrl='http://www.my_site.com').execute()

但是,我收到一个禁止的 403 响应代码作为响应,其中包含以下消息:“呼叫者未注册为 MDM。”。

在 Google 管理控制台上,Android for Work 已启用。

我还在这里申请了 EMM 社区: https ://connect.googleforwork.com/docs/DOC-13121

一个星期了,到现在还没有回复。但这与我的问题有关吗?

4

1 回答 1

1

您需要使用 Google EMM API 的主服务帐户来执行企业操作。这是您已被 Google 注册为供应商的帐户。它是由人注册的,这个过程不能在线自动完成。

于 2016-12-25T11:43:18.300 回答