adidtech/adid-php-sdk

Official Ad-ID PHP API Software Development Kit v.1.0.0

dev-master 2018-08-23 21:05 UTC

README

alt text

Ad-ID PHP API SDK v.1.0.0 [BETA]

The Ad-ID Web API is a set of HTTP endpoints that helps your consumer app integrate with Ad-ID. The Ad-ID API SDK [BETA] is a PHP implementation. Check out our full list of API actions in the Ad-ID Services User Guide to learn about everything you can do with the API.

Getting Started

Please refer to the Wiki

Prerequisites

PHP >= 5.3.10

Composer >= 1.6.3

Installing

Install using Composer. Simply update your composer.json with the following command:

composer require adidtech/adid-php-sdk

Basic usage: instantiate a new AdidBrowser with valid credentials.

    <?php 
    
        //This will just show you the basics, please read the full documentation.
        $adid_browser = new \AdvertisingDigital\AdidBrowser('foo@your-domain.net','yourpass');
        $adid_response = $adid_browser->listSingleCode(1242423);
        $adid_code = json_decode($adid_response->getContent(), TRUE);
        echo $adid_browser->getLastRequest() . PHP_EOL;
        print_r($adid_code);

Running the tests

PHP-Unit tests are located within the tests directory.

Built With

  • Buzz - Buzz Lightweight HTTP Client

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

#For the versions available, see the tags on #this repository.

Authors

  • James Tarleton - Initial work - adidtech

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to Kris Wallsmith - author of Buzz HTTP Client