Tillgängligt:
Hämta nyheter från krisinformation
Parameter | Type | Notes |
---|---|---|
language | string | Optional. Used for fetching news by language. Default sv |
counties | string | Optional. Used for filtering news by counties. Default is no filter |
allCounties | bool | Optional. Used for determining if an empty counties list means all counties or none. Default is false |
days | int | Optional. How many days to fetch (there is a default number of days configured in the API (7)) |
numberOfNewsArticles | int? | Optional. How many news articles to fetch (if this parameter is included, it will override the days parameter!). Default value is null. |
useCentralizedNoOfArticles | bool | Optional. If the number of news articles to fetch should be centrally controlled, or not (if this parameter is included and set to true, it will override both the "days" and "numberOfNewsArticles" parameters! If a central value has not been set it will use "numberOfNewsArticles" as a fallback, and if that is also not set, the default number is 5!). Default value is false. |
includeTest | bool | Optional. A flag indicating if you want to include the pagetype "Test" in the result or not. Default "False". |
Hämta nyheten med id = 123 från krisinformation
Parameter | Type | Notes |
---|---|---|
id | string | Required. Used for pointing out the id of the news page to get. (corresponds to 123 above) |
language | string | Optional. Used for fetching news by language. Default sv |
includeTest | bool | Optional. A flag indicating if you want to include the pagetype "Test" in the result or not. Default "False". |
Hämta VMA från krisinformation
Parameter | Type | Notes |
---|---|---|
language | string | Optional. Used for fetching VMA by language. Default sv |
counties | string | Optional. Used for filtering VMA by counties. Default is no filter |
allCounties | bool | Optional. Used for determining if an empty counties list means all counties or none. Default is false |
Hämta Test-VMA från krisinformation
Parameter | Type | Notes |
---|
Hämta redaktionella notiser (push-notiser i appen) från krisinformation
Parameter | Type | Notes |
---|---|---|
includeDraftNotifications | bool | Optional. A flag indicating if you want to include notifications which has not been published in the result or not. Default is to not include, i.e. "False". |
includeTestNotifications | bool | Optional. A flag indicating if you want to include notifications marked as "test-notification" in the result or not. Default is to not include, i.e. "False". |
Hämta "förbered dig"-sidor
Parameter | Type | Notes |
---|---|---|
language | string | Optional. Used for fetching feature pages by language. Default sv |
counties | string | Optional. Used for filtering feature pages by counties. Default is no filter |
time (Not implemented yet. Subject for discussion between parties.) | string | Provide a last fetch time to only get the feature pages that are updated. Empty returns full objects for all |
Hämta "förbered dig"-sidan med id = 123
Parameter | Type | Notes |
---|---|---|
id | string | Required. Provide an id of a feature page to get its information (corresponds to 123 above) |
language | string | Optional. Used for fetching feature pages by language. Default sv |
Hämta huvudhändelser
Parameter | Type | Notes |
---|---|---|
language | string | Optional. Used for fetching top stories by language. Default sv |
counties | string | Optional. Used for filtering top stories by counties. Default is no filter |
allCounties | bool | Optional. Used for determining if an empty counties list means all counties or none. Default is false |
time (Not implemented yet. Subject for discussion between parties.) | string | Provide a last fetch time to only get the top stories that are updated. Empty returns full objects for all |
Hämta notiser
Parameter | Type | Notes |
---|---|---|
language | string | Optional. Used for fetching notices by language. Default sv |
counties | string | Optional. Used for filtering notices by counties. Default is no filter |
allCounties | bool | Optional. Used for determining if an empty counties list means all counties or none. Default is false |
time (Not implemented yet. Subject for discussion between parties.) | string | Provide a last fetch time to only get the notices that are updated. Empty returns full objects for all |
Get a list of pushed featurepages
Parameter | Type | Notes |
---|
Get all items for push
Parameter | Type | Notes |
---|---|---|
time | string | Get all items that are published or modified after this timestamp. |
includeTestVma | bool | Optional. A flag indicating if you want to include test-VMAs from the "testvmaindex" in the result or not. Default "False". |
language | string | Optional. Used for fetching VMA by language. Default sv |