PHP Classes

Hotmart PHP API: Get the Hotmart user account details using its API

Recommend this page to a friend!
  Info   View files Example   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 34 This week: 1All time: 10,949 This week: 560Up
Version License PHP version Categories
hotmart 1.0.0Custom (specified...5PHP 5, E-Commerce, Web services
Description 

Author

This package can be used to get the Hotmart user account details using its API.

It can retrieve a token using the OAuth protocol to access the details of a user of the Hotmart platform so it can perform API calls to execute several types of actions. Currently it can:

- Get history of activity of the account
- Get the details of a purchase
- Get links for a product being purchased
- Get details of a product
- Get the promotions
- Get details of subscriptions
- Get details about a user

Picture of Wesley Silva
Name: Wesley Silva <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: ???
All time rank: 4481363 in Brazil Brazil
Week rank: 416 Up36 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

ini_set
('display_errors', 'ALL');
require_once
'../vendor/autoload.php';

use
Wesleydeveloper\Hotmart\Hotmart;

$config = json_decode(file_get_contents('../config.json'), true);
var_dump($config);
$hot = new Hotmart($config);
var_dump($hot->getLoggedUser());



Details

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


  Files folder image Files  
File Role Description
Files folder imageexamples (1 file)
Files folder imagesrc (1 file, 1 directory)
Accessible without login Plain text file changelog.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file contributing.md Data Auxiliary data
Accessible without login Plain text file license.md Lic. License text
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageSupport (2 files)
  Plain text file Hotmart.php Class Class source

  Files folder image Files  /  src  /  Support  
File Role Description
  Plain text file Config.php Class Class source
  Plain text file Connect.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:34
This week:1
All time:10,949
This week:560Up