Get authorized accounts

Content

Resource URL

https://apps.ticketmatic.com/api/1/_/tools/accounts

Description

Gets an overview of all authorized accounts for this API key.

Note: This API method is not specific to an account. You should make a separate API client and use an empty string ("") as the account shortname.

Example

Request

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

Request

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

Request

1GET /api/1/_/tools/accounts HTTP/1.1

Result fields

This call returns an array of objects.

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[]