module YTLabsApi::SupplementaryInformation

Public Instance Methods

get_cities(i18n="ko-KR") click to toggle source

GET /citycode/ Returns a list with code or name of cities. Optional => i18n default: “ko-KR” Return text in other lanaguages(ko-KR, en-US, zh-CN, ja-JP)

# File lib/ytlabs_api/supplementary_information.rb, line 23
def get_cities(i18n="ko-KR")
  response = HTTParty.get(
    "#{build_url(__method__.to_s)}?i18n=#{i18n}",
    headers: { "Authorization" => token.to_s, "Content-Type" => "#{content_type}" }
  )

  prepare_response(response)
end
get_extra_service_codes(i18n="ko-KR") click to toggle source

GET /extraservicecode/ Returns a list mapping the codes and names of extra services. Optional => i18n default: “ko-KR” Return text in other lanaguages(ko-KR, en-US, zh-CN, ja-JP)

# File lib/ytlabs_api/supplementary_information.rb, line 38
def get_extra_service_codes(i18n="ko-KR")
  response = HTTParty.get(
    "#{build_url(__method__.to_s)}?i18n=#{i18n}",
    headers: { "Authorization" => token.to_s, "Content-Type" => "#{content_type}" }
  )

  prepare_response(response)
end
get_provinces(i18n="ko-KR") click to toggle source

GET /provincecode/ Returns a list with code or name of province. Optional => i18n default: “ko-KR” Return text in other lanaguages(ko-KR, en-US, zh-CN, ja-JP)

# File lib/ytlabs_api/supplementary_information.rb, line 8
def get_provinces(i18n="ko-KR")
  response = HTTParty.get(
    "#{build_url(__method__.to_s)}?i18n=#{i18n}",
    headers: { "Authorization" => token.to_s, "Content-Type" => "#{content_type}" }
  )

  prepare_response(response)
end
get_theme_codes(i18n="ko-KR") click to toggle source

GET /themecode/ Returns a list mapping the code and name of themes. Optional => i18n default: “ko-KR” Return text in other lanaguages(ko-KR, en-US, zh-CN, ja-JP)

# File lib/ytlabs_api/supplementary_information.rb, line 53
def get_theme_codes(i18n="ko-KR")
  response = HTTParty.get(
    "#{build_url(__method__.to_s)}?i18n=#{i18n}",
    headers: { "Authorization" => token.to_s, "Content-Type" => "#{content_type}" }
  )

  prepare_response(response)
end