I am integrating an API into my Wordpress website and I am having trouble understanding the instructions on Github as to how to install the API. I am comfortable with using Wordpress themes and plugins but I am new to coding + API.
I have downloaded the library from Github and extracted it on my computer. Where should I be saving this folder in my Wordpress directory, ie. root, plugins, themes or elsewhere?
It has asked for me to "Extract the library into the php include path." Is this the same as the extraction I have done above?
Then it requires me to integrate this line of code:
require_once(dirname(__FILE__) . 'path_to ChargeBee.php');
and I have no idea where I should do this. Do I need to create a separate .php file for this? I saw a video online where I could insert this in .htaccess. Is this correct? Or should I be placing it in one of the files of the library?
I assume "path_to Chargebee.php" above needs to be changed to the path where I save the library in my Wordpress directory?
The linkt to where the above information is is: https://github.com/chargebee/chargebee-php.
Any help would be appreciated to this newbie.:) Thanks in advance.
P/S: I thought I should add this. I spent the entire day yesterday looking at youtube API videos but none of them explained the basics for a dummy like me. I have tried searching Google but again I couldn't find anything answering my questions. I hope someone can help....pretty pleeeaasssee.....