Skip to content

Installations

React More edited this page Feb 13, 2025 · 2 revisions

Composer Install

composer require reactmore-tech/mayar-headless-api

Init Config

require 'vendor/autoload.php';

$mayarId = new \ReactMoreTech\MayarHeadlessAPI\MayarProvider();
$mayarId->setProduction(false);
$mayarId->apiToken("xxxx");
$mayarId->webhookToken("xxxxxx");

Method WebhookServices For example

var_dump($mayarId->webhookServices()->getWebhookHistory());
var_dump($mayarId->webhookServices()->setWebhookURL('https://example.mayar.com'));
var_dump($mayarId->webhookServices()->testWebhookURL('https://example.mayar.com'));

Clone this wiki locally