Class SurveyMonkey
Class for SurveyMonkey API v2
public static
|
|
public static
string
|
|
public
|
#
__construct( string $apiKey, string $accessToken, array $options = array(), array $connectionOptions = array() )
The SurveyMonkey Constructor. |
protected
string
|
|
protected
boolean
|
|
protected
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
public
array
|
|
public
array
|
|
public
array
|
#
getCollectorList( string $surveyId, array $params = array() )
Retrieves a paged list of collectors for a survey in a user's account. |
public
array
|
#
getRespondentList( string $surveyId, array $params = array() )
Retrieves a paged list of respondents for a given survey and optionally collector |
public
array
|
#
getResponses( string $surveyId, array $respondentIds, integer $chunkSize = 100 )
Takes a list of respondent ids and returns the responses that correlate to them. |
public
array
|
#
getResponseCounts( string $collectorId )
Returns how many respondents have started and/or completed the survey for the given collector |
public
array
|
|
public
array
|
#
getTemplateList( array $params = array() )
Retrieves a paged list of templates provided by survey monkey. |
public
array
|
#
createCollector( string $surveyId, string $collectorName = null, string $collectorType = 'weblink', array $params,… )
Retrieves a paged list of templates provided by survey monkey. |
public
array
|
#
createFlow( string $surveyTitle, array $params = array() )
Create a survey, email collector and email message based on a template or existing survey. |
public
array
|
integer |
SM_STATUS_SUCCESS
|
#
0
|
protected
string
|
$_apiKey
API key |
|
protected
string
|
$_accessToken
API access token |
|
protected
string
|
$_protocol
API protocol |
|
protected
string
|
$_hostname
API hostname |
|
protected
string
|
$_version
API version |
|
protected
array
|
$_connectionOptions
(optional) cURL connection options |
|
public static
array
|
$SM_STATUS_CODES
SurveyMonkey API Status code definitions |
#
array(
0 => "Success",
1 => "Not Authenticated",
2 => "Invalid User Credentials",
3 => "Invalid Request",
4 => "Unknown User",
5 => "System Error",
6 => "Plan Limit Exceeded"
)
|