Skip to content
dimitriadamou edited this page Sep 2, 2015 · 3 revisions

#Formitiz API - PHP Documentation

##Overview

REQUIREMENTS

  • PHP 5.5+
  • CURL (will later support using http_request)

USAGE

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

CREDENTIALS

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.

CREATING THE CLIENT

After making your credentials simply create the client

 $client = Formitize\API::RESTClient($credentials);

USING THE CLIENT

The client will contain all of the calls to the API, please view the other sections on how to use the functions.

Clone this wiki locally