Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

MMS forwarding (two way) #14

Open
turt2live opened this issue Aug 20, 2017 · 1 comment
Open

MMS forwarding (two way) #14

turt2live opened this issue Aug 20, 2017 · 1 comment
Milestone

Comments

@turt2live
Copy link
Owner

pictures, videos, etc

@turt2live turt2live added this to the v1.0.0 milestone Aug 20, 2017
@turt2live
Copy link
Owner Author

On the receiving side, this is what twilio sends. Note: Body is optional and may not be present if there is no "caption".

{ ToCountry: 'CA',
  MediaContentType0: 'image/jpeg',
  ToState: 'REDACTED',
  SmsMessageSid: 'REDACTED',
  NumMedia: '1',
  ToCity: '',
  FromZip: '',
  SmsSid: 'REDACTED',
  FromState: 'REDACTED',
  SmsStatus: 'received',
  FromCity: 'REDACTED',
  Body: 'With caption',
  FromCountry: 'CA',
  To: '+REDACTED',
  MessagingServiceSid: 'REDACTED',
  ToZip: '',
  NumSegments: '1',
  MessageSid: 'REDACTED',
  AccountSid: 'REDACTED',
  From: '+REDACTED',
  MediaUrl0: 'https://api.twilio.com/really/long/url',
  ApiVersion: '2010-04-01' }

This is what 3 images looks like:

{ MediaContentType1: 'image/jpeg',
  ToCountry: 'CA',
  MediaContentType0: 'image/jpeg',
  ToState: 'REDACTED',
  SmsMessageSid: 'REDACTED',
  NumMedia: '3',
  MediaUrl2: 'https://api.twilio.com/2010-04-01/really/long/url',
  ToCity: '',
  FromZip: '',
  SmsSid: 'REDACTED',
  FromState: 'REDACTED',
  SmsStatus: 'received',
  FromCity: 'REDACTED',
  Body: '',
  FromCountry: 'CA',
  To: '+REDACTED',
  MessagingServiceSid: 'REDACTED',
  MediaUrl1: 'https://api.twilio.com/2010-04-01/really/long/url',
  ToZip: '',
  NumSegments: '3',
  MessageSid: 'REDACTED',
  AccountSid: 'REDACTED',
  MediaContentType2: 'image/png',
  From: '+REDACTED',
  MediaUrl0: 'https://api.twilio.com/2010-04-01/really/long/url',
  ApiVersion: '2010-04-01' }

@turt2live turt2live added next and removed sorted labels Oct 24, 2017
@turt2live turt2live removed the next label Dec 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant