orapakat/zenzivadev

Application of sms api and whatsapp (Regular, Center, Masking) from the zenziva.id site

v3.0 2021-04-19 01:50 UTC

This package is auto-updated.

Last update: 2024-04-19 09:02:25 UTC


README

how to use this package?

Install with composer:
composer require orapakat/zenzivadev

Update composer in laravel project:
php artisan vendor:publish

Select the provider class:
Provider: Orapakat\Zenzivadev\ZenzivaODVServiceProvider

===========================================================================
Change content in file config/orapakatdev_zenziva.php

'urlRegular' => 'https://console.zenziva.net/',
'UserkeyRegular' => '',
'ApikeyRegular' => '',
'urlCenter' => 'http://[alamatcenter].zenziva.co.id/',
'UserkeyCenter' => '',
'ApikeyCenter' => '',
'instanceID' => '',

register on the zenziva.id site to get the user and the api key.

====================================================================
Guide:

Add namespace in Controller:
use Orapakat\Zenzivadev\Sms as SMS;
use Orapakat\Zenzivadev\Wa as WA;

Sending SMS Regular: SMS::rsend($telp,$sms)
Sending SMS Masking: SMS::msend($telp,$sms)
Sending OTP Masking: SMS::otpsend($telp,$sms)
Sending SMS Center: SMS::csend($telp,$sms)
Delevery Report SMS Center: SMS::dreport($messageid)
Pulsa Check SMS Center: SMS::cpulsa()
Credit Check SMS Center: SMS::ccredit()
Reading SMS Center (Autoreply): SMS::readsms()
Add Contact SMS Center: SMS::addcontact($name,$nohp)
Get Inbox SMS Center: SMS::getinbox($startdate,$enddate)
Get Outbox SMS Center: SMS::getoutbox($startdate,$enddate)

Sending WhatsApp Regular: WA::rsend($telp,$sms)
Sending File WhatsApp Regular: WA::fsend($telp,$caption,$linkurlfile)
Sending Voice WhatsApp Regular: WA::vsend($telp,$sms)
Sending WhatsApp Center: WA::csend($telp,$sms)
Delivery Report WhatsApp Center: WA::dreport($messageid)
Credit Check WhatsApp Center: WA::creditactive()
Sending File WhatsApp Center: WA::cfsend($telp,$caption,$linkfile)
Add Contact WhatsApp Center: WA::addcontact($name,$nohp)
Get Inbox WhatsApp Center: WA::getinbox($startdate,$enddate)
Get Outbox WhatsApp Center: WA::getoutbox($startdate,$enddate)