10. Dezember 2020

· Whitepaper

CreateEvent

Inhaltsverzeichnis

xx Kapitel

Erstellen eines Events

Die Methode CreateEvent ermöglicht es, ein Event mit Basisinformationen in der eworx Marketing Suite zu erstellen.

Request Properties

Event
Das Event das erstellt werden soll.
Typ der Eigenschaft: Event

Beispiel Request „Event erstellen“

Der folgende Request erstellt eine Veranstaltung und setzt die Basisinformationen.

JSON

//https://sys.mailworx.info/Services/JSON/ServiceAgent.svc/CreateEvent
{
  "request": {
    "Language": "DE",
    "SecurityContext": {
      "Account": "account",
      "Username": "username",
      "Password": "*****",
      "Source": "application name"
    },
    "Event": {
      "Name": "Veranstaltung",
      "Begin": "\/Date(1536407252781)\/",
      "End": "\/Date(1536507252781)\/",
      "Location": "Rohrbach",
      "Description": "Veranstaltung, erstellt über API",
      "Languages": ["DE","EN"],
      "NotificationAddress": "service@mailworx.info",
      "Creator": "Veranstaltungsersteller",
      "State": 1,
    }
  }
}

XML

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
xmlns:ser="http://www.mailworx.at/interfaces/serviceagent/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Header/>
  <soap:Body>
    <ser:CreateEvent>
      <ser:request>
        <ser:Language>DE</ser:Language>
        <ser:SecurityContext>
          <ser:Account>account</ser:Account>
          <ser:Username>username</ser:Username>
          <ser:Password>*****</ser:Password>
          <ser:Source>application name</ser:Source>
        </ser:SecurityContext>
        <ser:Event>
          <ser:Name>Veranstaltung</ser:Name>
          <ser:Begin>2018-05-25T09:00:00</ser:Begin>
          <ser:End>2018-05-26T18:00:00</ser:End>
          <ser:Location>Rohrbach</ser:Location>
          <ser:Description>Veranstaltung, erstellt über API</ser:Description>
          <ser:Languages>
            <ser:string>DE</ser:string>
            <ser:string>EN</ser:string>
          </ser:Languages>
          <ser:NotificationAddress>service@mailworx.info</ser:NotificationAddress>
          <ser:NotificationLanguage>German</ser:NotificationLanguage>
          <ser:State>InExecution</ser:State>
          <ser:Creator>VeranstaltungsAdministrator</ser:Creator>
        </ser:Event>
      </ser:request>
    </ser:CreateEvent>
  </soap:Body>
</soap:Envelope>

Response Objekt

Guid
Die ID des Events das gerade erstellt wurde.
Typ der Eigenschaft: UNIQUEIDENTIFIER