msg91 / campaign
Official PHP Package for integrating MSG91 APIs for sending SMS, Email, Voice and Whatsapp communication. Easy to install and integrate to run marketing campaigns, transactional updates etc.
v1.0.0.3
2022-07-05 03:16 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-05-22 14:03:19 UTC
README
require_once __DIR__ . '/vendor/autoload.php'; $client = new \Msg91\Campaign\Client('MSG91-AUTH-KEY'); $campaignList = $client->getCampaigns(); $campaignSlug = "demo"; $campaignFields = $client->getFields($campaignSlug); $requestBody = $client->getRequestBody($campaignSlug); $response = $client->runCampaign($campaignSlug, $requestBody);