aldinokemal / sdk-php-whatsapp-web-multidevice
This API is used for sending whatsapp via API
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/aldinokemal/sdk-php-whatsapp-web-multidevice
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2025-12-14 06:43:20 UTC
README
This API is used for sending whatsapp via API
Installation & Usage
Requirements
PHP 8.1 and later.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/aldinokemal/sdk-php-whatsapp-web-multidevice.git"
}
],
"require": {
"aldinokemal/sdk-php-whatsapp-web-multidevice": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/SdkWhatsappWebMultiDevice/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: basicAuth $config = SdkWhatsappWebMultiDevice\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); $apiInstance = new SdkWhatsappWebMultiDevice\Api\AppApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->appDevices(); print_r($result); } catch (Exception $e) { echo 'Exception when calling AppApi->appDevices: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to http://localhost:3000
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AppApi | appDevices | GET /app/devices | Get list connected devices |
| AppApi | appLogin | GET /app/login | Login to whatsapp server |
| AppApi | appLoginWithCode | GET /app/login-with-code | Login with pairing code |
| AppApi | appLogout | GET /app/logout | Remove database and logout |
| AppApi | appReconnect | GET /app/reconnect | Reconnecting to whatsapp server |
| ChatApi | getChatMessages | GET /chat/{chat_jid}/messages | Get messages from a specific chat |
| ChatApi | labelChat | POST /chat/{chat_jid}/label | Label or unlabel a chat |
| ChatApi | listChats | GET /chats | Get list of chats |
| ChatApi | pinChat | POST /chat/{chat_jid}/pin | Pin or unpin a chat |
| GroupApi | addParticipantToGroup | POST /group/participants | Adding more participants to group |
| GroupApi | approveGroupParticipantRequest | POST /group/participant-requests/approve | Approve participant request to join group |
| GroupApi | createGroup | POST /group | Create group and add participant |
| GroupApi | demoteParticipantToMember | POST /group/participants/demote | Demote participants to member |
| GroupApi | exportGroupParticipants | GET /group/participants/export | Export group participants as CSV |
| GroupApi | getGroupInfoFromLink | GET /group/info-from-link | Get group information from invitation link |
| GroupApi | getGroupParticipantRequests | GET /group/participant-requests | Get list of participant requests to join group |
| GroupApi | getGroupParticipants | GET /group/participants | Get list of participants in a group |
| GroupApi | groupInfo | GET /group/info | Group Info |
| GroupApi | groupInviteLink | GET /group/invite-link | Group Invite Link |
| GroupApi | joinGroupWithLink | POST /group/join-with-link | Join group with link |
| GroupApi | leaveGroup | POST /group/leave | Leave group |
| GroupApi | promoteParticipantToAdmin | POST /group/participants/promote | Promote participants to admin |
| GroupApi | rejectGroupParticipantRequest | POST /group/participant-requests/reject | Reject participant request to join group |
| GroupApi | removeParticipantFromGroup | POST /group/participants/remove | Remove participants from group |
| GroupApi | setGroupAnnounce | POST /group/announce | Set group announce mode |
| GroupApi | setGroupLocked | POST /group/locked | Set group locked status |
| GroupApi | setGroupName | POST /group/name | Set group name |
| GroupApi | setGroupPhoto | POST /group/photo | Set group photo |
| GroupApi | setGroupTopic | POST /group/topic | Set group topic |
| MessageApi | deleteMessage | POST /message/{message_id}/delete | Delete Message |
| MessageApi | reactMessage | POST /message/{message_id}/reaction | Send reaction to message |
| MessageApi | readMessage | POST /message/{message_id}/read | Mark as read message |
| MessageApi | revokeMessage | POST /message/{message_id}/revoke | Revoke Message |
| MessageApi | starMessage | POST /message/{message_id}/star | Star message |
| MessageApi | unstarMessage | POST /message/{message_id}/unstar | Unstar message |
| MessageApi | updateMessage | POST /message/{message_id}/update | Edit message by message ID before 15 minutes |
| NewsletterApi | unfollowNewsletter | POST /newsletter/unfollow | Unfollow newsletter |
| SendApi | sendAudio | POST /send/audio | Send Audio |
| SendApi | sendChatPresence | POST /send/chat-presence | Send chat presence (typing indicator) |
| SendApi | sendContact | POST /send/contact | Send Contact |
| SendApi | sendFile | POST /send/file | Send File |
| SendApi | sendImage | POST /send/image | Send Image |
| SendApi | sendLink | POST /send/link | Send Link |
| SendApi | sendLocation | POST /send/location | Send Location |
| SendApi | sendMessage | POST /send/message | Send Message |
| SendApi | sendPoll | POST /send/poll | Send Poll / Vote |
| SendApi | sendPresence | POST /send/presence | Send presence status |
| SendApi | sendSticker | POST /send/sticker | Send Sticker |
| SendApi | sendVideo | POST /send/video | Send Video |
| UserApi | userAvatar | GET /user/avatar | User Avatar |
| UserApi | userBusinessProfile | GET /user/business-profile | Get Business Profile Information |
| UserApi | userChangeAvatar | POST /user/avatar | User Change Avatar |
| UserApi | userChangePushName | POST /user/pushname | User Change Push Name |
| UserApi | userCheck | GET /user/check | Check if user is on WhatsApp |
| UserApi | userInfo | GET /user/info | User Info |
| UserApi | userMyContacts | GET /user/my/contacts | Get list of user contacts |
| UserApi | userMyGroups | GET /user/my/groups | User My List Groups |
| UserApi | userMyNewsletter | GET /user/my/newsletters | User My List Groups |
| UserApi | userMyPrivacy | GET /user/my/privacy | User My Privacy Setting |
Models
- ApproveGroupParticipantRequestRequest
- BusinessProfileResponse
- BusinessProfileResponseResults
- BusinessProfileResponseResultsBusinessHoursInner
- BusinessProfileResponseResultsCategoriesInner
- Chat
- ChatListResponse
- ChatListResponseResults
- ChatListResponseResultsPagination
- ChatMessage
- ChatMessagesResponse
- ChatMessagesResponseResults
- ChatMessagesResponseResultsPagination
- CreateGroupRequest
- CreateGroupResponse
- CreateGroupResponseResults
- DeviceResponse
- DeviceResponseResultsInner
- ErrorBadRequest
- ErrorInternalServer
- ErrorNotFound
- ErrorUnauthorized
- GenericResponse
- GetGroupInviteLinkResponse
- GetGroupInviteLinkResponseResults
- Group
- GroupInfoFromLinkResponse
- GroupInfoFromLinkResponseResults
- GroupInfoResponse
- GroupParticipantItem
- GroupParticipantRequestListResponse
- GroupParticipantRequestListResponseResults
- GroupParticipantRequestListResponseResultsDataInner
- GroupParticipantsResponse
- GroupParticipantsResult
- GroupResponse
- GroupResponseResults
- JoinGroupWithLinkRequest
- LabelChatRequest
- LabelChatResponse
- LabelChatResponseResults
- LeaveGroupRequest
- LoginResponse
- LoginResponseResults
- LoginWithCodeResponse
- LoginWithCodeResponseResults
- ManageParticipantRequest
- ManageParticipantResponse
- ManageParticipantResponseResultsInner
- MyListContacts
- MyListContactsResponse
- MyListContactsResponseResults
- Newsletter
- NewsletterResponse
- NewsletterResponseResults
- NewsletterState
- NewsletterThreadMetadata
- NewsletterThreadMetadataDescription
- NewsletterThreadMetadataName
- NewsletterThreadMetadataPicture
- NewsletterThreadMetadataPreview
- NewsletterThreadMetadataSettings
- NewsletterThreadMetadataSettingsReactionCodes
- NewsletterViewerMetadata
- Participant
- PinChatRequest
- PinChatResponse
- PinChatResponseResults
- ReactMessageRequest
- ReadMessageRequest
- RejectGroupParticipantRequestRequest
- RevokeMessageRequest
- SendChatPresenceRequest
- SendContactRequest
- SendLinkRequest
- SendLocationRequest
- SendMessageRequest
- SendPollRequest
- SendPresenceRequest
- SendResponse
- SendResponseResults
- SetGroupAnnounceRequest
- SetGroupLockedRequest
- SetGroupNameRequest
- SetGroupPhotoResponse
- SetGroupPhotoResponseResults
- SetGroupTopicRequest
- UnfollowNewsletterRequest
- UpdateMessageRequest
- UserAvatarResponse
- UserAvatarResponseResults
- UserChangePushNameRequest
- UserCheckResponse
- UserCheckResponseResults
- UserGroupInfoResponse
- UserGroupResponse
- UserGroupResponseResults
- UserGroupResponseResultsDataInner
- UserGroupResponseResultsDataInnerParticipantsInner
- UserInfoResponse
- UserInfoResponseResults
- UserInfoResponseResultsDevicesInner
- UserPrivacyResponse
- UserPrivacyResponseResults
Authorization
Authentication schemes defined for the API:
basicAuth
- Type: HTTP basic authentication
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
6.12.0- Generator version:
7.18.0-SNAPSHOT
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen