andrew501983/what-converts-php

A PHP interface for the WhatConverts API.

1.0.3 2017-02-20 17:46 UTC

This package is not auto-updated.

Last update: 2024-12-07 21:43:48 UTC


README

A PHP interface for the WhatConverts API at https://www.whatconverts.com/api

Build Status

Installation via Composer

Install the latest version using Composer. composer require andrew501983/what-converts-php

Usage

Please peruse the WhatConverts API documentation at https://www.whatconverts.com/api Functionality is split into 3 resources: Accounts, Leads, and Profiles

WhatConverts PHP implements a WhatConvertsInterface which allows for easy documentation.

public function getAccounts(array $options);
public function getAllAccounts(array $options);
public function getAccount($account_id);
public function createAccount($account_name, $create_profile);
public function editAccount($account_id, $account_name);
public function deleteAccount($account_id); 
public function getLeads(array $options);
public function getAllLeads(array $options);
public function getLead($lead_id);
public function createLead($profile_id, $lead_type, array $attributes);
public function editLead($lead_id, array $attributes);
public function getProfiles($account_id, array $options);
public function getAllProfiles($account_id, array $options);
public function getProfile($account_id, $profile_id);
public function createProfile($account_id, $profile_name);
public function editProfile($account_id, $profile_id, $profile_name);
public function deleteProfile($account_id, $profile_id);

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/andrew501983/what-converts-php

License

The package is available as open source under the terms of the MIT License.