Enterprises: sendTestPushNotification

发送测试通知,以验证 EMM 与此企业的 Google Cloud Pub/Sub 服务的集成。

请求

HTTP 请求

POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/sendTestPushNotification

参数

参数名称 说明
路径参数
enterpriseId string 企业 ID。

授权

此请求需要获得以下范围的授权:

范围
https://www.googleapis.com/auth/androidenterprise

如需了解详情,请参阅身份验证和授权页面。

请求正文

使用此方法时请勿提供请求正文。

响应

如果成功,此方法将返回采用以下结构的响应正文:

{
  "topicName": string,
  "messageId": string
}
属性名称 说明 备注
topicName string 接收此企业已注册帐号的通知的 Cloud Pub/Sub 主题的名称。
messageId string 发送的测试推送通知的消息 ID。