EMUN1 ASP.NET

<back to all web services

AddListMember

Requires Authentication
The following routes are available for this service:
All Verbs/service/AddListMember
Member Parameters:
NameParameterData TypeRequiredDescription
EmailAddressformstringNo
EmailClientformstringNo
EmailTypeformstringNo
IdformstringNo
InterestsformDictionary<string, bool>No
IpOptformstringNo
IpSignupformstringNo
LanguageformstringNo
LastChangedformstringNo
LinksformIEnumerable<Link>No
ListIdformstringNo
LocationformLocationNo
MemberRatingformintNo
MergeFieldsformDictionary<string, Object>No
LastNoteformMemberLastNoteNo
StatsformMemberStatsNo
StatusformStatusNo
StatusIfNewformStatusNo
UnsubscribeReasonformstringNo
TimestampOptformstringNo
TimestampSignupformstringNo
UniqueEmailIdformstringNo
VipformboolNo
Link Parameters:
NameParameterData TypeRequiredDescription
HrefformstringNo
MethodformMethodNo
RelformstringNo
SchemaformstringNo
TargetSchemaformstringNo
Location Parameters:
NameParameterData TypeRequiredDescription
CountryCodeformstringNo
DstoffformintNo
GmtoffformintNo
LatitudeformdecimalNo
LongitudeformdecimalNo
TimezoneformstringNo
MemberLastNote Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
BodyformstringNo
CreatedAtformDateTime?No
CreatedByformstringNo
MemberStats Parameters:
NameParameterData TypeRequiredDescription
AverageOpenRateformdoubleNo
AverageClickRateformdoubleNo

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.

POST /service/AddListMember HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AddListMember xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mailchimp">
  <EmailAddress xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</EmailAddress>
  <EmailClient xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</EmailClient>
  <EmailType xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</EmailType>
  <Id xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</Id>
  <Interests xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>false</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </Interests>
  <IpOpt xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</IpOpt>
  <IpSignup xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</IpSignup>
  <Language xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</Language>
  <LastChanged xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</LastChanged>
  <LastNote xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
    <Body>String</Body>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CreatedBy>String</CreatedBy>
    <Id>0</Id>
  </LastNote>
  <Links i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models" />
  <ListId xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</ListId>
  <Location xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
    <CountryCode>String</CountryCode>
    <Dstoff>0</Dstoff>
    <Gmtoff>0</Gmtoff>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
    <Timezone>String</Timezone>
  </Location>
  <MemberRating xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">0</MemberRating>
  <MergeFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </MergeFields>
  <Stats xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
    <AverageClickRate>0</AverageClickRate>
    <AverageOpenRate>0</AverageOpenRate>
  </Stats>
  <Status xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">Subscribed</Status>
  <StatusIfNew xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">Subscribed</StatusIfNew>
  <TimestampOpt xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</TimestampOpt>
  <TimestampSignup xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</TimestampSignup>
  <UniqueEmailId xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</UniqueEmailId>
  <UnsubscribeReason xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">String</UnsubscribeReason>
  <Vip xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">false</Vip>
</AddListMember>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Member xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MailChimp.Net.Models">
  <EmailAddress>String</EmailAddress>
  <EmailClient>String</EmailClient>
  <EmailType>String</EmailType>
  <Id>String</Id>
  <Interests xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>false</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </Interests>
  <IpOpt>String</IpOpt>
  <IpSignup>String</IpSignup>
  <Language>String</Language>
  <LastChanged>String</LastChanged>
  <LastNote>
    <Body>String</Body>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CreatedBy>String</CreatedBy>
    <Id>0</Id>
  </LastNote>
  <Links i:nil="true" />
  <ListId>String</ListId>
  <Location>
    <CountryCode>String</CountryCode>
    <Dstoff>0</Dstoff>
    <Gmtoff>0</Gmtoff>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
    <Timezone>String</Timezone>
  </Location>
  <MemberRating>0</MemberRating>
  <MergeFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </MergeFields>
  <Stats>
    <AverageClickRate>0</AverageClickRate>
    <AverageOpenRate>0</AverageOpenRate>
  </Stats>
  <Status>Subscribed</Status>
  <StatusIfNew>Subscribed</StatusIfNew>
  <TimestampOpt>String</TimestampOpt>
  <TimestampSignup>String</TimestampSignup>
  <UniqueEmailId>String</UniqueEmailId>
  <UnsubscribeReason>String</UnsubscribeReason>
  <Vip>false</Vip>
</Member>