pem.addAccountMember Sample
The following XML snippet shows the structure of sample request for XML-RPC call for this method:
<?xml version="1.0"?>
<methodCall>
<methodName>pem.addAccountMember</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>account_id</name>
<value>
<int>${theAccountID}</int>
</value>
</member>
<member>
<name>user_id</name>
<value>
<int>${theMemberID}</int>
</value>
</member>
<member>
<name>login</name>
<value>
<string>${theLoginName}</string>
</value>
</member>
<member>
<name>auth</name>
<value>
<struct>
<member>
<name>login</name>
<value>
<string>${theLoginName}</string>
</value>
</member>
<member>
<name>password</name>
<value>
<string>${thePassword}</string>
</value>
</member>
</struct>
</value>
</member>
<member>
<name>person</name>
<value>
<struct>
<member>
<name>title</name>
<value>
<string>${theTitle}</string>
</value>
</member>
<member>
<name>first_name</name>
<value>
<string>${theFirstName}</string>
</value>
</member>
<member>
<name>middle_name</name>
<value>
<string>${theMiddleName}</string>
</value>
</member>
<member>
<name>last_name</name>
<value>
<string>${theLastName}</string>
</value>
</member>
<member>
<name>company_name</name>
<value>
<string>${theCompanyName}</string>
</value>
</member>
</struct>
</value>
</member>
<member>
<name>address</name>
<value>
<struct>
<member>
<name>street_name</name>
<value>
<string>${theStreetName}</string>
</value>
</member>
<member>
<name>house_num</name>
<value>
<string>${theHouseNumber}</string>
</value>
</member>
<member>
<name>address2</name>
<value>
<string>${theSecondAddress}</string>
</value>
</member>
<member>
<name>zipcode</name>
<value>
<string>${thePostalCode}</string>
</value>
</member>
<member>
<name>city</name>
<value>
<string>${theCityName}</string>
</value>
</member>
<member>
<name>country</name>
<value>
<string>${theCountryCode}</string>
</value>
</member>
<member>
<name>state</name>
<value>
<string>${theStateOrProvinceName}</string>
</value>
</member>
</struct>
</value>
</member>
<member>
<name>phone</name>
<value>
<struct>
<member>
<name>country_code</name>
<value>
<string>${theCountryCode}</string>
</value>
</member>
<member>
<name>area_code</name>
<value>
<string>${theAreaCode}</string>
</value>
</member>
<member>
<name>phone_num</name>
<value>
<string>${thePhoneNumber}</string>
</value>
</member>
<member>
<name>ext_num</name>
<value>
<string>${theExtensionNumber}</string>
</value>
</member>
</struct>
</value>
</member>
<member>
<name>fax</name>
<value>
<struct>
<member>
<name>country_code</name>
<value>
<string>${theCountryCode}</string>
</value>
</member>
<member>
<name>area_code</name>
<value>
<string>${theAreaCode}</string>
</value>
</member>
<member>
<name>phone_num</name>
<value>
<string>${theFaxNumber}</string>
</value>
</member>
<member>
<name>ext_num</name>
<value>
<string>${theExtensionNumber}</string>
</value>
</member>
</struct>
</value>
</member>
<member>
<name>email</name>
<value>
<string>${theEmailAddress}</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>