bombbomb 2.0.25797 → 2.0.25798

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +68 -33
  4. data/Rakefile +8 -3
  5. data/bombbomb.gemspec +8 -17
  6. data/docs/AccountsApi.md +164 -5
  7. data/docs/AutomationsApi.md +52 -0
  8. data/docs/ClientGroupAssetMetaData.md +11 -0
  9. data/docs/ContactsApi.md +9 -6
  10. data/docs/EmailsApi.md +220 -0
  11. data/docs/FormsApi.md +60 -0
  12. data/docs/InlineResponse200.md +1 -1
  13. data/docs/IntegrationsApi.md +223 -0
  14. data/docs/JerichoConfiguration.md +2 -0
  15. data/docs/PromptMonthlyPerformance.md +11 -0
  16. data/docs/PromptOverview.md +11 -0
  17. data/docs/PromptSocialPrompt.md +20 -0
  18. data/docs/PromptsApi.md +230 -3
  19. data/docs/SocialsApi.md +167 -2
  20. data/docs/TeamsApi.md +300 -16
  21. data/docs/UsersApi.md +100 -0
  22. data/docs/VideoEmailPrompt.md +15 -15
  23. data/git_push.sh +1 -13
  24. data/lib/bombbomb.rb +8 -14
  25. data/lib/bombbomb/api/accounts_api.rb +189 -51
  26. data/lib/bombbomb/api/automations_api.rb +71 -30
  27. data/lib/bombbomb/api/contacts_api.rb +58 -86
  28. data/lib/bombbomb/api/curriculum_api.rb +8 -27
  29. data/lib/bombbomb/api/emails_api.rb +262 -66
  30. data/lib/bombbomb/api/files_api.rb +32 -53
  31. data/lib/bombbomb/api/forms_api.rb +77 -0
  32. data/lib/bombbomb/api/integrations_api.rb +238 -20
  33. data/lib/bombbomb/api/lists_api.rb +32 -53
  34. data/lib/bombbomb/api/orders_api.rb +8 -21
  35. data/lib/bombbomb/api/prompts_api.rb +347 -112
  36. data/lib/bombbomb/api/socials_api.rb +242 -87
  37. data/lib/bombbomb/api/teams_api.rb +485 -193
  38. data/lib/bombbomb/api/users_api.rb +119 -0
  39. data/lib/bombbomb/api/utilities_api.rb +23 -44
  40. data/lib/bombbomb/api/videos_api.rb +38 -55
  41. data/lib/bombbomb/api/webhooks_api.rb +23 -50
  42. data/lib/bombbomb/api_client.rb +55 -45
  43. data/lib/bombbomb/api_error.rb +9 -18
  44. data/lib/bombbomb/configuration.rb +8 -13
  45. data/lib/bombbomb/models/bb_web_hook.rb +6 -17
  46. data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
  47. data/lib/bombbomb/models/curriculum.rb +6 -17
  48. data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
  49. data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
  50. data/lib/bombbomb/models/hosted_doc.rb +6 -17
  51. data/lib/bombbomb/models/inline_response_200.rb +7 -18
  52. data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
  53. data/lib/bombbomb/models/jericho_configuration.rb +34 -21
  54. data/lib/bombbomb/models/jericho_performance.rb +6 -17
  55. data/lib/bombbomb/models/o_auth_client.rb +6 -17
  56. data/lib/bombbomb/models/prompt_bot.rb +6 -17
  57. data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
  58. data/lib/bombbomb/models/prompt_overview.rb +219 -0
  59. data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
  60. data/lib/bombbomb/models/sign_upload_request.rb +6 -17
  61. data/lib/bombbomb/models/sign_upload_response.rb +6 -17
  62. data/lib/bombbomb/models/string.rb +6 -17
  63. data/lib/bombbomb/models/team_public_representation.rb +6 -17
  64. data/lib/bombbomb/models/video_email_prompt.rb +128 -144
  65. data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
  66. data/lib/bombbomb/models/video_public_representation.rb +6 -17
  67. data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
  68. data/lib/bombbomb/version.rb +3 -14
  69. data/spec/api/forms_api_spec.rb +58 -0
  70. data/spec/api/users_api_spec.rb +57 -0
  71. data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
  72. data/spec/models/prompt_monthly_performance_spec.rb +60 -0
  73. data/spec/models/prompt_overview_spec.rb +60 -0
  74. data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
  75. metadata +40 -20
@@ -3,37 +3,37 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | The identifier of the prompt. Read Only. | [optional]
7
- **user_id** | **String** | The prompt's owner. Read Only. | [optional]
8
6
  **template_id** | **String** | Optional. The email template to be used in the sent email, if none supplied, the users' default will be applied. | [optional]
9
- **email_subject_line** | **String** | The subject line of the final email |
10
- **email_content** | **String** | The HTML content of the final email |
11
- **thumbnail_url** | **String** | The URL of a thumbnail image for this prompt | [optional]
7
+ **email_subject_line** | **String** | The subject line of the final email | [optional]
8
+ **email_content** | **String** | The HTML content of the final email | [optional]
12
9
  **contact_id** | **String** | Contact Id to send the final email to | [optional]
13
10
  **to_lists** | **Array<String>** | List Ids to send the final email to | [optional]
14
- **jericho_id** | **String** | If sent in a jericho context, this will have the jericho id | [optional]
15
- **prompt_subject** | **String** | The prompt's subject line |
16
- **prompt_html** | **String** | The suggested script of the prompt. |
17
11
  **prompt_intro** | **String** | A paragraph intro statement about the purpose of the email you're recording a video for. | [optional]
18
12
  **example_video_id** | **String** | An example or explanatory video to help the user understand what to say. | [optional]
19
13
  **followup_video_id** | **String** | An example or explanatory video to help the user understand what to say. | [optional]
20
14
  **send_without_video** | **BOOLEAN** | Whether to send the email if no video is recorded. If set to require a video, and none is added before the videoDueDate, the prompt is cancelled. | [optional]
21
15
  **video_due_date** | **DateTime** | When the video must be recorded by | [optional]
22
- **scheduled_send_date** | **DateTime** | When the final email is scheduled to be sent |
23
16
  **video_id** | **String** | The video that was added to the prompt. Read Only. | [optional]
24
17
  **email_id** | **String** | The email that was created by the prompt Read Only. | [optional]
25
18
  **job_id** | **String** | The job sent by the prompt Read Only. | [optional]
26
19
  **prompt_bot_id** | **String** | The bot that created the prompt. | [optional]
27
- **client_group_id** | **String** | The client group campaign that created the prompt. | [optional]
28
- **status** | **Integer** | The status of the prompt: created = 0, sent = 10, recorded = 20, job_created = 30, timed_out = 40, declined = 50 Read Only | [optional]
29
20
  **apply_template** | **BOOLEAN** | Controls whether a user template is applied to the message as it is sent | [optional]
30
- **created_date** | **DateTime** | When the email was first sent out | [optional]
31
- **last_notified** | **DateTime** | When the user was last notified about a prompt email waiting for a video | [optional]
32
21
  **facebook_message** | **String** | The facebook message to be passed off to social sender | [optional]
33
22
  **twitter_message** | **String** | The twitter message to be passed off to social sender | [optional]
34
23
  **linkedin_message** | **String** | The linkedin message to be passed off to social sender | [optional]
35
- **send_mechanism** | **String** | The sendMechanism property | [optional]
36
- **has_social** | **BOOLEAN** | this determines whether or not it has a social content. | [optional]
24
+ **alternate_content_id** | **String** | The id for the alternate content id | [optional]
25
+ **id** | **String** | The identifier of the prompt. Read Only. | [optional]
26
+ **user_id** | **String** | The prompt's owner. Read Only. | [optional]
27
+ **jericho_id** | **String** | If sent in a jericho context, this will have the jericho id | [optional]
28
+ **prompt_subject** | **String** | The prompt's subject line | [optional]
29
+ **prompt_html** | **String** | The suggested script of the prompt. | [optional]
30
+ **scheduled_send_date** | **DateTime** | When the final email is scheduled to be sent | [optional]
31
+ **client_group_id** | **String** | The client group campaign that created the prompt. | [optional]
32
+ **thumbnail_url** | **String** | The URL of a thumbnail image for this prompt | [optional]
33
+ **status** | **Integer** | The status of the prompt: created = 0, sent = 10, recorded = 20, job_created = 30, timed_out = 40, declined = 50 Read Only | [optional]
34
+ **created_date** | **DateTime** | When the email was first sent out | [optional]
35
+ **last_notified** | **DateTime** | When the user was last notified about a prompt email waiting for a video | [optional]
36
+ **send_mechanism** | **DateTime** | The sendMechanism property | [optional]
37
37
  **send_types** | **Array<String>** | The types of mechanisms this prompt can send. | [optional]
38
38
 
39
39
 
@@ -2,18 +2,6 @@
2
2
  #
3
3
  # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
4
  #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
- #
17
5
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
18
6
  #
19
7
  # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
@@ -51,7 +39,7 @@ git_remote=`git remote`
51
39
  if [ "$git_remote" = "" ]; then # git remote not defined
52
40
 
53
41
  if [ "$GIT_TOKEN" = "" ]; then
54
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
55
43
  git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
56
44
  else
57
45
  git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
@@ -3,21 +3,10 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.25797
6
+ OpenAPI spec version: 2.0.831
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.3.1
21
10
 
22
11
  =end
23
12
 
@@ -29,16 +18,19 @@ require 'bombbomb/configuration'
29
18
 
30
19
  # Models
31
20
  require 'bombbomb/models/bb_web_hook'
21
+ require 'bombbomb/models/client_group_asset_meta_data'
32
22
  require 'bombbomb/models/curriculum'
33
23
  require 'bombbomb/models/curriculum_user_progress'
34
24
  require 'bombbomb/models/curriculum_with_progress'
35
25
  require 'bombbomb/models/hosted_doc'
36
26
  require 'bombbomb/models/inline_response_200'
37
- require 'bombbomb/models/inline_response_200_items'
38
27
  require 'bombbomb/models/jericho_configuration'
39
28
  require 'bombbomb/models/jericho_performance'
40
29
  require 'bombbomb/models/o_auth_client'
41
30
  require 'bombbomb/models/prompt_bot'
31
+ require 'bombbomb/models/prompt_monthly_performance'
32
+ require 'bombbomb/models/prompt_overview'
33
+ require 'bombbomb/models/prompt_social_prompt'
42
34
  require 'bombbomb/models/sign_upload_request'
43
35
  require 'bombbomb/models/sign_upload_response'
44
36
  require 'bombbomb/models/string'
@@ -55,12 +47,14 @@ require 'bombbomb/api/contacts_api'
55
47
  require 'bombbomb/api/curriculum_api'
56
48
  require 'bombbomb/api/emails_api'
57
49
  require 'bombbomb/api/files_api'
50
+ require 'bombbomb/api/forms_api'
58
51
  require 'bombbomb/api/integrations_api'
59
52
  require 'bombbomb/api/lists_api'
60
53
  require 'bombbomb/api/orders_api'
61
54
  require 'bombbomb/api/prompts_api'
62
55
  require 'bombbomb/api/socials_api'
63
56
  require 'bombbomb/api/teams_api'
57
+ require 'bombbomb/api/users_api'
64
58
  require 'bombbomb/api/utilities_api'
65
59
  require 'bombbomb/api/videos_api'
66
60
  require 'bombbomb/api/webhooks_api'
@@ -3,21 +3,10 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.25797
6
+ OpenAPI spec version: 2.0.831
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.3.1
21
10
 
22
11
  =end
23
12
 
@@ -49,28 +38,24 @@ module BombBomb
49
38
  @api_client.config.logger.debug "Calling API: AccountsApi.account_details ..."
50
39
  end
51
40
  # resource path
52
- local_var_path = "/accounts".sub('{format}','json')
41
+ local_var_path = "/accounts"
53
42
 
54
43
  # query parameters
55
44
  query_params = {}
56
45
 
57
46
  # header parameters
58
47
  header_params = {}
59
-
60
48
  # HTTP header 'Accept' (if needed)
61
- local_header_accept = ['application/json']
62
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
63
-
49
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
64
50
  # HTTP header 'Content-Type'
65
- local_header_content_type = ['application/x-www-form-urlencoded']
66
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
51
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
67
52
 
68
53
  # form parameters
69
54
  form_params = {}
70
55
 
71
56
  # http body (model)
72
57
  post_body = nil
73
- auth_names = []
58
+ auth_names = ['BBOAuth2']
74
59
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
75
60
  :header_params => header_params,
76
61
  :query_params => query_params,
@@ -97,7 +82,7 @@ module BombBomb
97
82
  # @option opts [String] :address Street Address of the user.
98
83
  # @option opts [String] :city City of the user.
99
84
  # @option opts [String] :postal_code Postal/Zip code of the user.
100
- # @option opts [String] :prevent_welcome_email prevent an email with login credentials from being sent to the new account. must be set to 'true'
85
+ # @option opts [BOOLEAN] :prevent_welcome_email prevent an email with login credentials from being sent to the new account. must be set to 'true'
101
86
  # @return [String]
102
87
  def create_account(team_id, first_name, last_name, email_address, company_name, phone, opts = {})
103
88
  data, _status_code, _headers = create_account_with_http_info(team_id, first_name, last_name, email_address, company_name, phone, opts)
@@ -118,40 +103,48 @@ module BombBomb
118
103
  # @option opts [String] :address Street Address of the user.
119
104
  # @option opts [String] :city City of the user.
120
105
  # @option opts [String] :postal_code Postal/Zip code of the user.
121
- # @option opts [String] :prevent_welcome_email prevent an email with login credentials from being sent to the new account. must be set to 'true'
106
+ # @option opts [BOOLEAN] :prevent_welcome_email prevent an email with login credentials from being sent to the new account. must be set to 'true'
122
107
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
123
108
  def create_account_with_http_info(team_id, first_name, last_name, email_address, company_name, phone, opts = {})
124
109
  if @api_client.config.debugging
125
110
  @api_client.config.logger.debug "Calling API: AccountsApi.create_account ..."
126
111
  end
127
112
  # verify the required parameter 'team_id' is set
128
- fail ArgumentError, "Missing the required parameter 'team_id' when calling AccountsApi.create_account" if team_id.nil?
113
+ if @api_client.config.client_side_validation && team_id.nil?
114
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling AccountsApi.create_account"
115
+ end
129
116
  # verify the required parameter 'first_name' is set
130
- fail ArgumentError, "Missing the required parameter 'first_name' when calling AccountsApi.create_account" if first_name.nil?
117
+ if @api_client.config.client_side_validation && first_name.nil?
118
+ fail ArgumentError, "Missing the required parameter 'first_name' when calling AccountsApi.create_account"
119
+ end
131
120
  # verify the required parameter 'last_name' is set
132
- fail ArgumentError, "Missing the required parameter 'last_name' when calling AccountsApi.create_account" if last_name.nil?
121
+ if @api_client.config.client_side_validation && last_name.nil?
122
+ fail ArgumentError, "Missing the required parameter 'last_name' when calling AccountsApi.create_account"
123
+ end
133
124
  # verify the required parameter 'email_address' is set
134
- fail ArgumentError, "Missing the required parameter 'email_address' when calling AccountsApi.create_account" if email_address.nil?
125
+ if @api_client.config.client_side_validation && email_address.nil?
126
+ fail ArgumentError, "Missing the required parameter 'email_address' when calling AccountsApi.create_account"
127
+ end
135
128
  # verify the required parameter 'company_name' is set
136
- fail ArgumentError, "Missing the required parameter 'company_name' when calling AccountsApi.create_account" if company_name.nil?
129
+ if @api_client.config.client_side_validation && company_name.nil?
130
+ fail ArgumentError, "Missing the required parameter 'company_name' when calling AccountsApi.create_account"
131
+ end
137
132
  # verify the required parameter 'phone' is set
138
- fail ArgumentError, "Missing the required parameter 'phone' when calling AccountsApi.create_account" if phone.nil?
133
+ if @api_client.config.client_side_validation && phone.nil?
134
+ fail ArgumentError, "Missing the required parameter 'phone' when calling AccountsApi.create_account"
135
+ end
139
136
  # resource path
140
- local_var_path = "/accounts".sub('{format}','json')
137
+ local_var_path = "/accounts"
141
138
 
142
139
  # query parameters
143
140
  query_params = {}
144
141
 
145
142
  # header parameters
146
143
  header_params = {}
147
-
148
144
  # HTTP header 'Accept' (if needed)
149
- local_header_accept = ['application/json']
150
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
151
-
145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
152
146
  # HTTP header 'Content-Type'
153
- local_header_content_type = ['application/x-www-form-urlencoded']
154
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
147
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
155
148
 
156
149
  # form parameters
157
150
  form_params = {}
@@ -188,6 +181,8 @@ module BombBomb
188
181
  # Gets general statics for a Client
189
182
  # @param [Hash] opts the optional parameters
190
183
  # @option opts [String] :client_id Client ID of the account to retrieve. Defaults to yourself.
184
+ # @option opts [BOOLEAN] :refresh Boolean for whether data returned should be from cache or not.
185
+ # @option opts [String] :statistic_values Array of data that should be returned, used exclusively for cacheless data
191
186
  # @return [nil]
192
187
  def get_client_statistics(opts = {})
193
188
  get_client_statistics_with_http_info(opts)
@@ -198,28 +193,28 @@ module BombBomb
198
193
  # Gets general statics for a Client
199
194
  # @param [Hash] opts the optional parameters
200
195
  # @option opts [String] :client_id Client ID of the account to retrieve. Defaults to yourself.
196
+ # @option opts [BOOLEAN] :refresh Boolean for whether data returned should be from cache or not.
197
+ # @option opts [String] :statistic_values Array of data that should be returned, used exclusively for cacheless data
201
198
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
202
199
  def get_client_statistics_with_http_info(opts = {})
203
200
  if @api_client.config.debugging
204
201
  @api_client.config.logger.debug "Calling API: AccountsApi.get_client_statistics ..."
205
202
  end
206
203
  # resource path
207
- local_var_path = "/accounts/stats".sub('{format}','json')
204
+ local_var_path = "/accounts/stats"
208
205
 
209
206
  # query parameters
210
207
  query_params = {}
211
208
  query_params[:'clientId'] = opts[:'client_id'] if !opts[:'client_id'].nil?
209
+ query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
210
+ query_params[:'statisticValues'] = opts[:'statistic_values'] if !opts[:'statistic_values'].nil?
212
211
 
213
212
  # header parameters
214
213
  header_params = {}
215
-
216
214
  # HTTP header 'Accept' (if needed)
217
- local_header_accept = ['application/json']
218
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
219
-
215
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
220
216
  # HTTP header 'Content-Type'
221
- local_header_content_type = ['application/x-www-form-urlencoded']
222
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
217
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
223
218
 
224
219
  # form parameters
225
220
  form_params = {}
@@ -239,6 +234,102 @@ module BombBomb
239
234
  return data, status_code, headers
240
235
  end
241
236
 
237
+ # Gets user country
238
+ # Gets the users country
239
+ # @param [Hash] opts the optional parameters
240
+ # @return [nil]
241
+ def get_user_country(opts = {})
242
+ get_user_country_with_http_info(opts)
243
+ return nil
244
+ end
245
+
246
+ # Gets user country
247
+ # Gets the users country
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
250
+ def get_user_country_with_http_info(opts = {})
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug "Calling API: AccountsApi.get_user_country ..."
253
+ end
254
+ # resource path
255
+ local_var_path = "/accounts/{clientId}/country"
256
+
257
+ # query parameters
258
+ query_params = {}
259
+
260
+ # header parameters
261
+ header_params = {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
266
+
267
+ # form parameters
268
+ form_params = {}
269
+
270
+ # http body (model)
271
+ post_body = nil
272
+ auth_names = ['BBOAuth2']
273
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
274
+ :header_params => header_params,
275
+ :query_params => query_params,
276
+ :form_params => form_params,
277
+ :body => post_body,
278
+ :auth_names => auth_names)
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "API called: AccountsApi#get_user_country\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ end
282
+ return data, status_code, headers
283
+ end
284
+
285
+ # Reset API key
286
+ # Resets the current user's API key and returns the new key
287
+ # @param [Hash] opts the optional parameters
288
+ # @return [nil]
289
+ def reset_api_key(opts = {})
290
+ reset_api_key_with_http_info(opts)
291
+ return nil
292
+ end
293
+
294
+ # Reset API key
295
+ # Resets the current user&#39;s API key and returns the new key
296
+ # @param [Hash] opts the optional parameters
297
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
298
+ def reset_api_key_with_http_info(opts = {})
299
+ if @api_client.config.debugging
300
+ @api_client.config.logger.debug "Calling API: AccountsApi.reset_api_key ..."
301
+ end
302
+ # resource path
303
+ local_var_path = "/accounts/apikey"
304
+
305
+ # query parameters
306
+ query_params = {}
307
+
308
+ # header parameters
309
+ header_params = {}
310
+ # HTTP header 'Accept' (if needed)
311
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
312
+ # HTTP header 'Content-Type'
313
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
314
+
315
+ # form parameters
316
+ form_params = {}
317
+
318
+ # http body (model)
319
+ post_body = nil
320
+ auth_names = ['BBOAuth2']
321
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
322
+ :header_params => header_params,
323
+ :query_params => query_params,
324
+ :form_params => form_params,
325
+ :body => post_body,
326
+ :auth_names => auth_names)
327
+ if @api_client.config.debugging
328
+ @api_client.config.logger.debug "API called: AccountsApi#reset_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
329
+ end
330
+ return data, status_code, headers
331
+ end
332
+
242
333
  # Check if subscription purchase allowed.
243
334
  # Check whether the user can purchase a subscription.
244
335
  # @param [Hash] opts the optional parameters
@@ -257,28 +348,24 @@ module BombBomb
257
348
  @api_client.config.logger.debug "Calling API: AccountsApi.subscription_purchase_allowed ..."
258
349
  end
259
350
  # resource path
260
- local_var_path = "/accounts/purchaseable".sub('{format}','json')
351
+ local_var_path = "/accounts/purchaseable"
261
352
 
262
353
  # query parameters
263
354
  query_params = {}
264
355
 
265
356
  # header parameters
266
357
  header_params = {}
267
-
268
358
  # HTTP header 'Accept' (if needed)
269
- local_header_accept = ['application/json']
270
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
271
-
359
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
272
360
  # HTTP header 'Content-Type'
273
- local_header_content_type = ['application/x-www-form-urlencoded']
274
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
361
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
275
362
 
276
363
  # form parameters
277
364
  form_params = {}
278
365
 
279
366
  # http body (model)
280
367
  post_body = nil
281
- auth_names = []
368
+ auth_names = ['BBOAuth2']
282
369
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
283
370
  :header_params => header_params,
284
371
  :query_params => query_params,
@@ -290,5 +377,56 @@ module BombBomb
290
377
  end
291
378
  return data, status_code, headers
292
379
  end
380
+
381
+ # Add profile information.
382
+ # Add profile information to this users account
383
+ # @param [Hash] opts the optional parameters
384
+ # @option opts [String] :profile_data Profile field information for the account
385
+ # @return [nil]
386
+ def update_profile_data(opts = {})
387
+ update_profile_data_with_http_info(opts)
388
+ return nil
389
+ end
390
+
391
+ # Add profile information.
392
+ # Add profile information to this users account
393
+ # @param [Hash] opts the optional parameters
394
+ # @option opts [String] :profile_data Profile field information for the account
395
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
396
+ def update_profile_data_with_http_info(opts = {})
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug "Calling API: AccountsApi.update_profile_data ..."
399
+ end
400
+ # resource path
401
+ local_var_path = "/account/profile/"
402
+
403
+ # query parameters
404
+ query_params = {}
405
+
406
+ # header parameters
407
+ header_params = {}
408
+ # HTTP header 'Accept' (if needed)
409
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
410
+ # HTTP header 'Content-Type'
411
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
412
+
413
+ # form parameters
414
+ form_params = {}
415
+ form_params["profileData"] = opts[:'profile_data'] if !opts[:'profile_data'].nil?
416
+
417
+ # http body (model)
418
+ post_body = nil
419
+ auth_names = ['BBOAuth2']
420
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
421
+ :header_params => header_params,
422
+ :query_params => query_params,
423
+ :form_params => form_params,
424
+ :body => post_body,
425
+ :auth_names => auth_names)
426
+ if @api_client.config.debugging
427
+ @api_client.config.logger.debug "API called: AccountsApi#update_profile_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
428
+ end
429
+ return data, status_code, headers
430
+ end
293
431
  end
294
432
  end