Get the contact fields
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/settings/system/contactfields
Description
Gets the contact fields
Example
Request
1use Ticketmatic\Endpoints\Settings\System\Contactfields;
2
3$result = Contactfields::getlist($client);
Response
1object(Ticketmatic\Endpoints\Settings\System\ContactfieldsList) (1) {
2 ["data"]=>
3 array(1) {
4 [0]=>
5 object(\Ticketmatic\Model\ContactField) (3) {
6 ["id"]=>
7 int(0)
8 ["name"]=>
9 string(9) "firstname"
10 ["caption"]=>
11 string(10) "First name"
12 }
13 }
14}
Request
1import (
2 "github.com/ticketmatic/tm-go/ticketmatic"
3 "github.com/ticketmatic/tm-go/ticketmatic/settings/system/contactfields"
4)
5
6result, err := contactfields.Getlist(client)
Response
1result := contactfields.&List{
2 Data: []*ticketmatic.ContactField{
3 &ticketmatic.ContactField{
4 Id: 1,
5 Name: "firstname",
6 Caption: "First name",
7 },
8 },
9}
Request
1GET /api/1/{accountname}/settings/system/contactfields HTTP/1.1
Response
1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5 "data": [
6 {
7 "id": 1,
8 "name": "firstname",
9 "caption": "First name"
10 }
11 ]
12}
Result fields
This call returns an object with an array of objects in the data
field.
Field | Description |
---|---|
id int | Id of this ContactField Example value:1 |
name string | Name of this contactfield Example value:"firstname" |
caption string | Caption of this contactfield Example value:"First name" |
Type reference: ContactField[]