signupFormUpdate
public static boolean signupFormUpdate(string token, SignupFormDataStructure signupForm)
Update an existing SignUp Form based on the details provided. Return Boolean value true if SignupForm updated.
Parameters
|
string token | A valid token for your account. To generate a token, use the login method. |
string signupFormID | ID of the signupform which you want to update. |
array signupForm | The array containing the signup Form details.
string name | This will only be seen by you and is used to organize your signUpForm. | ContactListStructure[] lists | Contact Lists id for which you want to create signupForm | string introduction | Introduction phrase for your signupForm | string title | Title which will appear on the signupForm | string logo | The logo image path which you want to show as your mark |
|
Returns |
string | Returns true if SignupForm updated else false. |
- <?php
- /**
- This Example shows how to authenticate a user using XML-RPC.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.php';
- $client = XML_RPC2_Client::create($apiURL);
- $token = $client->login($apiLogin, $apiPassword);
-
- $signupForm['name'] = 'March28 2011SignUpForm1';
- $signupForm['title'] = 'Do you eat out regularly';
- $signupForm['introduction'] = 'Never';
- $contactData[0]['id']='1001';
- $contactData[1]['id']='1002';
- $signupForm['list'] = $contactData;
- $singupForm['logo']='/logo/SignupLogo.gif';
- $signupFormID='484';
- $retVal = $client->signupFormUpdate($token, $signupFormID,$singupForm);
- ?>