zapply/zapply-php

1.0.2 2024-04-09 01:15 UTC

This package is auto-updated.

Last update: 2024-11-09 02:28:27 UTC


README

Zapply SDK is a PHP client library for interacting with Zapply.

Requirements

  • PHP 8.1 or higher

Installation

Install the SDK using Composer:

composer require zapply/zapply-php

Usage

<?php

use Zapply\Zapply;

$zapply = new Zapply([
    'base_uri' => 'YOUR DEVICE URL',
    'bearer_token' => 'YOUR API KEY',
    'channel_id' => 'YOUR DEVICE ID',
]);

$response = $zapply->chat('552199999999')->sendMessage([
    'recipient_type' => 'individual',
    'type' => 'text',
    'message' => [
        'body' => 'Hello World!',
    ]
])