一种只需一个请求向AWS发送多个令牌的方法
我现在正在开发AWS-SNS推送通知。我想将令牌(端点)发送到AWS侧。因为这还可以。但是对于多个令牌,我们必须多次向AWS发送请求。这就是为什么我要添加一个请求的原因,有没有一种方法可以创建一个只需一个向AWS请求而创建多个令牌的方法。
这是一个令牌
$result = $client->createPlatformEndpoint(array(
'PlatformApplicationArn' => $platformApplicationArn,
'Token' => $input['token'],
));
$endPointArn = isset($result['EndpointArn']) ? $result['EndpointArn'] : '';
I am developing now AWS-SNS push notification. I want to sent token(endpoint) to AWS side. For this is ok. But for multiple tokens, we have to send requests to AWS multiple times. That's why I want to add for one request, is there a way to create multiple tokens with JUST ONE REQUEST to AWS.
Here is for one token
$result = $client->createPlatformEndpoint(array(
'PlatformApplicationArn' => $platformApplicationArn,
'Token' => $input['token'],
));
$endPointArn = isset($result['EndpointArn']) ? $result['EndpointArn'] : '';
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不可以,您需要为每个要添加的端点发出一个请求。
No, you are required to make one request per endpoint you wish to add.