Module bluevia :: Class BlueViaOutboundMms
[hide private]
[frames] | no frames]

Class BlueViaOutboundMms

source code

BlueVia --+
          |
         BlueViaOutboundMms

The BlueVia class for sending and tracking MMS.

Instance Methods [hide private]
 
__init__(self, sandbox='_Sandbox', realm='BlueVia', version='v1')
Initialize the BlueViaOutboundMms object
source code
 
sendMMS(self, addresses, subject, messages, attachments)
Send MMS via BlueVia to one or more recipients
source code
 
deliveryStatus(self, deliveryURL)
Track the delivery of a BlueVia MMS
source code

Inherited from BlueVia: hasCredentials, loadAccessToken, setAccessToken, setConsumer, setDebug

Inherited from BlueVia (private): _debug, _signAndSend

Class Variables [hide private]

Inherited from BlueVia: access_token, consumer, debugFlag, environment, http, realm, version

Method Details [hide private]

__init__(self, sandbox='_Sandbox', realm='BlueVia', version='v1')
(Constructor)

source code 

Initialize the BlueViaOutboundMms object

Parameters:
  • sandbox - (string): Indicates whether testing should be done in Sandbox mode. Use "" for real network access; Default: "_Sandbox",
  • realm - (string): Realm string; Default: "BlueVia"
  • version - (string): BlueVia API version; Default: "v1"

sendMMS(self, addresses, subject, messages, attachments)

source code 

Send MMS via BlueVia to one or more recipients

Parameters:
  • addresses - (array): An array of mobile numbers in the form "44 (for UK) 7764735478" (Mobile number without first zero and no spaces)
  • subject - (string): MMS subject text
  • messages - (array): An array containing the messages (string)
  • attachments - (array): An array of paths to files (string) to be sent with MMS
Returns:
(tuple): (HTTP status, deliveryURL). HTTP status == "201" for success. Use deliverURL in method deliverStatus.

deliveryStatus(self, deliveryURL)

source code 

Track the delivery of a BlueVia MMS

Parameters:
  • deliveryURL - (string): deliveryURL provided by sendMMS method
Returns:
(tuple): (HTTP status, (dict) deliveryReceipt). HTTP status == "200" for success.