Get account information

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/tools/account

Description

Get information of the current account, can be used to retrieve account details such as the account ID and the full name.

Example

Request

1use Ticketmatic\Endpoints\Tools;
2
3$result = Tools::account($client);

Response

 1object(\Ticketmatic\Model\AccountInfo) (9) {
 2  ["id"]=>
 3  int(0)
 4  ["name"]=>
 5  string(18) "Royal Concert Hall"
 6  ["address"]=>
 7  string(25) "Eikendreef 200, 9000 Gent"
 8  ["image"]=>
 9  string(19) "https://myimage.jpg"
10  ["lat"]=>
11  float(50.746464)
12  ["logo"]=>
13  string(18) "https://mylogo.jpg"
14  ["long"]=>
15  float(15.934745)
16  ["shortname"]=>
17  string(3) "rch"
18  ["url"]=>
19  string(20) "http://mywebsite.com"
20}

Request

1import (
2    "github.com/ticketmatic/tm-go/ticketmatic"
3    "github.com/ticketmatic/tm-go/ticketmatic/tools"
4)
5
6result, err := tools.Account(client)

Response

 1result := &ticketmatic.AccountInfo{
 2    Id: 14853,
 3    Name: "Royal Concert Hall",
 4    Address: "Eikendreef 200, 9000 Gent",
 5    Image: "https://myimage.jpg",
 6    Lat: 50.746464,
 7    Logo: "https://mylogo.jpg",
 8    Long: 15.9347453,
 9    Shortname: "rch",
10    Url: "http://mywebsite.com",
11}

Request

1GET /api/1/{accountname}/tools/account HTTP/1.1

Response

 1HTTP/1.1 200 OK
 2Content-Type: application/json
 3
 4{
 5    "id": 14853,
 6    "name": "Royal Concert Hall",
 7    "address": "Eikendreef 200, 9000 Gent",
 8    "image": "https://myimage.jpg",
 9    "lat": 50.746464,
10    "logo": "https://mylogo.jpg",
11    "long": 15.934745,
12    "shortname": "rch",
13    "url": "http://mywebsite.com"
14}

Result fields

FieldDescription
id
int

Account ID

Example value:14853
name
string

Account Name

Example value:"Royal Concert Hall"
address
string

Account address

Example value:"Eikendreef 200, 9000 Gent"
image
string

Link to the account image

Example value:"https://myimage.jpg"
lat
decimal

Latitude

Example value:50.746464
logo
string

Link to the account logo

Example value:"https://mylogo.jpg"
long
decimal

Longitude

Example value:15.934745
shortname
string

Account short name

Example value:"rch"
url
string

Account website

Example value:"http://mywebsite.com"

Type reference: AccountInfo