PHP Class Infusionsoft_WebFormService, infusionsoft-php-sdk

Inheritance: extends Infusionsoft_WebFormServiceBase
Datei anzeigen Open project: novaksolutions/infusionsoft-php-sdk Class Usage Examples

Public Methods

Method Description
getHTML ( integer $webFormId, Infusionsoft_App $app = null ) : string Get the web form's full HTML.
getHostedURL ( integer $webFormId, Infusionsoft_App $app = null ) : string Get the web form's hosted URL.
getHostedUrlFromHtml ( $html, Infusionsoft_App $app = null ) : string
getJavaScript ( integer $webFormId, Infusionsoft_App $app = null ) : string Get the web form's JavaScript snippet.
getMap ( Infusionsoft_App $app = null ) : array Get a list of all web form names and IDs.
ping ( $serviceName = 'WebFormService', Infusionsoft_App $app = null )

Method Details

getHTML() public static method

Get the full HTML for the specified web form ID. This includes all HTML tags and is meant to be used as a standalone webpage.
public static getHTML ( integer $webFormId, Infusionsoft_App $app = null ) : string
$webFormId integer The ID from Infusionsoft_WebFormService::getMap.
$app Infusionsoft_App
return string Full HTML for the web form.

getHostedURL() public static method

Instead of having to use the HTML code, you can get the URL to the Infusionsoft hosted version of the web form.
Author: Jacob Allred ([email protected])
public static getHostedURL ( integer $webFormId, Infusionsoft_App $app = null ) : string
$webFormId integer The ID from Infusionsoft_WebFormService::getMap.
$app Infusionsoft_App
return string URL of hosted web form

getHostedUrlFromHtml() public static method

public static getHostedUrlFromHtml ( $html, Infusionsoft_App $app = null ) : string
$html
$app Infusionsoft_App
return string

getJavaScript() public static method

Instead of having to use the HTML code, you can get the JavaScript snippet. The web form displayed by the snippet will be updated automatically when it is updated in Infusionsoft.
Author: Jacob Allred ([email protected])
public static getJavaScript ( integer $webFormId, Infusionsoft_App $app = null ) : string
$webFormId integer The ID from Infusionsoft_WebFormService::getMap.
$app Infusionsoft_App
return string JavaScript snippet for the web form.

getMap() public static method

Get a list of all web form names and IDs.
public static getMap ( Infusionsoft_App $app = null ) : array
$app Infusionsoft_App
return array List of web form names and IDs.

ping() public static method

public static ping ( $serviceName = 'WebFormService', Infusionsoft_App $app = null )
$app Infusionsoft_App