{"id":22505611,"url":"https://github.com/infobip-community/infobip-api-python-sdk","last_synced_at":"2025-03-16T03:08:50.031Z","repository":{"id":38252390,"uuid":"453356385","full_name":"infobip-community/infobip-api-python-sdk","owner":"infobip-community","description":"Python SDK for Infobip's API","archived":false,"fork":false,"pushed_at":"2024-09-10T09:51:49.000Z","size":389,"stargazers_count":17,"open_issues_count":10,"forks_count":18,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-28T14:25:26.391Z","etag":null,"topics":["api-client","mms","python","rcs","sdk","sms","webrtc","whatsapp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infobip-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-29T09:44:33.000Z","updated_at":"2024-12-12T14:59:06.000Z","dependencies_parsed_at":"2023-01-30T19:30:43.843Z","dependency_job_id":"bba4bd03-1333-482c-9721-4274cda04729","html_url":"https://github.com/infobip-community/infobip-api-python-sdk","commit_stats":{"total_commits":147,"total_committers":7,"mean_commits":21.0,"dds":0.6462585034013606,"last_synced_commit":"f6bf82c67603a90ac22a073ce578709268c008cb"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip-community%2Finfobip-api-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip-community%2Finfobip-api-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip-community%2Finfobip-api-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip-community%2Finfobip-api-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infobip-community","download_url":"https://codeload.github.com/infobip-community/infobip-api-python-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243818204,"owners_count":20352629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","mms","python","rcs","sdk","sms","webrtc","whatsapp"],"created_at":"2024-12-07T00:29:58.778Z","updated_at":"2025-03-16T03:08:50.011Z","avatar_url":"https://github.com/infobip-community.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infobip API Python SDK\n\n[![Version](https://img.shields.io/pypi/v/infobip-api-python-sdk)](https://pypi.org/project/infobip-api-python-sdk/)\n![Python](https://img.shields.io/pypi/pyversions/infobip-api-python-sdk)\n[![Workflow](https://img.shields.io/github/workflow/status/infobip-community/infobip-api-python-sdk/Python%20package)](https://github.com/infobip-community/infobip-api-python-sdk/actions/workflows/python-package.yml)\n![Release](https://img.shields.io/github/release-date/infobip-community/infobip-api-python-sdk)\n[![Licence](https://img.shields.io/github/license/infobip-community/infobip-api-python-sdk)](LICENSE)\n\nClient SDK to use the Infobip API with Python.\n\nThis package enables you to use multiple Infobip communication channels, like SMS, MMS, WhatsApp, Email, etc.\n\n---\n\n## 📡 Supported APIs\n\nThe following communication channels are supported:\n\n- [SMS + 2FA](https://www.infobip.com/docs/api#channels/sms)\n- [Whatsapp](https://www.infobip.com/docs/api#channels/whatsapp)\n- [Email](https://www.infobip.com/docs/api#channels/email)\n- [WebRTC](https://www.infobip.com/docs/api#channels/webrtc/)\n- [MMS](https://www.infobip.com/docs/api#channels/mms)\n- [RCS](https://www.infobip.com/docs/api#channels/rcs)\n\nThe following platform management APIs are supported:\n- [Entities](https://www.infobip.com/docs/api/platform/application-entity)\n\nMore APIs to be added in the near future.\n\n## 🔐 Authentication\n\nCurrently, infobip-api-python-sdk only supports API Key authentication,\nand the key needs to be passed during client creation.\nThis will most likely change with future versions,\nonce more authentication methods are included.\n\n## 📦 Installation\n\nTo install infobip SDK you will need to run:\n\n```bash\npip install infobip-api-python-sdk\n```\n\nDetails of the package can be found\nin the [PyPI page](https://pypi.org/project/infobip-api-python-sdk/).\n\n## 🚀 Usage\n\n### Code Example\nTo use the package you'll need an Infobip account.\nIf you don't already have one, you can create a free trial account\n[here](https://www.infobip.com/signup).\n\nIn this example, we will show how to send a WhatsApp text message.\nOther channels can be used in a similar way.\nThe first step is to import the necessary channel, in this case WhatsApp channel.\n\n```python\nfrom infobip_channels.whatsapp.channel import WhatsAppChannel\n```\n\nNow you can create instance of `WhatsAppChannel` with your `base_url` and `api_key`.\n\n```python\nc = WhatsAppChannel.from_auth_params({\n    \"base_url\": \"\u003cyour_base_url\u003e\",\n    \"api_key\": \"\u003cyour_api_key\u003e\"\n})\n```\n\nAlternatively, you can create the instance from the environment, having the `IB_BASE_URL` and `IB_API_KEY` variables\nset, like this:\n\n```python\nc = WhatsAppChannel.from_env()\n```\n\nAfter that you can access all the methods from `WhatsAppChannel`.\nTo send text message you can use `send_text_message` method and add correct payload:\n```python\nresponse = c.send_text_message(\n    {\n      \"from\": \"\u003cWhatsApp sender number from your Infobib account\u003e\",\n      \"to\": \"\u003cNumber that will receive WhatsApp message\u003e\",\n      \"messageId\": \"a28dd97c-1ffb-4fcf-99f1-0b557ed381da\",\n      \"content\": {\n        \"text\": \"Some text\"\n      },\n      \"callbackData\": \"Callback data\",\n      \"notifyUrl\": \"https://www.example.com/whatsapp\"\n    }\n)\n```\n\n### Samples\n\nWe are adding samples in the [samples](samples) folder, which you can use as a reference on how to use the SDK\nwith real payloads.\n\n## 🗒️ Notes\n\nFor `infobip-api-python-sdk` versioning we use\n[Semantic Versioning](https://semver.org) scheme.\n\nPython 3.6 is the minimum supported version by this library.\n\n## 🧡 Want to help and improve this open-source SDK?\n\nCheck out our [contributing guide](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md).\n\n## ⚖️ License\n\nThis library is distributed under the MIT license found in the [License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfobip-community%2Finfobip-api-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfobip-community%2Finfobip-api-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfobip-community%2Finfobip-api-python-sdk/lists"}