library lemonink-php
Official PHP client for LemonInk API
lemonink/lemonink-php
Official PHP client for LemonInk API
- Thursday, June 21, 2018
- by edziubudzik
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 33 % Grown
LemonInk API Client for PHP
Getting started
-
Sign up for LemonInk — Before you begin, you need to sign up for a LemonInk account and obtain an API key.
-
Minimum requirements — To run the SDK, your system will need to meet the minimum requirements, including having PHP >= 5.5.
Example
<?php
require "vendor/autoload.php";
$client = new LemonInk\Client("your-api-key");
$transaction = new LemonInk\Models\Transaction();
$transaction->setMasterId("id-of-a-master-file");
$transaction->setWatermarkValue("Text you want to have embedded in your file");
$client->save($transaction);
echo "Download your file from {$transaction->getUrl()}\n";