javadi / daart-ads
Smart Ads PHP Library by Daart Company
1.1.0
2023-02-18 15:49 UTC
Requires
- php: >=7.3
- ext-curl: *
- ext-json: *
README
You can use this library to access the DaartAds APIs.
Requirements
- PHP >= 7.3
- Your server has to have CURL enabled. (How to enable CURL)
Installation
composer require javadi/daart-ads
Usage
require __DIR__ . "/../vendor/autoload.php"; // Your api key needs to be initialised here. $DaartADS = new \javadi\DaartAgency\DaartAds(YOUR_API_KEY); // For Get ADS: $ads = $DaartADS->GetADS();
- You will receive a list with all the information for the show ADS
{ "image_url": "IMAGE_LINK", "url": "REDIRECT_LINK" }
From versions V1.1 and after, we'll provide the redirect link for you; you don't need to construct it yourself.