我现在正在测试 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
一个星期了,到现在还没有回复。但这与我的问题有关吗?