Skip to content

ilanbenb/sdk-python-whatsapp-web-multidevice

Repository files navigation

openapi-client

This API is used for sending whatsapp via API

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 4.4.0
  • Package version: 1.0.0
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.8+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import openapi_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import openapi_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:3000
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "http://localhost:3000"
)



# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.AppApi(api_client)

    try:
        # Get list connected devices
        api_response = api_instance.app_devices()
        print("The response of AppApi->app_devices:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AppApi->app_devices: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:3000

Class Method HTTP request Description
AppApi app_devices GET /app/devices Get list connected devices
AppApi app_login GET /app/login Login to whatsapp server
AppApi app_login_with_code GET /app/login-with-code Login with pairing code
AppApi app_logout GET /app/logout Remove database and logout
AppApi app_reconnect GET /app/reconnect Reconnecting to whatsapp server
GroupApi add_participant_to_group POST /group/participants Adding more participants to group
GroupApi create_group POST /group Create group and add participant
GroupApi demote_participant_to_member POST /group/participants/demote Demote participants to member
GroupApi join_group_with_link POST /group/join-with-link Join group with link
GroupApi leave_group POST /group/leave Leave group
GroupApi promote_participant_to_admin POST /group/participants/promote Promote participants to admin
GroupApi remove_participant_from_group POST /group/participants/remove Remove participants from group
MessageApi delete_message POST /message/{message_id}/delete Delete Message
MessageApi react_message POST /message/{message_id}/reaction Send reaction to message
MessageApi read_message POST /message/{message_id}/read Mark as read message
MessageApi revoke_message POST /message/{message_id}/revoke Revoke Message
MessageApi update_message POST /message/{message_id}/update Edit message by message ID before 15 minutes
NewsletterApi unfollow_newsletter POST /newsletter/unfollow Unfollow newsletter
SendApi send_audio POST /send/audio Send Audio
SendApi send_contact POST /send/contact Send Contact
SendApi send_file POST /send/file Send File
SendApi send_image POST /send/image Send Image
SendApi send_link POST /send/link Send Link
SendApi send_location POST /send/location Send Location
SendApi send_message POST /send/message Send Message
SendApi send_poll POST /send/poll Send Poll / Vote
SendApi send_video POST /send/video Send Video
UserApi user_avatar GET /user/avatar User Avatar
UserApi user_info GET /user/info User Info
UserApi user_my_groups GET /user/my/groups User My List Groups
UserApi user_my_newsletter GET /user/my/newsletters User My List Groups
UserApi user_my_privacy GET /user/my/privacy User My Privacy Setting

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

About

sdk-python-whatsapp-web-multidevice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published