aldinokemal / sdk-php-whatsapp-web-multidevice
此API用于通过API发送WhatsApp消息
dev-main
2024-09-07 02:36 UTC
Requires
- php: ^7.4 || ^8.0
- 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: 2024-09-22 01:02:02 UTC
README
此API用于通过API发送WhatsApp消息
安装和用法
要求
PHP 7.4及以后版本。也应与PHP 8.0兼容。
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/aldinokemal/sdk-php-whatsapp-web-multidevice.git" } ], "require": { "aldinokemal/sdk-php-whatsapp-web-multidevice": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含autoload.php
<?php require_once('/path/to/SdkWhatsappWebMultiDevice/vendor/autoload.php');
入门指南
请遵循安装程序,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $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() ); try { $result = $apiInstance->appDevices(); print_r($result); } catch (Exception $e) { echo 'Exception when calling AppApi->appDevices: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI相对于 https://:3000
模型
- CreateGroupRequest
- CreateGroupResponse
- CreateGroupResponseResults
- DeviceResponse
- DeviceResponseResultsInner
- ErrorBadRequest
- ErrorInternalServer
- GenericResponse
- JoinGroupWithLinkRequest
- LeaveGroupRequest
- LoginResponse
- LoginResponseResults
- LoginWithCodeResponse
- LoginWithCodeResponseResults
- ManageParticipantRequest
- ManageParticipantResponse
- ManageParticipantResponseResultsInner
- ReactMessageRequest
- RevokeMessageRequest
- SendContactRequest
- SendLinkRequest
- SendLocationRequest
- SendMessageRequest
- SendPollRequest
- SendResponse
- SendResponseResults
- UpdateMessageRequest
- UserAvatarResponse
- UserAvatarResponseResults
- UserGroupResponse
- UserGroupResponseResults
- UserGroupResponseResultsDataInner
- UserGroupResponseResultsDataInnerParticipantsInner
- UserInfoResponse
- UserInfoResponseResults
- UserInfoResponseResultsDevicesInner
- UserPrivacyResponse
- UserPrivacyResponseResults
授权
端点不需要授权。
测试
要运行测试,使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包由OpenAPI Generator项目自动生成
- API版本:
4.2.0
- 生成器版本:
7.9.0-SNAPSHOT
- 生成器版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen