User.register
From MeeMixWiki
Contents |
Overview
Register a user from a partner in the MeeMix database using your assigned partner ID and a unique (in your namespace) user ID.
Request
Parameters:
| Required | Name | Type | Description |
|---|---|---|---|
| required | partnerId | string | your assigned partner ID. |
| required | partnerKey | string | your assigned 32-character partner key. |
| required | userId | string | unique user ID (up to 35 characters). |
| optional | countryCode | string | the user's country code (ISO 3166). For a full list, see the Country Codes page. |
| optional | birthDate | date | the user's date of birth in yyyy-mm-dd format. |
| optional | Gender | string | the user's gender (Male/Female). |
REST request example:
http://ws.shadow.meemix.com:8080/mxws/services/mxws/user.register?partnerId=1001&partnerKey=...&countryCode=IL&birthDate=1973-02-18&userId=John
SOAP request example:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://ws.meemix.com:8080/mxws/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema instance"> <soapenv:Body> <q0:userRegisterRequest> <partnerId>1001</partnerId> <partnerKey>...</partnerKey> <userId>rob</userId> <birthDate>1981-03-10</birthDate> <countryCode>US</countryCode> <gender>Male</gender> </q0:userRegisterRequest> </soapenv:Body> </soapenv:Envelope>
Response
SOAP response example:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <userRegisterResponse xmlns:ns1="http://ws.meemix.com:8080/mxws/"> <success>true</success> </userRegisterResponse> </soapenv:Body> </soapenv:Envelope>
Faults
| Code | Description |
|---|---|
| 1 | Invalid partner ID |
| 2 | Invalid partner key |
| 4 | User ID already exists |
| 15 | Internal Server Error |
For a full faults list and example of soapFault please visit the Faults page.
