« App Built on eBay Wins Best Business Model at TC Disrupt Hack Day | Main | DevCon 2011 planning is underway!  »

GetMyMessages Now Returns Message Body in Text Format

You asked, we heard!

Text-only versions of message content are now returned in GetMyMessages, in Messages.Message.Content field. This makes retrieving message content simple - no need to write and maintain a script to parse and extract the text content from the HTML content.

Sample Request

<?xml version="1.0"  encoding="utf-8"?>
  <GetMyMessagesRequest  xmlns="urn:ebay:apis:eBLBaseComponents">
  <!-- Specify ReturnSummary, ReturnHeaders, or ReturnMessages -->
  <DetailLevel>ReturnMessages</DetailLevel>
  <!-- Either AlertIDs or MessageIDs should be included (or both) if the  
ReturnMessages detail level is specified. --> <RequesterCredentials> <eBayAuthToken>token</eBayAuthToken> </RequesterCredentials> <MessageIDs> <MessageID>28886479892</MessageID> </MessageIDs> </GetMyMessagesRequest>

Sample Response

<?xml version="1.0"  encoding="utf-8"?>
  <GetMyMessagesResponse  xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2010-09-21T00:00:20.742Z</Timestamp>
  <Ack>Success</Ack>
  <Version>687</Version>
  <Build>E687_CORE_BUNDLED_12073818_R1</Build>
  <Messages>
  <Message>
  <Sender>abc123</Sender>
  <SendingUserID>184765903</SendingUserID>
  <RecipientUserID>jdoe</RecipientUserID>
  <SendToName>jdoe</SendToName>
  <Subject>abc123 has sent a question  about item #150485679913, that 
ended on Sep-02-10 15:53:00 PDT - !!!This is a test - DO NOT BID!!!
- GET IT FAST</Subject> <MessageID>28886479892</MessageID> <ExternalMessageID>27868355013</ExternalMessageID> <Text>HTML content is returned here</Text> <Flagged>false</Flagged> <Read>false</Read> <ReceiveDate>2010-09-07T01:48:41.000Z</ReceiveDate> <ExpirationDate>2011-09-07T01:48:40.000Z</ExpirationDate> . . . <Content>                         ----------------------------------------------------------------- eBay sent this message to John Doe (jdoe). Your registered name is included to show this message originated from eBay. Learn more at http://pages.ebay.com/help/confidence/name-userid-emails.html ----------------------------------------------------------------- ----------------------------------------------------------------- This member has a question for you. ----------------------------------------------------------------- Do not respond to the sender if this message requests that you complete the transaction outside of eBay. This type of offer is against eBay policy, may be fraudulent, and is not covered by buyer protection programs. Learn More at http://pages.ebay.com/help/policies/rfe-spam-non-ebay-sale.html Dear jdoe, I see the item says Local Pickup. Will you be able to help load this item? -abc123 ================================================================= Answer the question http://rover.ebay.com/rover/0/e11050.m44.l1139/7?euid=1482aa92b3c
8487aa0ae8a3050ba7aeb&amp;loc=http%3A%2F%2Fcontact.ebay.com%2Fws%2F
eBayISAPI.dll%3FM2MContact%26item%3D150485679913%26requested%3Dabc1
23%26qid%3D27868355013%26redirect%3D0%26ssPageName%3DADME%3AX%3AAAQ%
3AUS%3A1139
================================================================= </Content> </GetMyMessagesResponse>

For more information, see Improvements to My Messages Functionality

October 7, 2010 in Product News, Trading API | Permalink