Get the contact field

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/settings/system/contactfields/{id}

Description

Gets the contact field

Example

Request

1use Ticketmatic\Endpoints\Settings\System\Contactfields;
2
3$result = Contactfields::get($client, $id);

Response

1object(\Ticketmatic\Model\ContactField) (3) {
2  ["id"]=>
3  int(0)
4  ["name"]=>
5  string(9) "firstname"
6  ["caption"]=>
7  string(10) "First name"
8}
9

Request

1import (
2    "github.com/ticketmatic/tm-go/ticketmatic"
3    "github.com/ticketmatic/tm-go/ticketmatic/settings/system/contactfields"
4)
5
6result, err := contactfields.Get(client, id)

Response

1result := &ticketmatic.ContactField{
2    Id: 1,
3    Name: "firstname",
4    Caption: "First name",
5}

Request

1GET /api/1/{accountname}/settings/system/contactfields/{id} HTTP/1.1

Response

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5    "id": 1,
6    "name": "firstname",
7    "caption": "First name"
8}

Result fields

FieldDescription
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