我试图获取通过POST Man从aws pinpoint发送消息的应用程序ID,但是我无法获得应用程序ID。
/ v1 / apps / application-id / messages
这是我想要的应用程序ID。你们能帮我做到这一点吗?我需要对我的PHP项目实施AWS精确消息。
谢谢
答案 0 :(得分:0)
Maybe I can get you started.
Summary: You are referring to the application-id that is the PATH component of the POST URL for sending a direct message from Pinpoint to a recipient, which is discussed here:
https://docs.aws.amazon.com/pinpoint/latest/apireference/rest-api-messages.html
The application-id identifies the app instance that will receive the message from Pinpoint.
Solution: I don´t know the device or execution context of your project.
However, according to the Pinpoint documentation, the Amazon Pinpoint management console or the Amazon Pinpoint REST API enable you to send push notifications to a recipient, regardless of the recipient´s device type or platform (see "Using Amazon Pinpoint to send push notifications" at the following URL: https://aws.amazon.com/pinpoint/push-notification-services/).
Using the Pinpoint REST API, you get the application-id from Pinpoint when you create an app of your project. See the HTTP POST method of the apps resource page here:
https://docs.aws.amazon.com/pinpoint/latest/apireference/rest-api-apps.html
The POST method creates an app, and its ApplicationResponse schema contains the id attribute that is "The unique ID for the application."
Hope this helps.
答案 1 :(得分:0)
如果您已有现有的Amazon Pinpoint应用程序,则可以使用以下选项检索Pinpoint项目ID或应用程序ID:
1):Amazon Pinpoint控制台:
或
2) Amazon Pinpoint CLI “获取应用” 命令,如下所示:-
3)使用诸如:p的工具的Amazon Pinpoint REST API
a)邮递员:,您可以使用此Amazon Pinpoint tutorial for POSTMAN来设置邮递员,并通过调用“ GetApps来执行Amazon Pinpoint操作,包括检索Pinpoint应用程序ID或项目ID。 “ 或” GetApp“ API。
b)awscurl: 下面是如何使用awscurl检索Pinpoint Application ID或项目ID的示例说明:
$ awscurl -H "Content-type: application/json" --service mobiletargeting https://pinpoint.us-east-1.amazonaws.com/v1/apps/