Abacus - Manufacture & Sale CRM with POS

SpiderWeb

Active member
Trusted Uploader
Sep 23, 2020
183
166
43
can anyone null this?

<?php

/*
| -----------------------------------------------------
| PRODUCT NAME: ABACUS - BUSINESS MANAGEMENT SYSTEM (ABMS)
| -----------------------------------------------------
| AUTHOR: ONEZEROART TEAM
| -----------------------------------------------------
| EMAIL: [email protected]
| -----------------------------------------------------
| COPYRIGHT: RESERVED BY ONEZEROART.COM
| -----------------------------------------------------
| AUTHOR PORTFOLIO: https://codecanyon.net/user/onezeroart/portfolio
| -----------------------------------------------------
| WEBSITE: http://onezeroart.com
| -----------------------------------------------------
*/

namespace App\Envato;

class Envato {
// Bearer, no need for OAUTH token, change this to your bearer string
// https://build.envato.com/api/#token
//private static $bearer = "hTl89YLIDJqra1orJvkasA5ojJg9GUgg";
//private static $bearer = "Ui2Tiq2JyKNh7nNRb1uBrEKYujKyBBhv";

static function getPurchaseData($code) {

$personal_token = "hTl89YLIDJqra1orJvkasA5ojJg9GUgg";
$header = array();
$header[] = 'Authorization: Bearer '.$personal_token;
$header[] = 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:41.0) Gecko/20100101 Firefox/41.0';
$header[] = 'timeout: 20';

$product_code = $code;
$url = "https://api.envato.com/v3/market/author/sale?code=".$product_code;
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER,$header);

$envatoRes = curl_exec($curl);
curl_close($curl);
$envatoRes = json_decode($envatoRes, true);
return $envatoRes;

}

static function verifyPurchase($code) {
$verify_obj = self::getPurchaseData($code);
return $verify_obj;
}
}

?>
 

Forum statistics

Threads
69,205
Messages
908,332
Members
236,798
Latest member
naveenmanjula127

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu