Panacea Mobile Bulk SMS Gateway

we are hiring! EnglishFrenchGermanItalianPortugueseRussianSpanish

SA: +27-87-151-1043 UK: +44-2030-269-458 IRE: +353-15-547-236

  • Home
  • SMS Gateway
    • Pricing & Coverage
    • Inbound Messaging
    • Premium Rate
    • Online Console
    • Compare us
  • Bulk SMS
    • Your Industry
      • Retail
      • Corporate
      • Health
      • Service
      • Entertainment
  • Developers
    • Available API’s
      • HTTP API
      • SMPP API
      • SMTP/MAIL API
    • Authentication with our API
    • Receiving requests from us
      • Inbound (reply/MO) messages
      • Delivery reports
    • Sample Code
      • Python
      • PHP
      • Java
      • C Sharp (C#)
  • Number Validation
  • Virtual SMSC
    • Administrative Features
    • User Features
    • Core System
    • Screenshots
    • FAQ
    • vSMSC Agreement
    • Order
    • Updates
  • Clients
  • About
    • Careers
      • Mobile Campaign Manager
    • Anti-Spam
  • Support
    • FAQ
    • Kannel SLA Support
      • SLA Agreement
  • Blog
  • Contact
    • Home
    • SMS Gateway
      • Pricing & Coverage
      • Inbound Messaging
      • Premium Rate
      • Online Console
      • Compare us
    • Bulk SMS
      • Your Industry
        • Retail
        • Corporate
        • Health
        • Service
        • Entertainment
    • Developers
      • Available API’s
        • HTTP API
        • SMPP API
        • SMTP/MAIL API
      • Authentication with our API
      • Receiving requests from us
        • Inbound (reply/MO) messages
        • Delivery reports
      • Sample Code
        • Python
        • PHP
        • Java
        • C Sharp (C#)
    • Number Validation
    • Virtual SMSC
      • Administrative Features
      • User Features
      • Core System
      • Screenshots
      • FAQ
      • vSMSC Agreement
      • Order
      • Updates
    • Clients
    • About
      • Careers
        • Mobile Campaign Manager
      • Anti-Spam
    • Support
      • FAQ
      • Kannel SLA Support
        • SLA Agreement
    • Blog
    • Contact
  • Python

    For your use we have also included a Python class for our API.

    Download Python API Class and Examples

    An example of how to use this API can be seen below.

    
    import PanaceaApi
    """ You can use the panacea include without having pycurl installed,
        however, you will be unable to create batches.
        We recommend you go on to: http://pycurl.sourceforge.net/ and
        get the latest version of pycurl installed
    """
    #checking if pycurl is installed
    #if its not, we are going to use urllib and urllib2
    useCurl = True
    panacea = PanaceaApi.PanaceaApi(useCurl)
    #set our username and password
    panacea.setUsername('demouser')
    panacea.setPassword('demouser')
    
    #some optional settings
    #panacea.setPerformActionsImmediately(value) -> value can be true or false
    #set above setting to false if you want to queue actions
    #panacea.debugSetting = True -> Set debugging mode to true
    
    #SOME EXAMPLES:
    #get your balance
    my_balance = panacea.user_get_balance()
    print "My balance is currently: " + str(my_balance[1]["details"])
    
    #send a message
    result = panacea.send_message('27111234567','Hello World!','27111325533')
    
    if panacea.OK(result[1]):
        #check the last message status
        message_status = panacea.message_status(str(result[1]["details"]))
        for x,y in message_status[1].iteritems():
            print x, y
    else:
        print panacea.error
    

    This class is based on the HTTP API.

    See HTTP API Documentation

  • Services

      • Sms Gateway
      • Bulk SMS
      • Strategy Consulting
      • Premium Rate
      • Number Validation
      • Mobile Media Planning
      • Campaign Management
      • Inbound Messaging
      • Mobile Application Development
      • SMS Development & Support
      • Online Console

    Pricing

      • Bulk SMS
      • Inbound Messaging
      • Premium Rate
  • About Us

      • About
      • Anti-Spam
      • Team
      • Careers
      • Why Us?

    Support

      • Available API’s
      • Sample Code
      • FAQ
  • Contact Us

      • Sales
      • Support

    Legal

      • Terms & Conditions

    Join us on Facebook

  • API connectivity

    Visa Master Card PayPal

    All rights reserved Panacea Mobile