mirror of
https://github.com/jellyfin/jellyfin-sdk-swift.git
synced 2024-11-30 09:50:25 +00:00
56900dbf48
Add templates Add api.json
5.0 KiB
5.0 KiB
LocalizationAPI
All URIs are relative to http://localhost:8096
Method | HTTP request | Description |
---|---|---|
getCountries | GET /Localization/Countries | Gets known countries. |
getCultures | GET /Localization/Cultures | Gets known cultures. |
getLocalizationOptions | GET /Localization/Options | Gets localization options. |
getParentalRatings | GET /Localization/ParentalRatings | Gets known parental ratings. |
getCountries
open class func getCountries(completion: @escaping (_ data: [CountryInfo]?, _ error: Error?) -> Void)
Gets known countries.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets known countries.
LocalizationAPI.getCountries() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCultures
open class func getCultures(completion: @escaping (_ data: [CultureDto]?, _ error: Error?) -> Void)
Gets known cultures.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets known cultures.
LocalizationAPI.getCultures() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getLocalizationOptions
open class func getLocalizationOptions(completion: @escaping (_ data: [LocalizationOption]?, _ error: Error?) -> Void)
Gets localization options.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets localization options.
LocalizationAPI.getLocalizationOptions() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getParentalRatings
open class func getParentalRatings(completion: @escaping (_ data: [ParentalRating]?, _ error: Error?) -> Void)
Gets known parental ratings.
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import JellyfinAPI
// Gets known parental ratings.
LocalizationAPI.getParentalRatings() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]