Get a list of web sales skins

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/settings/communicationanddesign/webskins

Example

Request

1use Ticketmatic\Endpoints\Settings\Communicationanddesign\Webskins;
2
3$result = Webskins::getlist($client, array(
4    "filter" => "SELECT id FROM tm.webskin WHERE createdts > (now() - INTERVAL '1 year')",
5    "lastupdatesince" => "2014-09-26 15:24:36",
6));
7
8// The parameters array is optional, it can be omitted when empty.
9$result = Webskins::getlist($client);

Response

 1object(Ticketmatic\Endpoints\Settings\Communicationanddesign\WebskinsList) (1) {
 2  ["data"]=>
 3  array(1) {
 4    [0]=>
 5    object(\Ticketmatic\Model\WebSalesSkin) (4) {
 6      ["id"]=>
 7      int(0)
 8      ["name"]=>
 9      string(13) "Website theme"
10      ["createdts"]=>
11      object(\DateTime) (3) {
12        ["date"]=>
13        string(26) "2014-09-26 15:24:36.000000"
14        ["timezone_type"]=>
15        int(3)
16        ["timezone"]=>
17        string(3) "UTC"
18      }
19      ["lastupdatets"]=>
20      object(\DateTime) (3) {
21        ["date"]=>
22        string(26) "2014-09-26 15:24:36.000000"
23        ["timezone_type"]=>
24        int(3)
25        ["timezone"]=>
26        string(3) "UTC"
27      }
28    }
29  }
30}

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/settings/communicationanddesign/webskins"
 4)
 5
 6result, err := webskins.Getlist(client, &ticketmatic.WebSalesSkinQuery{
 7    Filter: "SELECT id FROM tm.webskin WHERE createdts > (now() - INTERVAL '1 year')",
 8    Lastupdatesince: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 9})
10
11// The query object is optional, it can be omitted when empty.
12result, err := webskins.Getlist(client, nil)

Response

 1result := webskins.&List{
 2    Data: []*ticketmatic.WebSalesSkin{
 3        &ticketmatic.WebSalesSkin{
 4            Id: 123,
 5            Name: "Website theme",
 6            Createdts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 7            Lastupdatets: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 8        },
 9    },
10}

Request

1GET /api/1/{accountname}/settings/communicationanddesign/webskins HTTP/1.1

Response

 1HTTP/1.1 200 OK
 2Content-Type: application/json
 3
 4{
 5    "data": [
 6        {
 7            "id": 123,
 8            "name": "Website theme",
 9            "createdts": "2014-09-26 15:24:36",
10            "lastupdatets": "2014-09-26 15:24:36"
11        }
12    ]
13}

Parameters

FieldDescription
filter
string

Filter the returned items by specifying a query on the public datamodel that returns the ids.

Example value:"SELECT id FROM tm.webskin WHERE createdts > (now() - INTERVAL '1 year')"
lastupdatesince
timestamp

All items that were updated since this timestamp will be returned. Timestamp should be passed in YYYY-MM-DD hh:mm:ss format.

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

Type reference: WebSalesSkinQuery

Result fields

This call returns an object with an array of objects in the data field.

FieldDescription
id
int

Unique ID

Example value:123
name
string

Name of the web sales skin

Example value:"Website theme"
createdts
timestamp

Created timestamp

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

Last updated timestamp

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

Type reference: WebSalesSkin[]