The AccountSignUp method allows you to create an account with the same result as when a user signs up using the built-in sign-up app. This may be used in conjunction with the ability to use a custom sign-up page.
System.Xml.XmlNode AccountSignup(string APIAccountSignupPassword, string firstName, string lastName, string company, string email, string phone, string jobTitle, string companySize, string howDidYouHear, string country, string partnerId, string password, bool checkForExistingUsers, byte type)
Send Params |
Return Params |
---|---|
•apiaccountsignuppassword - Supplementary protection password set on a system level. •checkforexistingusers - If true will return an error if a user with same email address exists •company - Account owner's company •companysize - Account owner's company size •country - Account owner's country •email - Account owner's e-mail •firstname - Account owner's first name •howdidyouhear - How the account owner heard about us •jobtitle - Account owner's job title •lastname - Account owner's last name •partnerID - Account owner's ID •password - Account owner's password •phone - Account owner's phone •type - obsolete |
userID - User ID for the newly created user. |
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /api/API.asmx HTTP/1.1 Host: app.perfectforms.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.PerfectApps.com/API/AccountSignup"
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AccountSignup xmlns="http://www.PerfectApps.com/API"> <APIAccountSignupPassword>string</APIAccountSignupPassword> <firstName>string</firstName> <lastName>string</lastName> <company>string</company> <email>string</email> <phone>string</phone> <jobTitle>string</jobTitle> <companySize>string</companySize> <howDidYouHear>string</howDidYouHear> <country>string</country> <partnerId>string</partnerId> <password>string</password> <checkForExistingUsers>boolean</checkForExistingUsers> <type>unsignedByte</type> </AccountSignup> </soap:Body> </soap:Envelope> |
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AccountSignupResponse xmlns="http://www.PerfectApps.com/API"> <AccountSignupResult>xml</AccountSignupResult> </AccountSignupResponse> </soap:Body> </soap:Envelope> |
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /api/API.asmx HTTP/1.1 Host: app.perfectforms.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AccountSignup xmlns="http://www.perfectApps.com/API"> <APIAccountSignupPassword>string</APIAccountSignupPassword> <firstName>string</firstName> <lastName>string</lastName> <company>string</company> <email>string</email> <phone>string</phone> <jobTitle>string</jobTitle> <companySize>string</companySize> <howDidYouHear>string</howDidYouHear> <country>string</country> <partnerId>string</partnerId> <password>string</password> <checkForExistingUsers>boolean</checkForExistingUsers> <type>unsignedByte</type> </AccountSignup> </soap12:Body> </soap12:Envelope> |
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length
<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <AccountSignupResponse xmlns="http://www.PerfectApps.com/API"> <AccountSignupResult>xml</AccountSignupResult> </AccountSignupResponse> </soap12:Body> </soap12:Envelope> |
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /services/api.asmx/AccountSignup?APIAccountSignupPassword=string&firstName=string&lastName=string&company=string&email=string&phone=string&jobTitle=string&companySize=string&howDidYouHear=string&country=string&partnerId=string&password=string&checkForExistingUsers=string HTTP/1.1 Host: app.perfectforms.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length
<?xml version="1.0"?> xml |
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values..
POST /services/api.asmx/AccountSignup HTTP/1.1 Host: app.perfectforms.com Content-Type: application/x-www-form-urlencoded Content-Length: length
APIAccountSignupPassword=string&firstName=string&lastName=string&company=string&email=string&phone=string&jobTitle=string&companySize=string&howDidYouHear=string&country=string&partnerId=string&password=string&checkForExistingUsers=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length
<?xml version="1.0"?> xml |
Return to: Account API Methods (SOAP), Integration