PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Wesley Silva   Hotmart PHP API   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Hotmart PHP API
Get the Hotmart user account details using its API
Author: By
Last change:
Date: 4 years ago
Size: 3,000 bytes
 

Contents

Class file image Download

Hotmart SDK PHP Unofficial

[![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads][ico-downloads]][link-downloads] [![Build Status][ico-travis]][link-travis]

Scrutinizer

Scrutinizer Code Quality Code Intelligence Status Build Status

SDK PHP for connection to the Hotmart API. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require wesleydeveloper/hotmart

Configuration

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()); 

Usage

Hotmart

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

Examples

   var_dump($hotmart->getHotlinks());

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

  • [Wesley Silva][link-author]
  • [All Contributors][link-contributors]

License

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