Difference between revisions of "Offerit API Set Member Details"
From Offerit
(→Server Request/Response) |
OfferitDave (talk | contribs) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
| show_api_admin_section = true | | show_api_admin_section = true | ||
}} | }} | ||
− | This function is used to update a member in Offerit. To use this function, you must make a SOAP call with the following | + | This function is used to update a member in Offerit. To use this function, you must make a SOAP call with the following parameter: |
− | *'''memberid''' - the ID of the member to modify | + | |
+ | *'''subscription_id''' - the subscription id you sent when initially creating the member | ||
+ | or | ||
+ | *'''memberid''' - the internal Offerit ID of the member to modify | ||
The following are optional parameters: | The following are optional parameters: | ||
Line 21: | Line 24: | ||
*'''custom5''' - The custom5 field of the member | *'''custom5''' - The custom5 field of the member | ||
*'''password''' - The new password of the member | *'''password''' - The new password of the member | ||
+ | |||
== NuSOAP Example == | == NuSOAP Example == | ||
Line 28: | Line 32: | ||
<pre> | <pre> | ||
$values = Array( | $values = Array( | ||
− | ' | + | 'subscription_id'=>'5952asdf472254', |
'firstname'=>'Megan', | 'firstname'=>'Megan', | ||
'lastname'=>'Tester' | 'lastname'=>'Tester' | ||
Line 34: | Line 38: | ||
); | ); | ||
− | $result = $client->call(' | + | $result = $client->call('set_member_data', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
Line 46: | Line 50: | ||
on failure: | on failure: | ||
<no output> | <no output> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Latest revision as of 14:25, 20 September 2013
This function is used to update a member in Offerit. To use this function, you must make a SOAP call with the following parameter:
- subscription_id - the subscription id you sent when initially creating the member
or
- memberid - the internal Offerit ID of the member to modify
The following are optional parameters:
- firstname - The first name of the member
- lastname - The last name of the member
- email - The email address of the member
- address1 - The address of the member
- address2 - The address of the member
- city - The city of the member
- state - The state of the member
- country - The country of the member
- zip - The zip code of the member
- custom1 - The custom1 field of the member
- custom2 - The custom2 field of the member
- custom3 - The custom3 field of the member
- custom4 - The custom4 field of the member
- custom5 - The custom5 field of the member
- password - The new password of the member
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'subscription_id'=>'5952asdf472254', 'firstname'=>'Megan', 'lastname'=>'Tester' ) ); $result = $client->call('set_member_data', $values, 'offeritapiadmin_wsdl');
Sample Output
on success: 1 on failure: <no output>