Is it possible to receive several images in the MMS ?

28 views
Skip to first unread message

lg.and...@gmail.com

unread,
Jun 29, 2015, 11:39:06 AM6/29/15
to mogre...@googlegroups.com
Documentation is a bit vague at this part...

Jordan El-Saden

unread,
Jun 29, 2015, 1:51:28 PM6/29/15
to lg.and...@gmail.com, mogre...@googlegroups.com
Hi - If the question is whether someone can take multiple pictures and send them in a single MMS message that gets passed back to your endpoint, the answer is yes.

I have included examples below in both XML and JSON for reference. We will work to get these examples on the website and into the documentation for future reference.

Please let us know if you have any other questions.

 -Jordan


MMS MO w/ multiple images – XML

<?xml version="1.0"?>
<mogreet>
  <event>message-in</event>
  <type>command_mms</type>
  <campaign_id>12345</campaign_id>
  <shortcode>98765</shortcode>
  <msisdn>15551234567</msisdn>
  <carrier><![CDATA[Verizon Wireless]]></carrier>
  <carrier_id>4</carrier_id>
  <message><![CDATA[TEST]]></message>
  <subject><![CDATA[]]></subject>
  <images>
        <image><![CDATA[http://d2c.bandcon.mogreet.com/mo-mms/images/fdb02dc941d1607b5702cee9c6a31123.jpeg]]></image>
	<image><![CDATA[http://d2c.bandcon.mogreet.com/mo-mms/images/e5b6935b90f15fd216f4bc1b31f6a123.jpeg]]></image>
  </images>
</mogreet>

MMS MO w/ multiple images – JSON
{
	"event": "message-in",
	"type": "command_mms",
	"campaign_id": “12345",
	"msisdn": "15551234567",
	"shortcode": "21534",
	"carrier": "Verizon Wireless",
	"carrier_id": "4",
	"message": “TEST",
	"subject": "",
	"images": [
		{
			"image": "http://d2c.bandcon.mogreet.com/mo-mms/images/381247cc90e90b8251bda6d4bfcb8123.jpeg"
		},
		{
			"image": "http://d2c.bandcon.mogreet.com/mo-mms/images/0c867e4d00f3a2105c27c2968b618123.jpeg"
		}
	]
}
--
You received this message because you are subscribed to the Google Groups "Mogreet API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mogreetapi+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
 

 Jordan El-Saden |Senior Product Manager

 e jels...@mGage.com

 w +1.310.957.3359 m +1.818.422.5810

 mGage | The Mobile Engagement Company

 

 


lg.and...@gmail.com

unread,
Jun 29, 2015, 4:09:10 PM6/29/15
to mogre...@googlegroups.com, jels...@mgage.com
Hm, we've tried with 3 images from iPhone and got the following JSON on the server (it is PHP Array):

(
    [event] => message-in
    [campaign_id] => 12314
    [msisdn] => 234215234531
    [carrier] => Verizon Wireless
    [message] => test
    [subject] => 
    [images] => stdClass Object
        (
        )

Jordan El-Saden

unread,
Jun 29, 2015, 4:32:45 PM6/29/15
to lg.and...@gmail.com, mogre...@googlegroups.com
Hi – Please email me back directly with your keyword and I will run a test for you.

I’m not sure how the callback below was created because the phone number is not valid and the URL to the content is a 404, so I can’t be sure if it is a good test or not.

Thanks.

 -Jordan


 Jordan El-Saden |Senior Product Manager

 jels...@mGage.com

 w +1.310.957.3359 m +1.818.422.5810

 mGage | The Mobile Engagement Company

mGage Antispam , click here to report this email as spam.

Reply all
Reply to author
Forward
0 new messages