jellyfin-sdk-swift/docs/LocalizationAPI.md
PangMo5 56900dbf48 Add generate parameters
Add templates
Add api.json
2021-06-05 04:29:33 +09:00

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

**[CountryInfo]**

Authorization

CustomAuthentication

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

**[CultureDto]**

Authorization

CustomAuthentication

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

**[LocalizationOption]**

Authorization

CustomAuthentication

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

**[ParentalRating]**

Authorization

CustomAuthentication

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]