| All Verbs | /CreateRemMessage/{ClientKey} |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class CreateRemMessage
{
var ClientKey:String? = null
var AuthorizationID:String? = null
var RemAddressId:Long? = null
var RemAttributesValues:RemAttributes? = null
}
open class RemAttributes
{
var SubscriberId:Long? = null
var Owner:String? = null
var FromAddress:String? = null
var ToAddresses:String? = null
var CcAddresses:String? = null
var Subject:String? = null
var BodyType:String? = null
var Body:String? = null
var AutoSignerYn:Boolean? = null
var TrMessageType:String? = null
}
open class CreateRemMessageResponse : BaseResponse()
{
var RemID:Long? = null
}
open class BaseResponse
{
var Result:Boolean? = null
var ErrorCode:Int? = null
var ErrorMessage:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /CreateRemMessage/{ClientKey} HTTP/1.1
Host: remservices.eyyubiye.bel.tr
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ClientKey: String,
AuthorizationID: String,
RemAddressId: 0,
RemAttributesValues:
{
SubscriberId: 0,
Owner: String,
FromAddress: String,
ToAddresses: String,
CcAddresses: String,
Subject: String,
BodyType: String,
Body: String,
AutoSignerYn: False,
TrMessageType: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
RemID: 0,
Result: False,
ErrorCode: 0,
ErrorMessage: String
}