Create a new communcation in Ticketmatic based on a list of subscriber emailaddresses

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/subscribers/communications

Example

Request

 1use Ticketmatic\Endpoints\Subscribers;
 2
 3Subscribers::communications($client, array(
 4    "name" => "Newsletter 14/03/2014",
 5    "addresses" => array(
 6        "test1@ticketmatic.com",
 7        "test2@ticketmatic.com",
 8    ),
 9    "remark" => "Newsletter remark",
10    "ts" => "2014-09-26 15:24:36",
11));

Response

This operation does not return a response. The status can be checked by looking at the HTTP status code.

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/subscribers"
 4)
 5
 6err := subscribers.Communications(client, &ticketmatic.SubscriberCommunication{
 7    Name: "Newsletter 14/03/2014",
 8    Addresses: []string{
 9        "test1@ticketmatic.com",
10        "test2@ticketmatic.com",
11    },
12    Remark: "Newsletter remark",
13    Ts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
14})

Response

This operation does not return a response. The status can be checked by looking at the HTTP status code.

Request

 1POST /api/1/{accountname}/subscribers/communications HTTP/1.1
 2Content-Type: application/json
 3
 4{
 5    "name": "Newsletter 14/03/2014",
 6    "addresses": [
 7        "test1@ticketmatic.com",
 8        "test2@ticketmatic.com"
 9    ],
10    "remark": "Newsletter remark",
11    "ts": "2014-09-26 15:24:36"
12}

Response

This operation does not return a response. The status can be checked by looking at the HTTP status code.

Request body fields

FieldDescription
name
string

Name of the communication

Example value:"Newsletter 14/03/2014"
addresses
string[]

E-mail addresses to which the communication has been sent

Example value:[ "test1@ticketmatic.com", "test2@ticketmatic.com" ]
remark
string

Optional description of the communication

Example value:"Newsletter remark"
ts
timestamp

Timestamp for the communication

Example value:"2014-09-26 15:24:36"

Type reference: SubscriberCommunication