Get a single contact address type
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/settings/system/contactaddresstypes/{id}
Example
Request
1use Ticketmatic\Endpoints\Settings\System\Contactaddresstypes;
2
3$result = Contactaddresstypes::get($client, $id);
Response
1object(\Ticketmatic\Model\ContactAddressType) (5) {
2 ["id"]=>
3 int(0)
4 ["name"]=>
5 string(4) "Home"
6 ["isarchived"]=>
7 bool(false)
8 ["createdts"]=>
9 object(\DateTime) (3) {
10 ["date"]=>
11 string(26) "2014-09-26 15:24:36.000000"
12 ["timezone_type"]=>
13 int(3)
14 ["timezone"]=>
15 string(3) "UTC"
16 }
17 ["lastupdatets"]=>
18 object(\DateTime) (3) {
19 ["date"]=>
20 string(26) "2014-09-26 15:24:36.000000"
21 ["timezone_type"]=>
22 int(3)
23 ["timezone"]=>
24 string(3) "UTC"
25 }
26}
Request
1import (
2 "github.com/ticketmatic/tm-go/ticketmatic"
3 "github.com/ticketmatic/tm-go/ticketmatic/settings/system/contactaddresstypes"
4)
5
6result, err := contactaddresstypes.Get(client, id)
Response
1result := &ticketmatic.ContactAddressType{
2 Id: 123,
3 Name: "Home",
4 Isarchived: false,
5 Createdts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
6 Lastupdatets: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
7}
Request
1GET /api/1/{accountname}/settings/system/contactaddresstypes/{id} HTTP/1.1
Response
1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5 "id": 123,
6 "name": "Home",
7 "isarchived": false,
8 "createdts": "2014-09-26 15:24:36",
9 "lastupdatets": "2014-09-26 15:24:36"
10}
Result fields
Field | Description |
---|---|
id int | Unique ID Example value:123 |
name | Name of the address type Example value:"Home" |
isarchived bool | Whether or not this item is archived |
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: ContactAddressType