aldinokemal/sdk-php-whatsapp-web-multidevice

此API用于通过API发送WhatsApp消息

dev-main 2024-09-07 02:36 UTC

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

模型

授权

端点不需要授权。

测试

要运行测试,使用

composer install
vendor/bin/phpunit

作者

关于此包

此PHP包由OpenAPI Generator项目自动生成

  • API版本: 4.2.0
    • 生成器版本: 7.9.0-SNAPSHOT
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen