Module: AppStoreConnectApi::Domain::AppInfos

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/app_infos.rb

Instance Method Summary collapse

Instance Method Details

#app_info(app_info_id, options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 7

def app_info(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}", options
end

#app_info_age_rating_declaration(app_info_id, options = {}) ⇒ Object



24
25
26
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 24

def app_info_age_rating_declaration(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/ageRatingDeclaration", options
end

#app_info_localizations(app_info_id, options = {}) ⇒ Object



19
20
21
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 19

def app_info_localizations(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/appInfoLocalizations", options
end

#app_info_primary_category(app_info_id, options = {}) ⇒ Object



29
30
31
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 29

def app_info_primary_category(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/primaryCategory", options
end

#app_info_primary_subcategory_one(app_info_id, options = {}) ⇒ Object



34
35
36
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 34

def app_info_primary_subcategory_one(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/primarySubcategoryOne", options
end

#app_info_primary_subcategory_two(app_info_id, options = {}) ⇒ Object



39
40
41
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 39

def app_info_primary_subcategory_two(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/primarySubcategoryTwo", options
end

#app_info_secondary_category(app_info_id, options = {}) ⇒ Object



44
45
46
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 44

def app_info_secondary_category(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/secondaryCategory", options
end

#app_info_secondary_subcategory_one(app_info_id, options = {}) ⇒ Object



49
50
51
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 49

def app_info_secondary_subcategory_one(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/secondarySubcategoryOne", options
end

#app_info_secondary_subcategory_two(app_info_id, options = {}) ⇒ Object



54
55
56
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 54

def app_info_secondary_subcategory_two(app_info_id, options = {})
  get "/v1/appInfos/#{app_info_id}/secondarySubcategoryTwo", options
end

#update_app_info(app_info_id, relationships) ⇒ Object



12
13
14
15
16
# File 'lib/app_store_connect_api/domain/app_infos.rb', line 12

def update_app_info(app_info_id, relationships)
  patch "/v1/appInfos/#{app_info_id}", data: { relationships: Utils::RelationshipMapper.expand(relationships, '*' => 'appCategories'),
                                               id: app_info_id,
                                               type: 'appInfos' }
end