Skip to content

Use WhatsApp Messenger to stay in touch with friends and family. WhatsApp is free and offers simple, secure, reliable messaging and calling, available on phones all over the world. WhatsApp's Python SDK for Business API generated by Konfig (https://konfigthis.com/).

License

Notifications You must be signed in to change notification settings

konfig-sdks/whats-app-business-python-sdk

Repository files navigation

Table of Contents

Requirements

Python >=3.7

Installation

Getting Started

from pprint import pprint
from whats_app_business_python_sdk import WhatsAppBusiness, ApiException

whatsappbusiness = WhatsAppBusiness(access_token="YOUR_BEARER_TOKEN")

try:
    # Get-Application-Settings
    get_settings_response = whatsappbusiness.application.get_settings()
    print(get_settings_response)
except ApiException as e:
    print("Exception when calling ApplicationApi.get_settings: %s\n" % e)
    pprint(e.body)
    pprint(e.headers)
    pprint(e.status)
    pprint(e.reason)
    pprint(e.round_trip_time)

Async

async support is available by prepending a to any method.

import asyncio
from pprint import pprint
from whats_app_business_python_sdk import WhatsAppBusiness, ApiException

whatsappbusiness = WhatsAppBusiness(access_token="YOUR_BEARER_TOKEN")


async def main():
    try:
        # Get-Application-Settings
        get_settings_response = await whatsappbusiness.application.aget_settings()
        print(get_settings_response)
    except ApiException as e:
        print("Exception when calling ApplicationApi.get_settings: %s\n" % e)
        pprint(e.body)
        pprint(e.headers)
        pprint(e.status)
        pprint(e.reason)
        pprint(e.round_trip_time)


asyncio.run(main())

Raw HTTP Response

To access raw HTTP response values, use the .raw namespace.

from pprint import pprint
from whats_app_business_python_sdk import WhatsAppBusiness, ApiException

whatsappbusiness = WhatsAppBusiness(access_token="YOUR_BEARER_TOKEN")

try:
    # Get-Application-Settings
    get_settings_response = whatsappbusiness.application.raw.get_settings()
    pprint(get_settings_response.body)
    pprint(get_settings_response.body["callback_backoff_delay_ms"])
    pprint(get_settings_response.body["callback_persist"])
    pprint(get_settings_response.body["heartbeat_interval"])
    pprint(get_settings_response.body["max_callback_backoff_delay_ms"])
    pprint(get_settings_response.body["media"])
    pprint(get_settings_response.body["on_call_pager"])
    pprint(get_settings_response.body["pass_through"])
    pprint(get_settings_response.body["sent_status"])
    pprint(get_settings_response.body["unhealthy_interval"])
    pprint(get_settings_response.body["webhooks"])
    pprint(get_settings_response.headers)
    pprint(get_settings_response.status)
    pprint(get_settings_response.round_trip_time)
except ApiException as e:
    print("Exception when calling ApplicationApi.get_settings: %s\n" % e)
    pprint(e.body)
    pprint(e.headers)
    pprint(e.status)
    pprint(e.reason)
    pprint(e.round_trip_time)

Reference

whatsappbusiness.application.get_settings

Get-Application-Settings

🛠️ Usage

get_settings_response = whatsappbusiness.application.get_settings()

🔄 Return

ApplicationSettings

🌐 Endpoint

/settings/application get

🔙 Back to Table of Contents


whatsappbusiness.application.list_media_providers

Get-Media-Providers

🛠️ Usage

list_media_providers_response = whatsappbusiness.application.list_media_providers()

🔄 Return

GetMediaProvidersResponse

🌐 Endpoint

/settings/application/media/providers get

🔙 Back to Table of Contents


whatsappbusiness.application.remove_provider

Delete-Media-Providers

🛠️ Usage

whatsappbusiness.application.remove_provider(
    provider_name="ProviderName_example",
)

⚙️ Parameters

provider_name: str

Provider Name

🌐 Endpoint

/settings/application/media/providers/{ProviderName} delete

🔙 Back to Table of Contents


whatsappbusiness.application.reset_settings

Reset-Application-Settings

🛠️ Usage

whatsappbusiness.application.reset_settings()

🌐 Endpoint

/settings/application delete

🔙 Back to Table of Contents


whatsappbusiness.application.set_shards

Set-Shards

🛠️ Usage

whatsappbusiness.application.set_shards(
    cc="<Country Code>",
    phone_number="<Phone Number>",
    pin="<Two-Step PIN>",
    shards=32,
)

⚙️ Parameters

cc: str
phone_number: str
pin: str
shards: int

⚙️ Request Body

SetShardsRequestBody

🌐 Endpoint

/account/shards post

🔙 Back to Table of Contents


whatsappbusiness.application.update_media_providers

Update-Media-Providers

🛠️ Usage

whatsappbusiness.application.update_media_providers(
    body=[
        {
            "config": {"bearer": "<Bearer Auth Token>"},
            "name": "<Provider Name>",
            "type": "www",
        }
    ],
)

⚙️ Request Body

ApplicationUpdateMediaProvidersRequest

🌐 Endpoint

/settings/application/media/providers post

🔙 Back to Table of Contents


whatsappbusiness.application.update_settings

If a field is not present in the request, no change is made to that setting. For example, if on_call_pager is not sent with the request, the existing configuration for on_call_pager is unchanged.

🛠️ Usage

update_settings_response = whatsappbusiness.application.update_settings(
    callback_backoff_delay_ms="3000",
    callback_persist=True,
    heartbeat_interval=5,
    max_callback_backoff_delay_ms="900000",
    media={
        "auto_download": ["audio"],
    },
    on_call_pager="<WA_ID of valid WhatsApp contact>",
    pass_through=True,
    sent_status=False,
    unhealthy_interval=30,
    webhooks={
        "max_concurrent_requests": 6,
        "url": "<Webhook URL, https>",
    },
)

⚙️ Parameters

callback_backoff_delay_ms: str

Backoff delay for a failed callback in milliseconds This setting is used to configure the amount of time the backoff delays before retrying a failed callback. The backoff delay increases linearly by this value each time a callback fails to get a HTTPS 200 OK response. The backoff delay is capped by the max_callback_backoff_delay_ms setting.

callback_persist: bool

Stores callbacks on disk until they are successfully acknowledged by the Webhook or not. Restart required.

heartbeat_interval: int

Multiconnect: Interval of the Master node monitoring of Coreapp nodes in seconds

max_callback_backoff_delay_ms: str

Maximum delay for a failed callback in milliseconds

media: Media
on_call_pager: str

Set to valid WhatsApp Group with users who wish to see alerts for critical errors and messages.

pass_through: bool

When true, removes messages from the local database after they are delivered to or read by the recipient. When false, saves all messages on local storage until they are explicitly deleted. When messages are sent, they are stored in a local database. This database is used as the application's history. Since the business keeps its own history, you can specify whether you want message pass_through or not. Restart required.

sent_status: bool

Receive a notification that a message is sent to server. When true, you will receive a message indicating that a message has been sent. If false (default), you will not receive notification.

unhealthy_interval: int

Multiconnect: Maximum amount of seconds a Master node waits for a Coreapp node to respond to a heartbeat before considering it unhealthy and starting the failover process.

webhooks: Webhooks

⚙️ Request Body

ApplicationSettings

🔄 Return

Response

🌐 Endpoint

/settings/application patch

🔙 Back to Table of Contents


whatsappbusiness.backup/restore.settings_post

Backup-Settings

🛠️ Usage

settings_post_response = whatsappbusiness.backup / restore.settings_post(
    password="<Password for Backup>",
)

⚙️ Parameters

password: str

Used to encrypt backup data for security

⚙️ Request Body

BackupSettingsRequestBody

🔄 Return

BackupSettingsResponse

🌐 Endpoint

/settings/backup post

🔙 Back to Table of Contents


whatsappbusiness.backup/restore.settings_post_0

Restore-Settings

🛠️ Usage

whatsappbusiness.backup / restore.settings_post_0(
    data="<Data to Restore, from Backup API>",
    password="<Password for Backup>",
)

⚙️ Parameters

data: str

The data that was returned by the /v1/settings/backup API call

password: str

The password you used in the /v1/settings/backup API call to encrypt the backup data

⚙️ Request Body

RestoreSettingsRequestBody

🌐 Endpoint

/settings/restore post

🔙 Back to Table of Contents


whatsappbusiness.business_profile.get

Get-Business-Profile

🛠️ Usage

get_response = whatsappbusiness.business_profile.get()

🔄 Return

GetBusinessProfileResponse

🌐 Endpoint

/settings/business/profile get

🔙 Back to Table of Contents


whatsappbusiness.business_profile.update

Update-Business-Profile

🛠️ Usage

whatsappbusiness.business_profile.update(
    description="<Business Profile Description>",
    address="<Business Profile Address>",
    email="<Business Profile Email>",
    vertical="<Business Profile Vertical>",
    websites=["string_example"],
)

⚙️ Parameters

description: str

Description of the business Maximum of 256 characters

address: str

Address of the business Maximum of 256 characters

email: str

Email address to contact the business Maximum of 128 characters

vertical: str

Industry of the business Maximum of 128 characters

⚙️ Request Body

BusinessProfile

🌐 Endpoint

/settings/business/profile post

🔙 Back to Table of Contents


whatsappbusiness.certificates.delete_webhook_ca

Delete Webhook CA Certificate

🛠️ Usage

whatsappbusiness.certificates.delete_webhook_ca()

🌐 Endpoint

/certificates/webhooks/ca delete

🔙 Back to Table of Contents


whatsappbusiness.certificates.download_ca_certificate

Download-CA-Certificate

🛠️ Usage

download_ca_certificate_response = (
    whatsappbusiness.certificates.download_ca_certificate()
)

🌐 Endpoint

/certificates/external/ca get

🔙 Back to Table of Contents


whatsappbusiness.certificates.download_webhook_ca_certificate

Download Webhook CA Certificate

🛠️ Usage

download_webhook_ca_certificate_response = (
    whatsappbusiness.certificates.download_webhook_ca_certificate()
)

🌐 Endpoint

/certificates/webhooks/ca get

🔙 Back to Table of Contents


whatsappbusiness.certificates.upload_external_certificate

Upload-Certificate

🛠️ Usage

whatsappbusiness.certificates.upload_external_certificate(
    body=open("/path/to/file", "rb"),
)

⚙️ Request Body

IO

🌐 Endpoint

/certificates/external post

🔙 Back to Table of Contents


whatsappbusiness.certificates.upload_webhook_ca_certificate

Upload Webhook CA Certificate

🛠️ Usage

whatsappbusiness.certificates.upload_webhook_ca_certificate(
    body=open("/path/to/file", "rb"),
)

⚙️ Request Body

IO

🌐 Endpoint

/certificates/webhooks/ca post

🔙 Back to Table of Contents


whatsappbusiness.contacts.create_contact

Check-Contact

🛠️ Usage

create_contact_response = whatsappbusiness.contacts.create_contact(
    contacts=["string_example"],
    blocking="no_wait",
)

⚙️ Parameters

blocking: str

Blocking determines whether the request should wait for the processing to complete (synchronous) or not (asynchronous).

⚙️ Request Body

CheckContactRequestBody

🔄 Return

CheckContactResponse

🌐 Endpoint

/contacts post

🔙 Back to Table of Contents


whatsappbusiness.groups.create_group

Create-Group

🛠️ Usage

create_group_response = whatsappbusiness.groups.create_group(
    subject="<Group Subject>",
)

⚙️ Parameters

subject: str

⚙️ Request Body

CreateGroupRequestBody

🔄 Return

GroupsResponse

🌐 Endpoint

/groups post

🔙 Back to Table of Contents


whatsappbusiness.groups.delete_group_icon

Delete-Group-Icon

🛠️ Usage

whatsappbusiness.groups.delete_group_icon(
    group_id="GroupId_example",
    file=open("/path/to/file", "rb"),
)

⚙️ Parameters

group_id: str
file: IO

⚙️ Request Body

GroupsDeleteGroupIconRequest

🌐 Endpoint

/groups/{GroupId}/icon delete

🔙 Back to Table of Contents


whatsappbusiness.groups.delete_invite

Delete-Group-Invite

🛠️ Usage

whatsappbusiness.groups.delete_invite(
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

🌐 Endpoint

/groups/{GroupId}/invite delete

🔙 Back to Table of Contents


whatsappbusiness.groups.demote_admin

Demote-Group-Admin

🛠️ Usage

whatsappbusiness.groups.demote_admin(
    wa_ids=["string_example"],
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

⚙️ Request Body

GroupAdminRequestBody

🌐 Endpoint

/groups/{GroupId}/admins delete

🔙 Back to Table of Contents


whatsappbusiness.groups.get_all

Get-All-Groups

🛠️ Usage

get_all_response = whatsappbusiness.groups.get_all()

🔄 Return

GroupsResponse

🌐 Endpoint

/groups get

🔙 Back to Table of Contents


whatsappbusiness.groups.get_icon_binary

Get-Group-Icon-Binary

🛠️ Usage

whatsappbusiness.groups.get_icon_binary(
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

🌐 Endpoint

/groups/{GroupId}/icon get

🔙 Back to Table of Contents


whatsappbusiness.groups.get_info

Get-Group-Info

🛠️ Usage

get_info_response = whatsappbusiness.groups.get_info(
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

🔄 Return

GroupResponse

🌐 Endpoint

/groups/{GroupId} get

🔙 Back to Table of Contents


whatsappbusiness.groups.get_invite_details

Get-Group-Invite

🛠️ Usage

get_invite_details_response = whatsappbusiness.groups.get_invite_details(
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

🔄 Return

GroupInviteResponse

🌐 Endpoint

/groups/{GroupId}/invite get

🔙 Back to Table of Contents


whatsappbusiness.groups.leave_group

Leave-Group

🛠️ Usage

whatsappbusiness.groups.leave_group(
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

🌐 Endpoint

/groups/{GroupId}/leave post

🔙 Back to Table of Contents


whatsappbusiness.groups.promote_to_admin

Promote-To-Group-Admin

🛠️ Usage

whatsappbusiness.groups.promote_to_admin(
    wa_ids=["string_example"],
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

⚙️ Request Body

GroupAdminRequestBody

🌐 Endpoint

/groups/{GroupId}/admins patch

🔙 Back to Table of Contents


whatsappbusiness.groups.remove_participant

Remove-Group-Participant

🛠️ Usage

whatsappbusiness.groups.remove_participant(
    wa_ids=["string_example"],
    group_id="GroupId_example",
)

⚙️ Parameters

group_id: str

⚙️ Request Body

RemoveGroupParticipantRequestBody

🌐 Endpoint

/groups/{GroupId}/participants delete

🔙 Back to Table of Contents


whatsappbusiness.groups.set_group_icon

Set-Group-Icon

🛠️ Usage

whatsappbusiness.groups.set_group_icon(
    group_id="GroupId_example",
    file=open("/path/to/file", "rb"),
)

⚙️ Parameters

group_id: str
file: IO

⚙️ Request Body

GroupsSetGroupIconRequest

🌐 Endpoint

/groups/{GroupId}/icon post

🔙 Back to Table of Contents


whatsappbusiness.groups.update_info

Update-Group-Info

🛠️ Usage

whatsappbusiness.groups.update_info(
    subject="<New Group Subject>",
    group_id="GroupId_example",
)

⚙️ Parameters

subject: str
group_id: str

⚙️ Request Body

UpdateGroupInfoRequestBody

🌐 Endpoint

/groups/{GroupId} put

🔙 Back to Table of Contents


whatsappbusiness.health.check_status

Check-Health

🛠️ Usage

whatsappbusiness.health.check_status()

🌐 Endpoint

/health get

🔙 Back to Table of Contents


whatsappbusiness.health.get_app_stats

Get-App-Stats

🛠️ Usage

get_app_stats_response = whatsappbusiness.health.get_app_stats(
    format="prometheus",
)

⚙️ Parameters

format: str

🌐 Endpoint

/stats/app get

🔙 Back to Table of Contents


whatsappbusiness.health.get_db_stats

Get-DB-Stats

🛠️ Usage

get_db_stats_response = whatsappbusiness.health.get_db_stats(
    format="prometheus",
)

⚙️ Parameters

format: str

🌐 Endpoint

/stats/db get

🔙 Back to Table of Contents


whatsappbusiness.health.get_metrics_data

Get-Metrics (since v2.21.3)

🛠️ Usage

get_metrics_data_response = whatsappbusiness.health.get_metrics_data(
    format="prometheus",
)

⚙️ Parameters

format: str

🌐 Endpoint

/metrics get

🔙 Back to Table of Contents


whatsappbusiness.health.get_support_info

Get-Support-Info

🛠️ Usage

get_support_info_response = whatsappbusiness.health.get_support_info()

🌐 Endpoint

/support get

🔙 Back to Table of Contents


whatsappbusiness.media.download

Download-Media

🛠️ Usage

download_response = whatsappbusiness.media.download(
    media_id="MediaId_example",
)

⚙️ Parameters

media_id: str

🌐 Endpoint

/media/{MediaId} get

🔙 Back to Table of Contents


whatsappbusiness.media.remove_media

Delete-Media

🛠️ Usage

whatsappbusiness.media.remove_media(
    media_id="MediaId_example",
)

⚙️ Parameters

media_id: str

🌐 Endpoint

/media/{MediaId} delete

🔙 Back to Table of Contents


whatsappbusiness.media.upload_media

Upload-Media

🛠️ Usage

upload_media_response = whatsappbusiness.media.upload_media(
    body=open("/path/to/file", "rb"),
)

⚙️ Request Body

IO

🔄 Return

UploadMediaResponse

🌐 Endpoint

/media post

🔙 Back to Table of Contents


whatsappbusiness.messages.mark_as_read

Mark-Message-As-Read

🛠️ Usage

whatsappbusiness.messages.mark_as_read(
    status="read",
    message_id="MessageID_example",
)

⚙️ Parameters

status: str
message_id: str

Message ID from Webhook

⚙️ Request Body

MarkMessageAsReadRequestBody

🌐 Endpoint

/messages/{MessageID} put

🔙 Back to Table of Contents


whatsappbusiness.messages.send_message

Send-Message

🛠️ Usage

send_message_response = whatsappbusiness.messages.send_message(
    to="{whatsapp-id}",
    audio={},
    contacts=[
        {
            "birthday": "2012-08-18T00:00:00.000Z",
        }
    ],
    document={},
    hsm={
        "element_name": "hello_world",
        "language": {
            "code": "en",
            "policy": "deterministic",
        },
        "localizable_params": [
            {
                "default": "<param value>",
            }
        ],
        "namespace": "business_a_namespace",
    },
    image={},
    location={
        "address": "<Location's Address>",
        "latitude": "<Latitude>",
        "longitude": "<Longitude>",
        "name": "<Location Name>",
    },
    preview_url=True,
    recipient_type="individual",
    text={
        "body": "your-text-message-content",
    },
    ttl={},
    type="text",
    video={},
)

⚙️ Parameters

to: str

When recipient_type is individual, this field is the WhatsApp ID (phone number) returned from contacts endpoint. When recipient_type is group, this field is the WhatsApp group ID.

audio: Audio
contacts: List[Contact]
document: Document
hsm: Hsm
image: Image
location: Location
preview_url: bool

Specifying preview_url in the request is optional when not including a URL in your message. To include a URL preview, set preview_url to true in the message body and make sure the URL begins with http:// or https://. For more information, see the Sending URLs in Text Messages section.

recipient_type: str

Determines whether the recipient is an individual or a group Specifying recipient_type in the request is optional when the value is individual. However, recipient_type is required when using group. If sending a text message to a group, see the Sending Group Messages documentation.

text: Text
ttl: Dict[str, Union[bool, date, datetime, dict, float, int, list, str, None]]
video: Video

⚙️ Request Body

SendMessageRequestBody

🔄 Return

MessageResponse

🌐 Endpoint

/messages post

🔙 Back to Table of Contents


whatsappbusiness.profile.get_about

Get-Profile-About

🛠️ Usage

get_about_response = whatsappbusiness.profile.get_about()

🔄 Return

GetProfileAboutResponse

🌐 Endpoint

/settings/profile/about get

🔙 Back to Table of Contents


whatsappbusiness.profile.get_photo

Get-Profile-Photo

🛠️ Usage

get_photo_response = whatsappbusiness.profile.get_photo(
    format="link",
)

⚙️ Parameters

format: str

🔄 Return

GetProfilePhotoResponse

🌐 Endpoint

/settings/profile/photo get

🔙 Back to Table of Contents


whatsappbusiness.profile.remove_photo

Delete-Profile-Photo

🛠️ Usage

whatsappbusiness.profile.remove_photo()

🌐 Endpoint

/settings/profile/photo delete

🔙 Back to Table of Contents


whatsappbusiness.profile.update_about

Update-Profile-About

🛠️ Usage

whatsappbusiness.profile.update_about(
    text="your-profile-about-text",
)

⚙️ Parameters

text: str

Text to display in your profile's About section The max length for the string is 139 characters.

⚙️ Request Body

ProfileAbout

🌐 Endpoint

/settings/profile/about patch

🔙 Back to Table of Contents


whatsappbusiness.profile.update_photo

Update-Profile-Photo

🛠️ Usage

whatsappbusiness.profile.update_photo(
    file=open("/path/to/file", "rb"),
)

⚙️ Parameters

file: IO

⚙️ Request Body

ProfileUpdatePhotoRequest

🌐 Endpoint

/settings/profile/photo post

🔙 Back to Table of Contents


whatsappbusiness.registration.request_code

Request-Code

🛠️ Usage

whatsappbusiness.registration.request_code(
    cc="<Country Code>",
    cert="<Valid Cert from Business Manager>",
    method="< sms | voice >",
    phone_number="<Phone Number>",
    pin="<Two-Step Verification PIN",
)

⚙️ Parameters

cc: str

Numerical country code for the phone number you are registering

cert: str

Base64-encoded Verified Name certificate

method: str

Method of receiving your registration code

phone_number: str

Phone number you are registering, without the country code or plus symbol (+)

pin: str

Existing 6-digit PIN — This is only required when two-factor verification is enabled on this account.

⚙️ Request Body

RequestCodeRequestBody

🌐 Endpoint

/account post

🔙 Back to Table of Contents


whatsappbusiness.registration.verify_account

Register-Account

🛠️ Usage

whatsappbusiness.registration.verify_account(
    code="your-registration-code-received-by-sms-or-voice-call",
)

⚙️ Parameters

code: str

⚙️ Request Body

RegisterAccountRequestBody

🌐 Endpoint

/account/verify post

🔙 Back to Table of Contents


whatsappbusiness.two_step_verification.disable

Disable-Two-Step

🛠️ Usage

whatsappbusiness.two_step_verification.disable()

🌐 Endpoint

/settings/account/two-step delete

🔙 Back to Table of Contents


whatsappbusiness.two_step_verification.enable_account

Enable-Two-Step

🛠️ Usage

whatsappbusiness.two_step_verification.enable_account(
    pin="your-6-digit-pin",
)

⚙️ Parameters

pin: str

⚙️ Request Body

EnableTwoStepRequestBody

🌐 Endpoint

/settings/account/two-step post

🔙 Back to Table of Contents


whatsappbusiness.users.create_user

Create-User

🛠️ Usage

create_user_response = whatsappbusiness.users.create_user(
    password="password",
    username="username",
)

⚙️ Parameters

password: str

username

username: str

password

⚙️ Request Body

CreateUserRequestBody

🔄 Return

UserResponse

🌐 Endpoint

/users post

🔙 Back to Table of Contents


whatsappbusiness.users.get_by_username

Get-User

🛠️ Usage

get_by_username_response = whatsappbusiness.users.get_by_username(
    user_username="UserUsername_example",
)

⚙️ Parameters

user_username: str

🔄 Return

DetailedUserResponse

🌐 Endpoint

/users/{UserUsername} get

🔙 Back to Table of Contents


whatsappbusiness.users.perform_login

Login-User

🛠️ Usage

perform_login_response = whatsappbusiness.users.perform_login(
    new_password="<New Admin Password>",
)

⚙️ Parameters

new_password: str

⚙️ Request Body

LoginAdminRequestBody

🔄 Return

UserLoginResponse

🌐 Endpoint

/users/login post

🔙 Back to Table of Contents


whatsappbusiness.users.perform_logout

Logout-User

🛠️ Usage

whatsappbusiness.users.perform_logout()

🌐 Endpoint

/users/logout post

🔙 Back to Table of Contents


whatsappbusiness.users.remove_user

Delete-User

🛠️ Usage

remove_user_response = whatsappbusiness.users.remove_user(
    user_username="UserUsername_example",
)

⚙️ Parameters

user_username: str

🔄 Return

UserResponse

🌐 Endpoint

/users/{UserUsername} delete

🔙 Back to Table of Contents


whatsappbusiness.users.update_user

Update-User

🛠️ Usage

update_user_response = whatsappbusiness.users.update_user(
    password="New Password",
    user_username="UserUsername_example",
)

⚙️ Parameters

password: str

password

user_username: str

⚙️ Request Body

UpdateUserRequestBody

🔄 Return

UserResponse

🌐 Endpoint

/users/{UserUsername} put

🔙 Back to Table of Contents


Author

This Python package is automatically generated by Konfig

About

Use WhatsApp Messenger to stay in touch with friends and family. WhatsApp is free and offers simple, secure, reliable messaging and calling, available on phones all over the world. WhatsApp's Python SDK for Business API generated by Konfig (https://konfigthis.com/).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages