smooch-api 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +181 -0
- data/Rakefile +8 -0
- data/docs/Action.md +16 -0
- data/docs/App.md +10 -0
- data/docs/AppApi.md +609 -0
- data/docs/AppCreate.md +8 -0
- data/docs/AppResponse.md +8 -0
- data/docs/AppUser.md +18 -0
- data/docs/AppUserApi.md +561 -0
- data/docs/AppUserLink.md +9 -0
- data/docs/AppUserPreCreate.md +14 -0
- data/docs/AppUserResponse.md +8 -0
- data/docs/AppUserUpdate.md +12 -0
- data/docs/Client.md +14 -0
- data/docs/ClientInfo.md +15 -0
- data/docs/Conversation.md +9 -0
- data/docs/ConversationApi.md +282 -0
- data/docs/Destination.md +9 -0
- data/docs/DeviceInit.md +12 -0
- data/docs/DeviceResponse.md +8 -0
- data/docs/DeviceUpdate.md +10 -0
- data/docs/DisplaySettings.md +8 -0
- data/docs/Event.md +8 -0
- data/docs/GetMessagesResponse.md +10 -0
- data/docs/Init.md +9 -0
- data/docs/InitApi.md +61 -0
- data/docs/InitResponse.md +9 -0
- data/docs/Integration.md +24 -0
- data/docs/IntegrationApi.md +121 -0
- data/docs/IntegrationCreate.md +23 -0
- data/docs/IntegrationResponse.md +8 -0
- data/docs/JwtResponse.md +8 -0
- data/docs/ListAppsResponse.md +10 -0
- data/docs/ListIntegrationsResponse.md +8 -0
- data/docs/ListSecretKeysResponse.md +8 -0
- data/docs/ListWebhooksResponse.md +8 -0
- data/docs/Menu.md +9 -0
- data/docs/MenuApi.md +155 -0
- data/docs/MenuItem.md +11 -0
- data/docs/MenuResponse.md +8 -0
- data/docs/Message.md +23 -0
- data/docs/MessageItem.md +13 -0
- data/docs/MessagePost.md +20 -0
- data/docs/MessageResponse.md +9 -0
- data/docs/PostMessagesResponse.md +9 -0
- data/docs/SecretKey.md +10 -0
- data/docs/SecretKeyCreate.md +8 -0
- data/docs/SecretKeyResponse.md +8 -0
- data/docs/TrackEventResponse.md +8 -0
- data/docs/TypingActivityTrigger.md +11 -0
- data/docs/Webhook.md +11 -0
- data/docs/WebhookApi.md +287 -0
- data/docs/WebhookCreate.md +9 -0
- data/docs/WebhookResponse.md +8 -0
- data/docs/WebhookUpdate.md +9 -0
- data/git_push.sh +55 -0
- data/lib/smooch-api.rb +91 -0
- data/lib/smooch-api/api/app_api.rb +628 -0
- data/lib/smooch-api/api/app_user_api.rb +585 -0
- data/lib/smooch-api/api/conversation_api.rb +298 -0
- data/lib/smooch-api/api/init_api.rb +75 -0
- data/lib/smooch-api/api/integration_api.rb +135 -0
- data/lib/smooch-api/api/menu_api.rb +173 -0
- data/lib/smooch-api/api/webhook_api.rb +306 -0
- data/lib/smooch-api/api_client.rb +376 -0
- data/lib/smooch-api/api_error.rb +37 -0
- data/lib/smooch-api/configuration.rb +202 -0
- data/lib/smooch-api/models/action.rb +311 -0
- data/lib/smooch-api/models/app.rb +223 -0
- data/lib/smooch-api/models/app_create.rb +193 -0
- data/lib/smooch-api/models/app_response.rb +188 -0
- data/lib/smooch-api/models/app_user.rb +307 -0
- data/lib/smooch-api/models/app_user_link.rb +236 -0
- data/lib/smooch-api/models/app_user_pre_create.rb +253 -0
- data/lib/smooch-api/models/app_user_response.rb +193 -0
- data/lib/smooch-api/models/app_user_update.rb +228 -0
- data/lib/smooch-api/models/client.rb +290 -0
- data/lib/smooch-api/models/client_info.rb +258 -0
- data/lib/smooch-api/models/conversation.rb +208 -0
- data/lib/smooch-api/models/destination.rb +208 -0
- data/lib/smooch-api/models/device_init.rb +270 -0
- data/lib/smooch-api/models/device_response.rb +188 -0
- data/lib/smooch-api/models/device_update.rb +207 -0
- data/lib/smooch-api/models/display_settings.rb +188 -0
- data/lib/smooch-api/models/event.rb +193 -0
- data/lib/smooch-api/models/get_messages_response.rb +210 -0
- data/lib/smooch-api/models/init.rb +202 -0
- data/lib/smooch-api/models/init_response.rb +208 -0
- data/lib/smooch-api/models/integration.rb +358 -0
- data/lib/smooch-api/models/integration_create.rb +343 -0
- data/lib/smooch-api/models/integration_response.rb +188 -0
- data/lib/smooch-api/models/jwt_response.rb +188 -0
- data/lib/smooch-api/models/list_apps_response.rb +210 -0
- data/lib/smooch-api/models/list_integrations_response.rb +190 -0
- data/lib/smooch-api/models/list_secret_keys_response.rb +190 -0
- data/lib/smooch-api/models/list_webhooks_response.rb +195 -0
- data/lib/smooch-api/models/menu.rb +205 -0
- data/lib/smooch-api/models/menu_item.rb +228 -0
- data/lib/smooch-api/models/menu_response.rb +193 -0
- data/lib/smooch-api/models/message.rb +415 -0
- data/lib/smooch-api/models/message_item.rb +250 -0
- data/lib/smooch-api/models/message_post.rb +355 -0
- data/lib/smooch-api/models/message_response.rb +208 -0
- data/lib/smooch-api/models/post_messages_response.rb +200 -0
- data/lib/smooch-api/models/secret_key.rb +223 -0
- data/lib/smooch-api/models/secret_key_create.rb +193 -0
- data/lib/smooch-api/models/secret_key_response.rb +188 -0
- data/lib/smooch-api/models/track_event_response.rb +188 -0
- data/lib/smooch-api/models/typing_activity_trigger.rb +228 -0
- data/lib/smooch-api/models/webhook.rb +261 -0
- data/lib/smooch-api/models/webhook_create.rb +226 -0
- data/lib/smooch-api/models/webhook_response.rb +193 -0
- data/lib/smooch-api/models/webhook_update.rb +221 -0
- data/lib/smooch-api/version.rb +14 -0
- data/smooch-api.gemspec +44 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/spec_helper.rb +110 -0
- metadata +349 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
# SmoochApi::WebhookCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**target** | **String** | URL to be called when the webhook is triggered. |
|
7
|
+
**triggers** | **Array<String>** | An array of triggers you wish to have the webhook listen to. If unspecified the default trigger is *message*. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SmoochApi::WebhookUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**target** | **String** | URL to be called when the webhook is triggered. | [optional]
|
7
|
+
**triggers** | **Array<String>** | An array of triggers you wish to have the webhook listen to. If unspecified the default trigger is *message*. | [optional]
|
8
|
+
|
9
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/smooch-api.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
=begin
|
2
|
+
#Smooch
|
3
|
+
|
4
|
+
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
|
+
|
6
|
+
OpenAPI spec version: 1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
# Common files
|
13
|
+
require 'smooch-api/api_client'
|
14
|
+
require 'smooch-api/api_error'
|
15
|
+
require 'smooch-api/version'
|
16
|
+
require 'smooch-api/configuration'
|
17
|
+
|
18
|
+
# Models
|
19
|
+
require 'smooch-api/models/action'
|
20
|
+
require 'smooch-api/models/app'
|
21
|
+
require 'smooch-api/models/app_create'
|
22
|
+
require 'smooch-api/models/app_response'
|
23
|
+
require 'smooch-api/models/app_user'
|
24
|
+
require 'smooch-api/models/app_user_link'
|
25
|
+
require 'smooch-api/models/app_user_pre_create'
|
26
|
+
require 'smooch-api/models/app_user_response'
|
27
|
+
require 'smooch-api/models/app_user_update'
|
28
|
+
require 'smooch-api/models/client'
|
29
|
+
require 'smooch-api/models/client_info'
|
30
|
+
require 'smooch-api/models/conversation'
|
31
|
+
require 'smooch-api/models/destination'
|
32
|
+
require 'smooch-api/models/device_init'
|
33
|
+
require 'smooch-api/models/device_response'
|
34
|
+
require 'smooch-api/models/device_update'
|
35
|
+
require 'smooch-api/models/display_settings'
|
36
|
+
require 'smooch-api/models/event'
|
37
|
+
require 'smooch-api/models/get_messages_response'
|
38
|
+
require 'smooch-api/models/init'
|
39
|
+
require 'smooch-api/models/init_response'
|
40
|
+
require 'smooch-api/models/integration'
|
41
|
+
require 'smooch-api/models/integration_create'
|
42
|
+
require 'smooch-api/models/integration_response'
|
43
|
+
require 'smooch-api/models/jwt_response'
|
44
|
+
require 'smooch-api/models/list_apps_response'
|
45
|
+
require 'smooch-api/models/list_integrations_response'
|
46
|
+
require 'smooch-api/models/list_secret_keys_response'
|
47
|
+
require 'smooch-api/models/list_webhooks_response'
|
48
|
+
require 'smooch-api/models/menu'
|
49
|
+
require 'smooch-api/models/menu_item'
|
50
|
+
require 'smooch-api/models/menu_response'
|
51
|
+
require 'smooch-api/models/message'
|
52
|
+
require 'smooch-api/models/message_item'
|
53
|
+
require 'smooch-api/models/message_post'
|
54
|
+
require 'smooch-api/models/message_response'
|
55
|
+
require 'smooch-api/models/post_messages_response'
|
56
|
+
require 'smooch-api/models/secret_key'
|
57
|
+
require 'smooch-api/models/secret_key_create'
|
58
|
+
require 'smooch-api/models/secret_key_response'
|
59
|
+
require 'smooch-api/models/track_event_response'
|
60
|
+
require 'smooch-api/models/typing_activity_trigger'
|
61
|
+
require 'smooch-api/models/webhook'
|
62
|
+
require 'smooch-api/models/webhook_create'
|
63
|
+
require 'smooch-api/models/webhook_response'
|
64
|
+
require 'smooch-api/models/webhook_update'
|
65
|
+
|
66
|
+
# APIs
|
67
|
+
require 'smooch-api/api/app_api'
|
68
|
+
require 'smooch-api/api/app_user_api'
|
69
|
+
require 'smooch-api/api/conversation_api'
|
70
|
+
require 'smooch-api/api/init_api'
|
71
|
+
require 'smooch-api/api/integration_api'
|
72
|
+
require 'smooch-api/api/menu_api'
|
73
|
+
require 'smooch-api/api/webhook_api'
|
74
|
+
|
75
|
+
module SmoochApi
|
76
|
+
class << self
|
77
|
+
# Customize default settings for the SDK using block.
|
78
|
+
# SmoochApi.configure do |config|
|
79
|
+
# config.username = "xxx"
|
80
|
+
# config.password = "xxx"
|
81
|
+
# end
|
82
|
+
# If no block given, return the default Configuration object.
|
83
|
+
def configure
|
84
|
+
if block_given?
|
85
|
+
yield(Configuration.default)
|
86
|
+
else
|
87
|
+
Configuration.default
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,628 @@
|
|
1
|
+
=begin
|
2
|
+
#Smooch
|
3
|
+
|
4
|
+
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
|
+
|
6
|
+
OpenAPI spec version: 1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require "uri"
|
13
|
+
|
14
|
+
module SmoochApi
|
15
|
+
class AppApi
|
16
|
+
attr_accessor :api_client
|
17
|
+
|
18
|
+
def initialize(api_client = ApiClient.default)
|
19
|
+
@api_client = api_client
|
20
|
+
end
|
21
|
+
|
22
|
+
#
|
23
|
+
# Create a new app.
|
24
|
+
# @param app_create_body Body for a createApp request.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AppResponse]
|
27
|
+
def create_app(app_create_body, opts = {})
|
28
|
+
data, _status_code, _headers = create_app_with_http_info(app_create_body, opts)
|
29
|
+
return data
|
30
|
+
end
|
31
|
+
|
32
|
+
#
|
33
|
+
# Create a new app.
|
34
|
+
# @param app_create_body Body for a createApp request.
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AppResponse, Fixnum, Hash)>] AppResponse data, response status code and response headers
|
37
|
+
def create_app_with_http_info(app_create_body, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug "Calling API: AppApi.create_app ..."
|
40
|
+
end
|
41
|
+
# verify the required parameter 'app_create_body' is set
|
42
|
+
fail ArgumentError, "Missing the required parameter 'app_create_body' when calling AppApi.create_app" if app_create_body.nil?
|
43
|
+
# resource path
|
44
|
+
local_var_path = "/apps"
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = @api_client.object_to_http_body(app_create_body)
|
61
|
+
auth_names = ['jwt']
|
62
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
|
+
:header_params => header_params,
|
64
|
+
:query_params => query_params,
|
65
|
+
:form_params => form_params,
|
66
|
+
:body => post_body,
|
67
|
+
:auth_names => auth_names,
|
68
|
+
:return_type => 'AppResponse')
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: AppApi#create_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
|
75
|
+
#
|
76
|
+
# Create a secret key for the specified app.
|
77
|
+
# @param app_id Identifies the app.
|
78
|
+
# @param secret_key_create_body Body for a createSecretKey request.
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [SecretKeyResponse]
|
81
|
+
def create_secret_key(app_id, secret_key_create_body, opts = {})
|
82
|
+
data, _status_code, _headers = create_secret_key_with_http_info(app_id, secret_key_create_body, opts)
|
83
|
+
return data
|
84
|
+
end
|
85
|
+
|
86
|
+
#
|
87
|
+
# Create a secret key for the specified app.
|
88
|
+
# @param app_id Identifies the app.
|
89
|
+
# @param secret_key_create_body Body for a createSecretKey request.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [Array<(SecretKeyResponse, Fixnum, Hash)>] SecretKeyResponse data, response status code and response headers
|
92
|
+
def create_secret_key_with_http_info(app_id, secret_key_create_body, opts = {})
|
93
|
+
if @api_client.config.debugging
|
94
|
+
@api_client.config.logger.debug "Calling API: AppApi.create_secret_key ..."
|
95
|
+
end
|
96
|
+
# verify the required parameter 'app_id' is set
|
97
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.create_secret_key" if app_id.nil?
|
98
|
+
# verify the required parameter 'secret_key_create_body' is set
|
99
|
+
fail ArgumentError, "Missing the required parameter 'secret_key_create_body' when calling AppApi.create_secret_key" if secret_key_create_body.nil?
|
100
|
+
# resource path
|
101
|
+
local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
|
102
|
+
|
103
|
+
# query parameters
|
104
|
+
query_params = {}
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = {}
|
108
|
+
# HTTP header 'Accept' (if needed)
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
110
|
+
# HTTP header 'Content-Type'
|
111
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
112
|
+
|
113
|
+
# form parameters
|
114
|
+
form_params = {}
|
115
|
+
|
116
|
+
# http body (model)
|
117
|
+
post_body = @api_client.object_to_http_body(secret_key_create_body)
|
118
|
+
auth_names = ['jwt']
|
119
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
120
|
+
:header_params => header_params,
|
121
|
+
:query_params => query_params,
|
122
|
+
:form_params => form_params,
|
123
|
+
:body => post_body,
|
124
|
+
:auth_names => auth_names,
|
125
|
+
:return_type => 'SecretKeyResponse')
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug "API called: AppApi#create_secret_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
+
end
|
129
|
+
return data, status_code, headers
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Delete the specified app.
|
134
|
+
# @param app_id Identifies the app.
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @return [nil]
|
137
|
+
def delete_app(app_id, opts = {})
|
138
|
+
delete_app_with_http_info(app_id, opts)
|
139
|
+
return nil
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Delete the specified app.
|
144
|
+
# @param app_id Identifies the app.
|
145
|
+
# @param [Hash] opts the optional parameters
|
146
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
147
|
+
def delete_app_with_http_info(app_id, opts = {})
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug "Calling API: AppApi.delete_app ..."
|
150
|
+
end
|
151
|
+
# verify the required parameter 'app_id' is set
|
152
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_app" if app_id.nil?
|
153
|
+
# resource path
|
154
|
+
local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
|
155
|
+
|
156
|
+
# query parameters
|
157
|
+
query_params = {}
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = {}
|
161
|
+
# HTTP header 'Accept' (if needed)
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
# HTTP header 'Content-Type'
|
164
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
165
|
+
|
166
|
+
# form parameters
|
167
|
+
form_params = {}
|
168
|
+
|
169
|
+
# http body (model)
|
170
|
+
post_body = nil
|
171
|
+
auth_names = ['jwt']
|
172
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
173
|
+
:header_params => header_params,
|
174
|
+
:query_params => query_params,
|
175
|
+
:form_params => form_params,
|
176
|
+
:body => post_body,
|
177
|
+
:auth_names => auth_names)
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug "API called: AppApi#delete_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
180
|
+
end
|
181
|
+
return data, status_code, headers
|
182
|
+
end
|
183
|
+
|
184
|
+
#
|
185
|
+
# Delete the specified integration.
|
186
|
+
# @param app_id Identifies the app.
|
187
|
+
# @param integration_id Identifies the integration.
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [nil]
|
190
|
+
def delete_integration(app_id, integration_id, opts = {})
|
191
|
+
delete_integration_with_http_info(app_id, integration_id, opts)
|
192
|
+
return nil
|
193
|
+
end
|
194
|
+
|
195
|
+
#
|
196
|
+
# Delete the specified integration.
|
197
|
+
# @param app_id Identifies the app.
|
198
|
+
# @param integration_id Identifies the integration.
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
201
|
+
def delete_integration_with_http_info(app_id, integration_id, opts = {})
|
202
|
+
if @api_client.config.debugging
|
203
|
+
@api_client.config.logger.debug "Calling API: AppApi.delete_integration ..."
|
204
|
+
end
|
205
|
+
# verify the required parameter 'app_id' is set
|
206
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_integration" if app_id.nil?
|
207
|
+
# verify the required parameter 'integration_id' is set
|
208
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling AppApi.delete_integration" if integration_id.nil?
|
209
|
+
# resource path
|
210
|
+
local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
211
|
+
|
212
|
+
# query parameters
|
213
|
+
query_params = {}
|
214
|
+
|
215
|
+
# header parameters
|
216
|
+
header_params = {}
|
217
|
+
# HTTP header 'Accept' (if needed)
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
219
|
+
# HTTP header 'Content-Type'
|
220
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
221
|
+
|
222
|
+
# form parameters
|
223
|
+
form_params = {}
|
224
|
+
|
225
|
+
# http body (model)
|
226
|
+
post_body = nil
|
227
|
+
auth_names = ['jwt']
|
228
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
229
|
+
:header_params => header_params,
|
230
|
+
:query_params => query_params,
|
231
|
+
:form_params => form_params,
|
232
|
+
:body => post_body,
|
233
|
+
:auth_names => auth_names)
|
234
|
+
if @api_client.config.debugging
|
235
|
+
@api_client.config.logger.debug "API called: AppApi#delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
236
|
+
end
|
237
|
+
return data, status_code, headers
|
238
|
+
end
|
239
|
+
|
240
|
+
#
|
241
|
+
# Delete the specified secret key.
|
242
|
+
# @param app_id Identifies the app.
|
243
|
+
# @param key_id Identifies the secret key.
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @return [nil]
|
246
|
+
def delete_secret_key(app_id, key_id, opts = {})
|
247
|
+
delete_secret_key_with_http_info(app_id, key_id, opts)
|
248
|
+
return nil
|
249
|
+
end
|
250
|
+
|
251
|
+
#
|
252
|
+
# Delete the specified secret key.
|
253
|
+
# @param app_id Identifies the app.
|
254
|
+
# @param key_id Identifies the secret key.
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
257
|
+
def delete_secret_key_with_http_info(app_id, key_id, opts = {})
|
258
|
+
if @api_client.config.debugging
|
259
|
+
@api_client.config.logger.debug "Calling API: AppApi.delete_secret_key ..."
|
260
|
+
end
|
261
|
+
# verify the required parameter 'app_id' is set
|
262
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_secret_key" if app_id.nil?
|
263
|
+
# verify the required parameter 'key_id' is set
|
264
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.delete_secret_key" if key_id.nil?
|
265
|
+
# resource path
|
266
|
+
local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
267
|
+
|
268
|
+
# query parameters
|
269
|
+
query_params = {}
|
270
|
+
|
271
|
+
# header parameters
|
272
|
+
header_params = {}
|
273
|
+
# HTTP header 'Accept' (if needed)
|
274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
275
|
+
# HTTP header 'Content-Type'
|
276
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
277
|
+
|
278
|
+
# form parameters
|
279
|
+
form_params = {}
|
280
|
+
|
281
|
+
# http body (model)
|
282
|
+
post_body = nil
|
283
|
+
auth_names = ['jwt']
|
284
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
285
|
+
:header_params => header_params,
|
286
|
+
:query_params => query_params,
|
287
|
+
:form_params => form_params,
|
288
|
+
:body => post_body,
|
289
|
+
:auth_names => auth_names)
|
290
|
+
if @api_client.config.debugging
|
291
|
+
@api_client.config.logger.debug "API called: AppApi#delete_secret_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
292
|
+
end
|
293
|
+
return data, status_code, headers
|
294
|
+
end
|
295
|
+
|
296
|
+
#
|
297
|
+
# Get the specified app.
|
298
|
+
# @param app_id Identifies the app.
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [AppResponse]
|
301
|
+
def get_app(app_id, opts = {})
|
302
|
+
data, _status_code, _headers = get_app_with_http_info(app_id, opts)
|
303
|
+
return data
|
304
|
+
end
|
305
|
+
|
306
|
+
#
|
307
|
+
# Get the specified app.
|
308
|
+
# @param app_id Identifies the app.
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @return [Array<(AppResponse, Fixnum, Hash)>] AppResponse data, response status code and response headers
|
311
|
+
def get_app_with_http_info(app_id, opts = {})
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug "Calling API: AppApi.get_app ..."
|
314
|
+
end
|
315
|
+
# verify the required parameter 'app_id' is set
|
316
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app" if app_id.nil?
|
317
|
+
# resource path
|
318
|
+
local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
|
319
|
+
|
320
|
+
# query parameters
|
321
|
+
query_params = {}
|
322
|
+
|
323
|
+
# header parameters
|
324
|
+
header_params = {}
|
325
|
+
# HTTP header 'Accept' (if needed)
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
327
|
+
# HTTP header 'Content-Type'
|
328
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
329
|
+
|
330
|
+
# form parameters
|
331
|
+
form_params = {}
|
332
|
+
|
333
|
+
# http body (model)
|
334
|
+
post_body = nil
|
335
|
+
auth_names = ['jwt']
|
336
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
337
|
+
:header_params => header_params,
|
338
|
+
:query_params => query_params,
|
339
|
+
:form_params => form_params,
|
340
|
+
:body => post_body,
|
341
|
+
:auth_names => auth_names,
|
342
|
+
:return_type => 'AppResponse')
|
343
|
+
if @api_client.config.debugging
|
344
|
+
@api_client.config.logger.debug "API called: AppApi#get_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
345
|
+
end
|
346
|
+
return data, status_code, headers
|
347
|
+
end
|
348
|
+
|
349
|
+
#
|
350
|
+
# Get an app-scoped JWT for the specified secret key.
|
351
|
+
# @param app_id Identifies the app.
|
352
|
+
# @param key_id Identifies the secret key.
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @return [JwtResponse]
|
355
|
+
def get_app_jwt(app_id, key_id, opts = {})
|
356
|
+
data, _status_code, _headers = get_app_jwt_with_http_info(app_id, key_id, opts)
|
357
|
+
return data
|
358
|
+
end
|
359
|
+
|
360
|
+
#
|
361
|
+
# Get an app-scoped JWT for the specified secret key.
|
362
|
+
# @param app_id Identifies the app.
|
363
|
+
# @param key_id Identifies the secret key.
|
364
|
+
# @param [Hash] opts the optional parameters
|
365
|
+
# @return [Array<(JwtResponse, Fixnum, Hash)>] JwtResponse data, response status code and response headers
|
366
|
+
def get_app_jwt_with_http_info(app_id, key_id, opts = {})
|
367
|
+
if @api_client.config.debugging
|
368
|
+
@api_client.config.logger.debug "Calling API: AppApi.get_app_jwt ..."
|
369
|
+
end
|
370
|
+
# verify the required parameter 'app_id' is set
|
371
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app_jwt" if app_id.nil?
|
372
|
+
# verify the required parameter 'key_id' is set
|
373
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_app_jwt" if key_id.nil?
|
374
|
+
# resource path
|
375
|
+
local_var_path = "/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
376
|
+
|
377
|
+
# query parameters
|
378
|
+
query_params = {}
|
379
|
+
|
380
|
+
# header parameters
|
381
|
+
header_params = {}
|
382
|
+
# HTTP header 'Accept' (if needed)
|
383
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
384
|
+
# HTTP header 'Content-Type'
|
385
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
386
|
+
|
387
|
+
# form parameters
|
388
|
+
form_params = {}
|
389
|
+
|
390
|
+
# http body (model)
|
391
|
+
post_body = nil
|
392
|
+
auth_names = ['jwt']
|
393
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
394
|
+
:header_params => header_params,
|
395
|
+
:query_params => query_params,
|
396
|
+
:form_params => form_params,
|
397
|
+
:body => post_body,
|
398
|
+
:auth_names => auth_names,
|
399
|
+
:return_type => 'JwtResponse')
|
400
|
+
if @api_client.config.debugging
|
401
|
+
@api_client.config.logger.debug "API called: AppApi#get_app_jwt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
402
|
+
end
|
403
|
+
return data, status_code, headers
|
404
|
+
end
|
405
|
+
|
406
|
+
#
|
407
|
+
# Get the specified integration.
|
408
|
+
# @param app_id Identifies the app.
|
409
|
+
# @param integration_id Identifies the integration.
|
410
|
+
# @param [Hash] opts the optional parameters
|
411
|
+
# @return [IntegrationResponse]
|
412
|
+
def get_integration(app_id, integration_id, opts = {})
|
413
|
+
data, _status_code, _headers = get_integration_with_http_info(app_id, integration_id, opts)
|
414
|
+
return data
|
415
|
+
end
|
416
|
+
|
417
|
+
#
|
418
|
+
# Get the specified integration.
|
419
|
+
# @param app_id Identifies the app.
|
420
|
+
# @param integration_id Identifies the integration.
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
|
423
|
+
def get_integration_with_http_info(app_id, integration_id, opts = {})
|
424
|
+
if @api_client.config.debugging
|
425
|
+
@api_client.config.logger.debug "Calling API: AppApi.get_integration ..."
|
426
|
+
end
|
427
|
+
# verify the required parameter 'app_id' is set
|
428
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_integration" if app_id.nil?
|
429
|
+
# verify the required parameter 'integration_id' is set
|
430
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling AppApi.get_integration" if integration_id.nil?
|
431
|
+
# resource path
|
432
|
+
local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
433
|
+
|
434
|
+
# query parameters
|
435
|
+
query_params = {}
|
436
|
+
|
437
|
+
# header parameters
|
438
|
+
header_params = {}
|
439
|
+
# HTTP header 'Accept' (if needed)
|
440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
441
|
+
# HTTP header 'Content-Type'
|
442
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
443
|
+
|
444
|
+
# form parameters
|
445
|
+
form_params = {}
|
446
|
+
|
447
|
+
# http body (model)
|
448
|
+
post_body = nil
|
449
|
+
auth_names = ['jwt']
|
450
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
451
|
+
:header_params => header_params,
|
452
|
+
:query_params => query_params,
|
453
|
+
:form_params => form_params,
|
454
|
+
:body => post_body,
|
455
|
+
:auth_names => auth_names,
|
456
|
+
:return_type => 'IntegrationResponse')
|
457
|
+
if @api_client.config.debugging
|
458
|
+
@api_client.config.logger.debug "API called: AppApi#get_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
459
|
+
end
|
460
|
+
return data, status_code, headers
|
461
|
+
end
|
462
|
+
|
463
|
+
#
|
464
|
+
# Get the specified secret key.
|
465
|
+
# @param app_id Identifies the app.
|
466
|
+
# @param key_id Identifies the secret key.
|
467
|
+
# @param [Hash] opts the optional parameters
|
468
|
+
# @return [SecretKeyResponse]
|
469
|
+
def get_secret_key(app_id, key_id, opts = {})
|
470
|
+
data, _status_code, _headers = get_secret_key_with_http_info(app_id, key_id, opts)
|
471
|
+
return data
|
472
|
+
end
|
473
|
+
|
474
|
+
#
|
475
|
+
# Get the specified secret key.
|
476
|
+
# @param app_id Identifies the app.
|
477
|
+
# @param key_id Identifies the secret key.
|
478
|
+
# @param [Hash] opts the optional parameters
|
479
|
+
# @return [Array<(SecretKeyResponse, Fixnum, Hash)>] SecretKeyResponse data, response status code and response headers
|
480
|
+
def get_secret_key_with_http_info(app_id, key_id, opts = {})
|
481
|
+
if @api_client.config.debugging
|
482
|
+
@api_client.config.logger.debug "Calling API: AppApi.get_secret_key ..."
|
483
|
+
end
|
484
|
+
# verify the required parameter 'app_id' is set
|
485
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_secret_key" if app_id.nil?
|
486
|
+
# verify the required parameter 'key_id' is set
|
487
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_secret_key" if key_id.nil?
|
488
|
+
# resource path
|
489
|
+
local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
490
|
+
|
491
|
+
# query parameters
|
492
|
+
query_params = {}
|
493
|
+
|
494
|
+
# header parameters
|
495
|
+
header_params = {}
|
496
|
+
# HTTP header 'Accept' (if needed)
|
497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
498
|
+
# HTTP header 'Content-Type'
|
499
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
500
|
+
|
501
|
+
# form parameters
|
502
|
+
form_params = {}
|
503
|
+
|
504
|
+
# http body (model)
|
505
|
+
post_body = nil
|
506
|
+
auth_names = ['jwt']
|
507
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
508
|
+
:header_params => header_params,
|
509
|
+
:query_params => query_params,
|
510
|
+
:form_params => form_params,
|
511
|
+
:body => post_body,
|
512
|
+
:auth_names => auth_names,
|
513
|
+
:return_type => 'SecretKeyResponse')
|
514
|
+
if @api_client.config.debugging
|
515
|
+
@api_client.config.logger.debug "API called: AppApi#get_secret_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
516
|
+
end
|
517
|
+
return data, status_code, headers
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
# List all apps configured.
|
522
|
+
# @param [Hash] opts the optional parameters
|
523
|
+
# @option opts [Integer] :limit The number of records to return.
|
524
|
+
# @option opts [Integer] :offset The number of initial records to skip before picking records to return.
|
525
|
+
# @return [ListAppsResponse]
|
526
|
+
def list_apps(opts = {})
|
527
|
+
data, _status_code, _headers = list_apps_with_http_info(opts)
|
528
|
+
return data
|
529
|
+
end
|
530
|
+
|
531
|
+
#
|
532
|
+
# List all apps configured.
|
533
|
+
# @param [Hash] opts the optional parameters
|
534
|
+
# @option opts [Integer] :limit The number of records to return.
|
535
|
+
# @option opts [Integer] :offset The number of initial records to skip before picking records to return.
|
536
|
+
# @return [Array<(ListAppsResponse, Fixnum, Hash)>] ListAppsResponse data, response status code and response headers
|
537
|
+
def list_apps_with_http_info(opts = {})
|
538
|
+
if @api_client.config.debugging
|
539
|
+
@api_client.config.logger.debug "Calling API: AppApi.list_apps ..."
|
540
|
+
end
|
541
|
+
# resource path
|
542
|
+
local_var_path = "/apps"
|
543
|
+
|
544
|
+
# query parameters
|
545
|
+
query_params = {}
|
546
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
547
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
548
|
+
|
549
|
+
# header parameters
|
550
|
+
header_params = {}
|
551
|
+
# HTTP header 'Accept' (if needed)
|
552
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
553
|
+
# HTTP header 'Content-Type'
|
554
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
555
|
+
|
556
|
+
# form parameters
|
557
|
+
form_params = {}
|
558
|
+
|
559
|
+
# http body (model)
|
560
|
+
post_body = nil
|
561
|
+
auth_names = ['jwt']
|
562
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
563
|
+
:header_params => header_params,
|
564
|
+
:query_params => query_params,
|
565
|
+
:form_params => form_params,
|
566
|
+
:body => post_body,
|
567
|
+
:auth_names => auth_names,
|
568
|
+
:return_type => 'ListAppsResponse')
|
569
|
+
if @api_client.config.debugging
|
570
|
+
@api_client.config.logger.debug "API called: AppApi#list_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
571
|
+
end
|
572
|
+
return data, status_code, headers
|
573
|
+
end
|
574
|
+
|
575
|
+
#
|
576
|
+
# List the secret keys for the specified app.
|
577
|
+
# @param app_id Identifies the app.
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @return [ListSecretKeysResponse]
|
580
|
+
def list_secret_keys(app_id, opts = {})
|
581
|
+
data, _status_code, _headers = list_secret_keys_with_http_info(app_id, opts)
|
582
|
+
return data
|
583
|
+
end
|
584
|
+
|
585
|
+
#
|
586
|
+
# List the secret keys for the specified app.
|
587
|
+
# @param app_id Identifies the app.
|
588
|
+
# @param [Hash] opts the optional parameters
|
589
|
+
# @return [Array<(ListSecretKeysResponse, Fixnum, Hash)>] ListSecretKeysResponse data, response status code and response headers
|
590
|
+
def list_secret_keys_with_http_info(app_id, opts = {})
|
591
|
+
if @api_client.config.debugging
|
592
|
+
@api_client.config.logger.debug "Calling API: AppApi.list_secret_keys ..."
|
593
|
+
end
|
594
|
+
# verify the required parameter 'app_id' is set
|
595
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.list_secret_keys" if app_id.nil?
|
596
|
+
# resource path
|
597
|
+
local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
|
598
|
+
|
599
|
+
# query parameters
|
600
|
+
query_params = {}
|
601
|
+
|
602
|
+
# header parameters
|
603
|
+
header_params = {}
|
604
|
+
# HTTP header 'Accept' (if needed)
|
605
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
606
|
+
# HTTP header 'Content-Type'
|
607
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
608
|
+
|
609
|
+
# form parameters
|
610
|
+
form_params = {}
|
611
|
+
|
612
|
+
# http body (model)
|
613
|
+
post_body = nil
|
614
|
+
auth_names = ['jwt']
|
615
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
616
|
+
:header_params => header_params,
|
617
|
+
:query_params => query_params,
|
618
|
+
:form_params => form_params,
|
619
|
+
:body => post_body,
|
620
|
+
:auth_names => auth_names,
|
621
|
+
:return_type => 'ListSecretKeysResponse')
|
622
|
+
if @api_client.config.debugging
|
623
|
+
@api_client.config.logger.debug "API called: AppApi#list_secret_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
624
|
+
end
|
625
|
+
return data, status_code, headers
|
626
|
+
end
|
627
|
+
end
|
628
|
+
end
|