Booklinker.API

<back to all web services

PutAccountRequest

Requires Authentication
The following routes are available for this service:
PUT/v1/account
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    @DataContract
    public static class PutAccountRequest
    {
        @DataMember(Name="emailAddress")
        @SerializedName("emailAddress")
        public String emailAddress = null;

        @DataMember(Name="fullName")
        @SerializedName("fullName")
        public String fullName = null;

        @DataMember(Name="profileImageId")
        @SerializedName("profileImageId")
        public String profileImageId = null;

        @DataMember(Name="signatureImageId")
        @SerializedName("signatureImageId")
        public String signatureImageId = null;

        @DataMember(Name="signatureFont")
        @SerializedName("signatureFont")
        public String signatureFont = null;

        @DataMember(Name="signatureAppearance")
        @SerializedName("signatureAppearance")
        public SignatureAppearance signatureAppearance = null;
        
        public String getEmailAddress() { return emailAddress; }
        public PutAccountRequest setEmailAddress(String value) { this.emailAddress = value; return this; }
        public String getFullName() { return fullName; }
        public PutAccountRequest setFullName(String value) { this.fullName = value; return this; }
        public String getProfileImageId() { return profileImageId; }
        public PutAccountRequest setProfileImageId(String value) { this.profileImageId = value; return this; }
        public String getSignatureImageId() { return signatureImageId; }
        public PutAccountRequest setSignatureImageId(String value) { this.signatureImageId = value; return this; }
        public String getSignatureFont() { return signatureFont; }
        public PutAccountRequest setSignatureFont(String value) { this.signatureFont = value; return this; }
        public SignatureAppearance getSignatureAppearance() { return signatureAppearance; }
        public PutAccountRequest setSignatureAppearance(SignatureAppearance value) { this.signatureAppearance = value; return this; }
    }

    public static enum SignatureAppearance
    {
        None,
        Text,
        Upload;
    }

    @DataContract
    public static class PutAccountResponse extends V2BaseResponse
    {
        @DataMember(Name="data")
        @SerializedName("data")
        public PutAccountResponseData data = null;
        
        public PutAccountResponseData getData() { return data; }
        public PutAccountResponse setData(PutAccountResponseData value) { this.data = value; return this; }
    }

    @DataContract
    public static class V2BaseResponse
    {
        @DataMember(Name="responseStatus")
        @SerializedName("responseStatus")
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public V2BaseResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    @DataContract
    public static class PutAccountResponseData
    {
        @DataMember(Name="oneTimeToken")
        @SerializedName("oneTimeToken")
        public String oneTimeToken = null;
        
        public String getOneTimeToken() { return oneTimeToken; }
        public PutAccountResponseData setOneTimeToken(String value) { this.oneTimeToken = value; return this; }
    }

}

Java PutAccountRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /v1/account HTTP/1.1 
Host: api.booklinker.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PutAccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booklinker.API.ServiceModel.V1.Requests">
  <newEmail>String</newEmail>
</PutAccountRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PutAccountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Booklinker.API.ServiceModel.V1.Responses">
  <ErrorCode xmlns="http://schemas.servicestack.net/types">String</ErrorCode>
  <Message xmlns="http://schemas.servicestack.net/types">String</Message>
  <StackTrace xmlns="http://schemas.servicestack.net/types">String</StackTrace>
  <Errors xmlns="http://schemas.servicestack.net/types">
    <ResponseError>
      <ErrorCode>String</ErrorCode>
      <FieldName>String</FieldName>
      <Message>String</Message>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseError>
  </Errors>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <oneTimeToken>String</oneTimeToken>
  <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>
  <success>false</success>
</PutAccountResponse>