-
Notifications
You must be signed in to change notification settings - Fork 0
Home
dimitriadamou edited this page Sep 2, 2015
·
3 revisions
#Formitiz API - PHP Documentation
##Overview
- PHP 5.5+
- CURL (will later support using http_request)
After downloading the repository, simply include the file
require {PATH_TO_API_FOLDER}/Formitize/autoload.inc.php
And it will do all the lazy loading for you
In order to make requests to the Formitize API, you will need to provide your login credentials for now until OAuth2 support has been released. Simply you can do
$credentials = Formitize\API::CreateCredentials();
$credentials->setCompanyName("TestCompany");
$credentials->setUserName("Admin");
$credentials->setPassword("MyPassword");
This will then sign all of your API requests using your login credentials.
After making your credentials simply create the client
$client = Formitize\API::RESTClient($credentials);
The client will contain all of the calls to the API, please view the other sections on how to use the functions.