PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!

  Author Author  
Name: Wesley Silva <contact>
Classes: 1 package by
Country: Brazil Brazil


  Detailed description   Download Download .zip .tar.gz  
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

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


  Classes of Wesley Silva  >  Hotmart PHP API  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: Hotmart PHP API
Base name: hotmart
Description: Get the Hotmart user account details using its API
Version: -
PHP version: 5
License: Custom (specified in a license file)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image E-Commerce Online stores, shopping baskets and payment methods View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  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

Download 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.