Metadata-Version: 1.1
Name: sms-api
Version: 1.2.0
Summary: SMS API Client, send easy SMS text messages using https://easysms.4simple.org service.
Home-page: https://bitbucket.org/smr-team/easy_sms_python
Author: http://www.4simple.org
Author-email: support@4simple.org
License: UNKNOWN
Description: 
        SMS Python API Client ( https://easysms.4simple.org )
        -----------------------------------------------------
        
        This lib allow easily add SMS text messages to your python applications. Just create an account in
        https://easysms.4simple.org for obtain your API credential.
        Code Examples ::
        
            # Step #1 is import required API client class
            from sms_api import SMS_Easy
        
            # Step #2 is create an API client object using credential obtained from https://easysms.4simple.org/user/panel/
            api_obj = SMS_Easy(user_id=21461, auth_token='39fecac595c24h34g35iu451a')
        
        
            ##########################################################################
            #            HOW SEND AN SMS TEXT MESSAGE
            ##########################################################################
        
            # Sending an SMS in just one line
            result = api_obj.send_sms(to="1525315673", body="Hello Testing SMS API")
        
            pid = -1
            # Optionally, we can verify if SMS was accepted without errors.
            if result.get("success") == "ok":
                print "SMS message was processed successfully. SMS processing id(pid) is: %s" % result.get("pid")
                pid = result.get("pid")
            elif "error" in result:
                print "Error while try to send SMS due to: %s" % result.get("error")
        
        
            ##########################################################################
            #            HOW CHECK ACCOUNT BALANCE
            ##########################################################################
        
            # Just call function get_account_balance
            result = api_obj.get_account_balance()
        
            if isinstance(result, dict) and "error" in result:
                print "Error while try get account balance due to: %s" % result.get("error")
            else:
                print "Your account balance is: %s" % result
        
        
            ##########################################################################
            #            HOW CHECK SMS PROCESSING STATUS
            ##########################################################################
        
            # Using the processing id (pid) returned when the SMS message was sent, just call this function.
            result = api_obj.get_sms_status(pid)
        
            if isinstance(result, dict) and "error" in result:
                print "Error while try get SMS processing status for pid %s, due to: %s" % (pid, result.get("error"))
            else:
                print "SMS processing status for pid %s is %s" % (pid, result.get("status"))
        
        
Keywords: sms,sms easy,sms api
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development
