Read Account Geo Restrictions
GEThttps://api.millicast.com/api/geo/account
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Please refer to Get Account Security Settings
Gets account wide geo restrictions. If a Token (either Publish or Subscribe) does not define any geo restrictions, the account wide rules are used.
Responses
- 200
- 400
- default
Success
- application/json
- Schema
- Example (auto)
- allowed
- denied
Schema
statusstringrequired
Possible values: non-empty
Default value:
success
data objectrequired
{
"status": "success",
"data": {
"allowedCountries": [
"string"
],
"deniedCountries": [
"string"
]
}
}
allowed
{
"status": "success",
"data": {
"allowedCountries": [
"US"
],
"deniedCountries": []
}
}
denied
{
"status": "success",
"data": {
"allowedCountries": [],
"deniedCountries": [
"UK"
]
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusstringrequired
Possible values: non-empty
Default value:
fail
datarequired
{
"status": "fail",
"data": {}
}
Server Error
- application/json
- Schema
- Example (auto)
- general
Schema
statusstringrequired
Possible values: non-empty
Default value:
error
messagestringrequired
Possible values: non-empty
codeint32nullable
datanullable
{
"status": "error",
"message": "string",
"code": 0
}
general
{
"status": "error",
"message": "simple error reason",
"code": 500,
"data": {
"additional": "other data here (not actual key)"
}
}
Authorization: http
name: API_Secrettype: httpdescription: ### Usage #### Acquire secret from dashboard. * Login to the streaming dashboard * On the left menu, click on Settings * Navigate to the Security tab's sub section API Secrets 1. "+ Create" to generate a new named API Secret if needed 2. Click on the copy button or the reveal button to access a previously created API Secret scheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.millicast.com/api/geo/account");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());