User Permission
Description
A Permission/Consent represents a consent given by the user to the system, eg.: Get Push or Email notifications.
Persmissions are linked to Users through the User ID (user_permission.id_user => user.id).
GET User Permission
Endpoint returning system user's permissions list
Endpoint
GET https://{systemURL}/api/user_permissionQUERY Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
date_init |
last_update Date from | Unix Timestamp (seconds) | yes | - |
date_end |
last_update Date to | Unix Timestamp (seconds) | yes | - |
count_elements |
Number of elements per response | int (max = 200) | no | 10 |
page |
Response Page # (0-based) | int | no | 0 |
order |
Response order | ASC, DESC by last_update |
no | DESC |
NOTE:
- The max timeframe period is 3 years.
- Both
date_initanddate_endare required. If missing, the API will return a 400 error. - Dates should be provided as Unix timestamps in seconds.
RESPONSE Schema
| Key | Type | Description |
|---|---|---|
count |
Integer | Total Number of Items |
page |
Integer | Defined by QUERY parameter page or "" |
items |
Array | Array of User Objects |
Fields
Items
| Key | Type | Description |
|---|---|---|
id_user |
String | Unique identifier for the user. |
id_consent_basic |
Integer | Unique identifier for the consent type. |
last_update |
DateTime | Timestamp of the last update to the consent record. |
decision |
Boolean | Indicates whether the user has given consent (true) or not (false). |
name |
String | Name of the consent category. |
consent_description |
String | Description of what the consent entails |
Authentication
All requests require Basic Authentication. The Authorization header must be formatted as:
Authorization: Basic {your_access_token}Note: If the Authorization header is missing or incorrectly formatted, the API will return a 401 error.
Example
- System: AE Handball
- System URL: aehandball.woow.no
Request
GET https://aehandball.woow.no/api/user_permission?date_init=1761611408&date_end=1775431808
Authorization: Basic your_access_token
Content-Type: application/jsonCURL
curl -X GET "https://aehandball.woow.no/api/user_permission?date_init=1761611408&date_end=1775431808" \
-H "Authorization: Basic your_access_token"Error Responses
| Status Code | Description |
|---|---|
400 |
Bad Request - Missing required date parameters or date range exceeds 3 years |
401 |
Unauthorized - Missing or invalid Authorization header |
500 |
Internal Server Error - System error occurred |
Tri it here
Ticketing API User Permision Endpoint
Response
200 OK
{
"count": "488",
"page": "",
"items": [
{
"id_user": "1636223",
"id_consent_basic": 4,
"last_update": "2024-08-26T13:57:26.459Z",
"decision": true,
"name": "receive tickets info",
"consent_description": "Jeg godtar at informasjon om kamper jeg allerede har billett til kan sendes meg som push- eller SMS-meldinger. Dette er gratis for meg."
},
{
"id_user": "1636223",
"id_consent_basic": 6,
"last_update": "2024-08-26T13:57:26.459Z",
"decision": true,
"name": "receive general club info email",
"consent_description": "Jeg ønsker å motta generell informasjon og nyheter fra klubben via nyhetsmail eller pushmeldinger. Dette er gratis for meg."
},
{
"id_user": "1636223",
"id_consent_basic": 7,
"last_update": "2024-08-26T13:57:26.459Z",
"decision": true,
"name": "receive club partner offers",
"consent_description": "Jeg ønsker å motta meldinger fra klubben med gode tilbud og informasjon på vegne av våre viktige og gode samarbeidspartnere, som mail eller push-meldinger. Klubben deler uansett ikke personlige data med andre. Disse meldingene er gratis for meg."
},
{
"id_user": "1636223",
"id_consent_basic": 5,
"last_update": "2024-08-26T13:57:26.459Z",
"decision": true,
"name": "receive general club info",
"consent_description": "Jeg ønsker å motta informasjon fra klubben om når billetter til kamper og arrangementer legges ut for salg, og informasjon rundt tilgang på billetter som push- eller SMS-meldinger. Dette er gratis for meg."
},
{
"id_user": "1633371",
"id_consent_basic": 4,
"last_update": "2024-08-22T09:12:09.030Z",
"decision": true,
"name": "receive tickets info",
"consent_description": "Jeg godtar at informasjon om kamper jeg allerede har billett til kan sendes meg som push- eller SMS-meldinger. Dette er gratis for meg."
},
{
"id_user": "1633371",
"id_consent_basic": 6,
"last_update": "2024-08-22T09:12:09.030Z",
"decision": false,
"name": "receive general club info email",
"consent_description": "Jeg ønsker å motta generell informasjon og nyheter fra klubben via nyhetsmail eller pushmeldinger. Dette er gratis for meg."
},
{
"id_user": "1633371",
"id_consent_basic": 7,
"last_update": "2024-08-22T09:12:09.030Z",
"decision": false,
"name": "receive club partner offers",
"consent_description": "Jeg ønsker å motta meldinger fra klubben med gode tilbud og informasjon på vegne av våre viktige og gode samarbeidspartnere, som mail eller push-meldinger. Klubben deler uansett ikke personlige data med andre. Disse meldingene er gratis for meg."
},
{
"id_user": "1633371",
"id_consent_basic": 5,
"last_update": "2024-08-22T09:12:09.030Z",
"decision": false,
"name": "receive general club info",
"consent_description": "Jeg ønsker å motta informasjon fra klubben om når billetter til kamper og arrangementer legges ut for salg, og informasjon rundt tilgang på billetter som push- eller SMS-meldinger. Dette er gratis for meg."
},
{
"id_user": "1591528",
"id_consent_basic": 4,
"last_update": "2024-07-16T12:46:28.336Z",
"decision": true,
"name": "receive tickets info",
"consent_description": "Jeg godtar at informasjon om kamper jeg allerede har billett til kan sendes meg som push- eller SMS-meldinger. Dette er gratis for meg."
},
{
"id_user": "1591528",
"id_consent_basic": 6,
"last_update": "2024-07-16T12:46:28.336Z",
"decision": true,
"name": "receive general club info email",
"consent_description": "Jeg ønsker å motta generell informasjon og nyheter fra klubben via nyhetsmail eller pushmeldinger. Dette er gratis for meg."
}
]
}
CROWDMANAGER