Skip to content

Instantly share code, notes, and snippets.

@atwellpub
atwellpub / response.json
Created September 19, 2014 22:05
Example JSON response when endpoint is /field-map/
{
"wpleads_first_name": "First Name",
"wpleads_last_name": "Last Name",
"wpleads_email_address": "Email",
"wpleads_website": "Website",
"wpleads_job_title": "Job Title",
"wpleads_company_name": "Company Name",
"wpleads_mobile_phone": "Mobile Phone",
"wpleads_work_phone": "Work Phone",
"wpleads_address_line_1": "Address",
@atwellpub
atwellpub / wrapper.php
Last active August 29, 2015 14:06
This example seeks to help developers understand how to access the /lists/delete endpoint.
<?php
/**
* This example seeks to help developers understand how to access the /lists/delete endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
@atwellpub
atwellpub / response.json
Created September 19, 2014 21:55
Example JSON response when endpoint /lists/delete is requested
{
"message": "lead list delete"
}
@atwellpub
atwellpub / wrapper.php
Created September 19, 2014 21:46
/** * This example seeks to help developers understand how to access the /lists/modify endpoint. */
<?php
/**
* This example seeks to help developers understand how to access the /lists/modify endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
@atwellpub
atwellpub / response.json
Created September 19, 2014 21:42
Example JSON response when endpoint /lists/modify is requested
{
"list_id": 112
}
<?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' ) ) {
@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 {
@atwellpub
atwellpub / response.json
Last active August 29, 2015 14:06
Example JSON response when endpoint /lists/add is requested.
{
"id": "122"
}
@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 / 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 {