Make sure you have Python 3 installed.
pip3 install sms77api
def __init__(self, api_key: str, sent_with: str = 'Python'):
pass
def analytics(self, params={}):
pass
def balance(self, api_key: str = None):
pass
def contacts(self, action: ContactsAction, params: dict = {}):
pass
def hooks(self, action: HooksAction, params: dict = {}):
pass
def journal(self, typ: JournalType, params: dict = {}):
pass
def lookup(self, typ: LookupType, number: str, json: bool = False):
pass
def pricing(self, format_: PricingFormat = PricingFormat.CSV, country: str = None):
pass
def sms(self, to: str, text: str, params: dict = {}):
pass
def status(self, msg_id: int):
pass
def subaccounts(self, action: SubaccountsAction, params: dict = {}):
pass
def validate_for_voice(self, number: str, callback: str = None):
pass
def voice(self, to: str, text: str, params: dict = {}):
pass
from sms77api.Sms77api import Sms77api
client = Sms77api("InsertYourSuperSecretApiKeyFromSms77")
print(client.balance())
from sms77api.Sms77api import Sms77api
import os
client = Sms77api(os.environ.get('SMS77_API_KEY', 'FallbackValueIfMissing'))
print(client.sms('+491771783130', 'Hi friend!', {'json': True}))
Need help? Feel free to contact us.