| POST | /registerpaiduser |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class RegisterPaidUser
{
var guid:UUID? = null
var period:Int? = null
var reference:String? = null
var plan:Int? = null
var responseStatus:ResponseStatus? = null
}
open class UserAuth
{
var id:Int? = null
var userName:String? = null
var email:String? = null
var primaryEmail:String? = null
var phoneNumber:String? = null
var firstName:String? = null
var lastName:String? = null
var displayName:String? = null
var company:String? = null
var birthDate:Date? = null
var birthDateRaw:String? = null
var address:String? = null
var address2:String? = null
var city:String? = null
var state:String? = null
var country:String? = null
var culture:String? = null
var fullName:String? = null
var gender:String? = null
var language:String? = null
var mailAddress:String? = null
var nickname:String? = null
var postalCode:String? = null
var timeZone:String? = null
var salt:String? = null
var passwordHash:String? = null
var digestHa1Hash:String? = null
var roles:ArrayList<String> = ArrayList<String>()
var permissions:ArrayList<String> = ArrayList<String>()
var createdDate:Date? = null
var modifiedDate:Date? = null
var invalidLoginAttempts:Int? = null
var lastLoginAttempt:Date? = null
var lockedDate:Date? = null
var recoveryToken:String? = null
var refId:Int? = null
var refIdStr:String? = null
var meta:HashMap<String,String> = HashMap<String,String>()
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /registerpaiduser HTTP/1.1
Host: api.sfgtec.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RegisterPaidUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel">
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Period>0</Period>
<Plan>0</Plan>
<Reference>String</Reference>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</RegisterPaidUser>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UserAuth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Address>String</Address>
<Address2>String</Address2>
<BirthDate>0001-01-01T00:00:00</BirthDate>
<BirthDateRaw>String</BirthDateRaw>
<City>String</City>
<Company>String</Company>
<Country>String</Country>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<Culture>String</Culture>
<DigestHa1Hash>String</DigestHa1Hash>
<DisplayName>String</DisplayName>
<Email>String</Email>
<FirstName>String</FirstName>
<FullName>String</FullName>
<Gender>String</Gender>
<Id>0</Id>
<InvalidLoginAttempts>0</InvalidLoginAttempts>
<Language>String</Language>
<LastLoginAttempt>0001-01-01T00:00:00</LastLoginAttempt>
<LastName>String</LastName>
<LockedDate>0001-01-01T00:00:00</LockedDate>
<MailAddress>String</MailAddress>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
<Nickname>String</Nickname>
<PasswordHash>String</PasswordHash>
<Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Permissions>
<PhoneNumber>String</PhoneNumber>
<PostalCode>String</PostalCode>
<PrimaryEmail>String</PrimaryEmail>
<RecoveryToken>String</RecoveryToken>
<RefId>0</RefId>
<RefIdStr>String</RefIdStr>
<Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Roles>
<Salt>String</Salt>
<State>String</State>
<TimeZone>String</TimeZone>
<UserName>String</UserName>
</UserAuth>