public Publish ( PublishRequest request ) : PublishResponse | ||
request | PublishRequest | Container for the necessary parameters to execute the Publish service method. |
return | PublishResponse |
messageId
is returned, the message has been saved and Amazon SNS will attempt to deliver it to the topic's subscribers shortly. The format of the outgoing message to each subscribed endpoint depends on the notification protocol. To use the Publish
action for sending a message to a mobile endpoint, such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for the TargetArn parameter. The EndpointArn is returned when making a call with the CreatePlatformEndpoint
action.
For more information about formatting messages, see Send Custom Platform-Specific Payloads in Messages to Mobile Devices.
public Publish ( PublishRequest request ) : PublishResponse | ||
request | PublishRequest | Container for the necessary parameters to execute the Publish service method. |
return | PublishResponse |