{"id":24602,"library":"smsapi-client","title":"SmsAPI Python Client","description":"Official Python client library for the SmsAPI platform, enabling sending SMS, MMS, VMS, and managing phone numbers, contacts, and SMS templates. The current version is 2.9.6, with regular updates following the release cadence of the underlying API.","status":"active","version":"2.9.6","language":"python","source_language":"en","source_url":"https://github.com/smsapi/smsapi-python-client","tags":["sms","api","client","messaging"],"install":[{"cmd":"pip install smsapi-client","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"HTTP client for API calls","package":"requests","optional":false},{"reason":"Python 2/3 compatibility","package":"six","optional":true}],"imports":[{"wrong":"from smsapi.client import SmsApi","symbol":"SmsApi","correct":"from smsapi import SmsApi"}],"quickstart":{"code":"from smsapi.client import SmsApi\n\nclient = SmsApi(username=os.environ.get('SMSAPI_USERNAME', ''),\n                password=os.environ.get('SMSAPI_PASSWORD', ''))\n\nresult = client.sms.send(to='48123456789', message='Hello from SmsAPI!')\nprint(result)","lang":"python","description":"Initialize the client with your credentials and send a simple SMS. Both can be passed as arguments or set via environment variables."},"warnings":[{"fix":"Use your SmsAPI account username and password (or API password) – not an API token directly.","message":"The SmsApi constructor requires both username and password; these are not API tokens. Do not confuse with the API token authentication used in other SMS API libraries.","severity":"gotcha","affected_versions":"all"},{"fix":"Always check the response's error attribute or catch exceptions before accessing result properties.","message":"After sending a message, the response object's properties (e.g., .id, .points, .status) are only available if the send was successful. Accessing them on failure may raise AttributeError.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.6+ and use the latest version of the library.","message":"Python 2 support is deprecated; the library may be removed in future versions.","severity":"deprecated","affected_versions":"2.9.x"}],"env_vars":null,"search_vec":"'2.9.6':29 'api':40,42 'cadenc':36 'client':3,6,43 'contact':21 'current':26 'enabl':12 'follow':33 'librari':7 'manag':18 'messag':44 'mms':15 'number':20 'offici':4 'phone':19 'platform':11 'python':2,5 'regular':31 'releas':35 'send':13 'sms':14,23,41 'smsapi':1,10 'templat':24 'under':39 'updat':32 'version':27 'vms':16","created_at":"2026-05-01T08:13:57.482281+00:00","updated_at":"2026-05-01T08:13:57.482281+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'SmsApi' from 'smsapi' (/tmp/tmp5mhn1w0l/venv/lib/python3.12/site-packages/smsapi/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.9.7","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.smsapi.com","github":"https://github.com/smsapi/smsapi-python-client","docs":null,"changelog":null,"pypi":"https://pypi.org/project/smsapi-client/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["communication"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}