Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (31 loc) · 2.5 KB

README.md

File metadata and controls

38 lines (31 loc) · 2.5 KB

Waiver Forever API wrapper for PHP

This is a simple PHP SDK for interacting with the Waiver Forever API. All API documentation can be found at https://docs.waiverforever.com

Installation

composer require christohill/waiverforever-api-php

Usage

Note: none of the API keys or ID below are valid

Simple usage

use WaiverForever\WaiverForever;
$waivers = new WaiverForever('edf59be9216e66eb17093574376d4c5f');
$user = $waivers->UserInfo(); // Get user info for the API key
$templates = $waivers->TemplateList(); // List all templates
$signed = $waivers->SignedWaiver('aWd898gfdsa789ddf'); // Get a signed waiver

Methods

Method Description Docs
UserInfo() Get user info for the API key Read docs
AllSubscriptions() Get all webhooks subscriptions Read docs
CreateSubscription($target, $template, $event) Subscribe an event/webhook Read docs
DeleteSubscription($subscriptionID) Unsubscribe an event Read docs
TemplateList() List all templates Read docs
WaiverRequest($template, $expiry) Request a waiver to sign Read docs
TrackingWaiver($trackingID) Query signed waiver by tracking id Read docs
SignedWaiver($waiver) Get a signed waiver Read docs
SearchWaiver($filters) Search waiver with keywords Read docs
WaiverPDF($waiver) Download waiver in pdf Read docs
WaiverPicture($waiver, $picture) Download waiver pictures Read docs