Skip to content

Instantly share code, notes, and snippets.

@atwellpub
atwellpub / response.json
Last active August 29, 2015 14:06
Example JSON response after successfully adding a lead using the /leads/add endpoint
{
"results_count": 1,
"results_per_page": 50,
"max_pages": 0,
"results": {
"96988": {
"ID": 96988,
"lists": {
"110": {
"term_id": 110,
@atwellpub
atwellpub / wrapper.php
Last active August 29, 2015 14:06
/** * This example seeks to help developers understand how to access the /leads/add endpoint. */
<?php
/**
* This example seeks to help developers understand how to access the /leads/add endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
@atwellpub
atwellpub / response.json
Last active August 29, 2015 14:06
example json response after successfully completing and Inbound API lead/modify request.
{
"results_count": 1,
"results_per_page": 50,
"max_pages": 0,
"results": {
"96988": {
"ID": 96988,
"lists": {
"113": {
"term_id": 113,
@atwellpub
atwellpub / wrapper.php
Last active August 29, 2015 14:06
/** * This example seeks to help developers understand how to access the /leads/modify endpoint. */
<?php
/**
* This example seeks to help developers understand how to access the /leads/modify endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
@atwellpub
atwellpub / response.json
Created September 17, 2014 23:19
Example JSON response after a lead is successfully deleted from the /leads/delete endpoint.
{
"message": "Lead successfully deleted",
"ID": 96988
}
@atwellpub
atwellpub / wrapper.php
Created September 18, 2014 01:22
/** * This example seeks to help developers understand how to access the /leads/delete endpoint. */
<?php
/**
* This example seeks to help developers understand how to access the /leads/delete endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
@atwellpub
atwellpub / response.json
Created September 18, 2014 22:01
Example JSON response when the /lists/ endpoint is requested.
{
"110": "Alpha",
"111": "Beta",
"113": "Delta",
"114": "Epsilon",
"112": "Gamma"
}
@atwellpub
atwellpub / response.json
Last active August 29, 2015 14:06
Example JSON response when endpoint /lists/add is requested.
{
"id": "122"
}
@atwellpub
atwellpub / wrapper.php
Last active August 29, 2015 14:06
/** * This example seeks to help developers understand how to access the /lists/add endpoint. */
<?php
/**
* This example seeks to help developers understand how to access the /lists/add endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
<?php
/*
* @package GravityFormsLeads\Addon
* @copyright 2014 gravity+
* @license GPL-2.0+
* @since 2.0.0
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {