[![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads][ico-downloads]][link-downloads] [![Build Status][ico-travis]][link-travis]
SDK PHP for connection to the Hotmart API. Take a look at contributing.md to see a to do list.
Via Composer
$ composer require wesleydeveloper/hotmart
Create array settings
use Wesleydeveloper\Hotmart\Hotmart;
$config = [
'client_id' => '[YOUR_CLIENT_ID]',
'client_secret' => '[YOUR_CLIENT_SECRET]',
'basic' => '[YOUR_BASIC]'
];
$hotmart = new Hotmart($config);
var_dump($hotmart->getLoggedUser());
or set variables
use Wesleydeveloper\Hotmart\Hotmart;
$client_id = '[YOUR_CLIENT_ID]';
$client_secret = '[YOUR_CLIENT_SECRET]';
$basic = '[YOUR_BASIC]';
$hotmart = new Hotmart();
$hotmart->setConfig($client_id, $client_secret, $basic);
var_dump($hotmart->getLoggedUser());
This is the class where you have to focus. It is connected to the API connection class, Support\HotConnect.
All required and optional parameters are documented in class /path-to-project/vendor/wesleydeveloper/hotmart/src/Hotmart.php
var_dump($hotmart->getHotlinks());
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
MIT. Please see the license file for more information.
[ico-version]: https://img.shields.io/packagist/v/wesleydeveloper/hotmart.svg?style=flat-square [ico-downloads]: https://img.shields.io/packagist/dt/wesleydeveloper/hotmart.svg?style=flat-square [ico-travis]: https://img.shields.io/travis/wesleydeveloper/hotmart/master.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/wesleydeveloper/hotmart [link-downloads]: https://packagist.org/packages/wesleydeveloper/hotmart [link-travis]: https://travis-ci.org/wesleydeveloper/hotmart [link-author]: https://github.com/wesleydeveloper [link-contributors]: ../../contributors
Classes of Wesley Silva | > | Hotmart PHP API | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
E-Commerce | Online stores, shopping baskets and payment methods | View top rated classes |
Web services | Web data clipping, SOAP or XML-RPC clients and servers | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
examples (1 file) | ||||
src (1 file, 1 directory) | ||||
changelog.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
contributing.md | Data | Auxiliary data | ||
license.md | Lic. | License text | ||
readme.md | Doc. | Documentation |
Files | / | src | / | Support |
File | Role | Description |
---|---|---|
Config.php | Class | Class source |
Connect.php | Class | Class source |
Download all files: hotmart.tar.gz hotmart.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|