AccountEventHandler

Help with Web SMS

AccountEventHandler

Postby Sami » Sun Jan 23, 2011 3:03 pm

Could you please provide an example using AccountEventHanlder? In particular I need to use MessageRecevied method.

Many thanks
Sami
 
Posts: 1
Joined: Sun Jan 23, 2011 3:00 pm

Re: AccountEventHandler

Postby CatherineM » Thu May 26, 2011 11:13 am

Receiving Message Received Push Notifications

When configured to process Message Received Push Notifications the Esendex service will HTTP Post the following xml content to the url specified.

<InboundMessage>
<Id>{guid-of-push-notification}</Id>
<MessageId>{guid-of-inbound-message}</MessageId>
<AccountId>{guid-of-esendex-account-for-message}</AccountId>
<MessageText>{Message text of inbound message}</MessageText>
<From>{phone number of sender of the message}</From>
<To>{phone number of the recipient of the inbound message (the virtual number of the esendex account in use)}</To>
</InboundMessage>


Receiving Message Delivered Push Notifications

When configured to receive Message Delivered Push Notifications the Esendex service will HTTP Post the following xml content to the url specified.

<MessageDelivered>
<Id>{guid-of-push-notification}</Id>
<MessageId>{guid-of-inbound-message}</MessageId>
<AccountId>{guid-of-esendex-account-for-message}</AccountId>
<OccurredAt>{the UTC DateTime (yyyy-MM-ddThh:mm:ss) that the message was delivered to the recipient}</OccurredAt>
</MessageDelivered>
CatherineM
 
Posts: 19
Joined: Thu May 12, 2011 11:40 am


Return to Web SMS



cron
© Esendex Ltd 2010
Company Registration Number: 04217280