Jump to content

WHMCS OpenAPI


zstergios

Recommended Posts

What is WHMCS openAPI?

openAPI is a small framework and gives the ability to developers to create their addons quick and easy with backward compatibility

 

Where I can find this WHMCS API

https://github.com/zstergios/WHMCS_OpenAPI

 

 

How I can use it

Just include the "init.php" file in the top of your addon php file.

 

$openAPI=dirname(FILE)."/modules/addons/openAPI/init.php"; 
if(!file_exists($openAPI)) exit('This addon requires openAPI addon module'); 
require($openAPI);

 

 

Where is the documentation

There is not documentation for now and we want your contribute to code and in docs!

 

Why is Free

It's free and open source and always will be.

We believe that we can build together a great framework for WHMCS developers, that minimizes the effort and optimizes the performance of addon code

Edited by zstergios
Link to comment
Share on other sites

Example of custom page for ALL WHMCS VERSIONS :!:

 

<?php
define("CLIENTAREA",true);
define("FORCESSL",true);

$openAPI=dirname(__FILE__)."/modules/addons/openAPI/init.php";
if(!file_exists($openAPI)) exit('This addon requires openAPI addon module');
require($openAPI);

$api=SMSAPI::getInstance();
$pagetitle=$api->getLang('managesms');

$ca=new WOAClientarea($pagetitle);
$ca->setBreadcrump(array('managesms.php'=>'managesms'));
$ca->initialize();
$ca->requireLogin();
$userid=$ca->getUserID();
$ca->output("managesms",$smartyvalues);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated