This documentation applies to older versions of WSO2 ESB connectors. To find the documentation relevant to the version you are using, select the connector from the WSO2 Connector Store and click Documentation.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Properties
  • endpointArn: Required - The EndpointArn for GetEndpointAttributes inputto get input for retrieving endpoint attributes.
Sample request

Following is a sample REST/XML request that can be handled by the getEndpointAttributes getEndpointAttributes operation.

Code Block
languagexml
titleSample Request for getEndpointAttributes
<getEndpointAttributes>
   	<accessKeyId>AKIAJXHDDKJWR2ZVPEBTQ</accessKeyId>
   	<secretAccessKey>N9VT2P3MaL7Li1P3hJudf1GTtOO7Kd7NfPlyYG8f/6</secretAccessKey>
   	<region>us-west-2</region>
   	<version></version>
	<endpointArn>arn:aws:sns:us-west-2:492228198692:endpoint/GCM/AppOptional/5b9c46a7-f8ef-3d2d-934a-08ce556aeab9</endpointArn>
</getEndpointAttributes> 

Anchor
setEndpointAttributes
setEndpointAttributes

...

Setting Endpoint Attributes

The setEndpointAttributes The setEndpointAttributes operation allows you to sets the endpoint attributes for an endpoint for a device on one of the supported push notification services, such as GCM and APNS.

...

Properties
  • endpointArn: Required - EndpointArn used for SetEndpointAttributes actionThe EndpointArn to set endpoint attributes.
  • attributesEntryKey: Required - The key attribute of endpoints need to be set (CustomUserData). For example, CustomUserData.
  • attributesEntryValue: Required - The new value for that the key attribute key.

Tip
iconfalse
titleInfo

attributesEntry is attributesEntry is a map of endpoint attributes. Attributes in this map include the following:  

  •  CustomUserData : arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.   
  •  Enabled : flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. 
  • Token : device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.

...