Description

This endpoint is used for getting player config data related to player setup

This endpoint must be consumed in GET request


Security

This endpoint is secured, you must send a Bearer Token, to be able to invoke the endpoint, for getting the token, you should invoke first the /oauth/token service of the security microservice, if you don't know what service is, please talk with your sysadmin for further information


Request

As part of the request a Bearer Token must be sended, (if you don't send a valid token a 401 error will be retrieved), look the next example in Postman to better understanding

Image Placeholder


This must be sended in the Http headers of the request, look at the next curl example for a better understanding
Copy codecurl --location 'host:port/zynchro.api.player-config/v1/player-setup/player-config?client_id=38&transaction_id=123456' \
--header 'Authorization: Bearer *********'


In java it would be something like this (depending on the dependency you use)

Copy codeOkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url("{{host}}:{{}port}/zynchro.api.player-config/v1/player-setup/player-config?client_id=38&transaction_id=123456")
  .method("GET", body)
  .addHeader("Authorization", "Bearer ••••••")
  .build();
Response response = client.newCall(request).execute();


Next are listed the params required in the request


Field
SubField
Type
Description
IsRequired
transaction_id

text

A custom value to identify the data related to the request in the response (you can see the transactionId in the response header).


Example:

  • REQ000001

Note: This field is not related with the data to be retrieved, must be used by the client app in order to identify the request/response (if that is useful), the same value can be sended in multiple request (it’s not validated that the same value was sended before)


N
client_id

int

The client id related to the request.


Example:

  • 38


Y


Consuming Service


Example Request

Consuming service 

(GET) URL:HOST:PORT/zynchro.api.player-config/v1/player-setup/player-config?client_id=38&transaction_id=123456

Request Params:

  • transaction_id=123456
  • client_id=38


Response


Response 200 OK

If the params present in the request are valid, then you will receive a response 200 "ok" message code look at the next example:

Copy code{
    "header": {
        "resultCode": "ok",
        "messageCode": "ok",
        "messageDescription": "request ok",
        "transactionId": "123456"
    },
    "data": [
        {
            "id": 190,
            "clientId": 38,
            "name": "No VLANs",
            "timeServer": "http://time.brightsignnetwork.com",
            "useHostName": false,
            "hostName": null,
            "useProxy": true,
            "proxyIPHostname": "http://sysproxy.wal-mart.com",
            "proxyPort": 8080,
            "primaryNetwork": 1,
            "isWiredStatic": false,
            "wiredIPAddress": null,
            "wiredSubnetMask": null,
            "wiredGateway": null,
            "wiredDNS1": null,
            "wiredDNS2": null,
            "wiredDNS3": null,
            "wiredIsActiveVLan": false,
            "isWirelessActive": false,
            "isWirelessStatic": false,
            "wirelessSSID": null,
            "wirelessSecurityKey": null,
            "wirelessIPAddress": null,
            "wirelessSubnetMask": null,
            "wirelessGateway": null,
            "wirelessDNS1": null,
            "wirelessDNS2": null,
            "wirelessDNS3": null,
            "wirelessIsActiveVLan": false,
            "wasDeleted": false,
            "wasUsed": true,
            "createdDate": "2025-11-15T23:55:24.000+00:00",
            "defaultConfig": false
        },
        {
            "id": 12,
            "clientId": 38,
            "name": "Test-Full-Network",
            "timeServer": "http://time.brightsignnetwork.com",
            "useHostName": false,
            "hostName": "192.168.1.1",
            "useProxy": true,
            "proxyIPHostname": "http://192.168.1.6",
            "proxyPort": 32,
            "primaryNetwork": 1,
            "isWiredStatic": true,
            "wiredIPAddress": "192.168.1.88",
            "wiredSubnetMask": "255.255.255.0",
            "wiredGateway": "192.168.1.254",
            "wiredDNS1": "8.8.8.8",
            "wiredDNS2": "8.8.4.4",
            "wiredDNS3": "1.1.1.1",
            "wiredIsActiveVLan": true,
            "isWirelessActive": true,
            "isWirelessStatic": true,
            "wirelessSSID": "INFINITUM3922",
            "wirelessSecurityKey": "Ca9Lg5Ec2x",
            "wirelessIPAddress": "192.168.1.90",
            "wirelessSubnetMask": "255.255.255.0",
            "wirelessGateway": "192.168.1.254",
            "wirelessDNS1": "8.8.8.8",
            "wirelessDNS2": "8.8.4.4",
            "wirelessDNS3": "2.2.2.2",
            "wirelessIsActiveVLan": false,
            "wasDeleted": false,
            "wasUsed": true,
            "createdDate": "2023-10-25T16:56:04.000+00:00",
            "defaultConfig": false
        }
    ]
}


Description of the response data

Field
SubField
Type
Description

header

 

Object

Specific data related to the response

 

resultCode

text

The result code of the response, can be:

·         error -> if errors were found

·         ok -> if NO errors were found

 

messageCode

text

The message code related to the result code of the response, can be:

Example:

 

 

messageDescription

text

The description of the message code

Example:

·         request ok

·         Please check your params fields

 

transactionId

text

The transactionId specified in the request, if no transactionId was sended in the request then the transacionId in the response will be null

errors

 

Array

 This field is present if there are errors in the request

 

fieldName

text

The field with errors

 

fieldDesc

text

 The description of the error

Data

 

Array

The specific response data related to the request


id

int

The identifier of the user


clientId

int

The client id related to the request


timeServer

text

The url of the time serve


useHostName

text

Indicates if the service must use the hostname


hostName

text

The hostname


useProxy

boolean

Indicates if the service use some proxy


proxyIPHostname

text

Indicates the ip of the proxy host


proxyPort

int

Indicates the port of the proxy port


primaryNetwork

int

Indicates the primary network


isWiredStatic

boolean

Indicates if the wired network is static


wiredIPAddress

text

Indicates the wired network ip address


wiredSubnetMask

text

Indicates the wired network subnet


wiredGateway

text

Indicates the wired network gateway


wiredDNS1

text

Indicates the primary DNS of the wired network


wiredDNS2

text

Indicates the secondary DNS of the wired network


wiredDNS3

text

Indicates the third DNS of the wired network


wiredIsActiveVLan

boolean

Indicates if the wired network is an active VLAN


isWirelessActive

boolean

Indicates it the wireless network is active


isWirelessStatic

boolean

Indicates if the wireless network is static


wirelessSSID

text

Indicates the SSID pf the wireless network


wirelessSecurityKey

text

Indicates the security key of the wireless networks


wirelessIPAddress

text

Indicates the ip address of the wireless network


wirelessSubnetMask

text

Indicates the subnet mask of the wireless network


wirelessGateway

text

Indicates the gateway of the wireless network


wirelessDNS1

text

Indicates the primary DNS of the wireless network


wirelessDNS2

text

Indicates the secondary DNS of the wireless network


wirelessDNS3

text

Indicates the third DNS of the wireless network


wirelessIsActiveVLan

text

Indicats if the wireless networks is an active VLAN


wasDeleted

boolean

Indicates if was delete


wasUsed

boolean

Indicates if was used


createdDate

text

The created date and time


defaultConfig

boolean

Indicates if is a default config



Response 400

If there are errors with the request, then you will receive a 400 message response BAD_REQUEST with the errors field present, like the following example:

Copy code{
    "header": {
        "resultCode": "error",
        "messageCode": "BAD_REQUEST",
        "messageDescription": "Please check your params fields",
        "transactionId": "123456"
    },
    "errors": [
        {
            "fieldName": "client_id",
            "fieldDesc": "Field is required, and must be of type int "
        }
    ]
}



Response 401

If you dont send any token, then you will receive a error message of "unauthorized", look at the next example:

Copy code{
    "error": "unauthorized",
    "error_description": "Full authentication is required to access this resource"
}



If you send a Token, but the Token you are sending is expired, then you will receive a response message with an "invalid_token" error, look at the next example:


Copy code{
    "error": "invalid_token",
    "error_description": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDM2MTk5NzMsInVzZXJfbmFtZSI6ImFsZWphbmRyby56YW5hYnJpYUBkaWdpd29ya3MuY29tLm14IiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9TWVNURU1BRE1JTiJdLCJqdGkiOiJHTGtQb3hQbVRTZUs2RFhmc1NfNkUxRkMxZmsiLCJjbGllbnRfaWQiOiJ6eW5jaHJvIiwic2NvcGUiOlsicmVhZCIsIndyaXRlIl19.yAFbdU18wMtQXSGUY3_noQn4BQv0RqYjDbw0sr1x6Yk"
}


This is the data retrieved when the 401 Unauthorized is retrieved:

Field
SubField
Type
Description

error

 

text

The type of the error, can be:

  • unauthorized
  • invalid_token


error_description


text

The description of the error, for the "invalid_token", this field retrieves the bearer token you're sending


Postman collection

File download: