turnkey_client 0.0.14 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +39 -0
- data/.rspec +2 -0
- data/.swagger-codegen/VERSION +1 -0
- data/.swagger-codegen-ignore +23 -0
- data/lib/turnkey_client/api/app_proof_api.rb +77 -0
- data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
- data/lib/turnkey_client/api/broadcasting_api.rb +251 -0
- data/lib/turnkey_client/api/default_api.rb +77 -0
- data/lib/turnkey_client/api/on_ramp_api.rb +290 -0
- data/lib/turnkey_client/api/policies_api.rb +58 -0
- data/lib/turnkey_client/api/send_transactions_api.rb +77 -0
- data/lib/turnkey_client/api/user_auth_api.rb +290 -0
- data/lib/turnkey_client/api/wallets_api.rb +58 -0
- data/lib/turnkey_client/models/activity.rb +13 -1
- data/lib/turnkey_client/models/activity_type.rb +23 -0
- data/lib/turnkey_client/models/app_proof.rb +255 -0
- data/lib/turnkey_client/models/approve_activity_request.rb +14 -4
- data/lib/turnkey_client/models/boot_proof.rb +315 -0
- data/lib/turnkey_client/models/boot_proof_response.rb +210 -0
- data/lib/turnkey_client/models/client_signature.rb +255 -0
- data/lib/turnkey_client/models/client_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -0
- data/lib/turnkey_client/models/create_api_keys_request.rb +14 -4
- data/lib/turnkey_client/models/create_authenticators_request.rb +14 -4
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_intent.rb +272 -0
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_invitations_request.rb +14 -4
- data/lib/turnkey_client/models/create_oauth2_credential_intent.rb +240 -0
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +298 -0
- data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +14 -4
- data/lib/turnkey_client/models/create_policies_request.rb +14 -4
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +6 -0
- data/lib/turnkey_client/models/create_policy_request.rb +14 -4
- data/lib/turnkey_client/models/create_private_key_tag_request.rb +14 -4
- data/lib/turnkey_client/models/create_private_keys_request.rb +14 -4
- data/lib/turnkey_client/models/create_read_only_session_request.rb +14 -4
- data/lib/turnkey_client/models/create_read_write_session_request.rb +14 -4
- data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +1 -1
- data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +14 -4
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +25 -5
- data/lib/turnkey_client/models/create_sub_organization_request.rb +14 -4
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +277 -0
- data/lib/turnkey_client/models/create_tvc_app_result.rb +258 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +346 -0
- data/lib/turnkey_client/models/create_tvc_deployment_result.rb +226 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_intent.rb +228 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_result.rb +213 -0
- data/lib/turnkey_client/models/create_user_tag_request.rb +14 -4
- data/lib/turnkey_client/models/create_users_request.rb +14 -4
- data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +15 -4
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +14 -4
- data/lib/turnkey_client/models/create_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/curve.rb +1 -0
- data/lib/turnkey_client/models/custom_revert_error.rb +218 -0
- data/lib/turnkey_client/models/data_v1_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/delete_api_keys_request.rb +14 -4
- data/lib/turnkey_client/models/delete_authenticators_request.rb +14 -4
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/delete_invitation_request.rb +14 -4
- data/lib/turnkey_client/models/delete_oauth2_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +298 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/delete_oauth_providers_request.rb +14 -4
- data/lib/turnkey_client/models/delete_policies_intent.rb +213 -0
- data/lib/turnkey_client/models/delete_policies_request.rb +298 -0
- data/lib/turnkey_client/models/delete_policies_result.rb +213 -0
- data/lib/turnkey_client/models/delete_policy_request.rb +14 -4
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +14 -4
- data/lib/turnkey_client/models/delete_private_keys_request.rb +14 -4
- data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +14 -4
- data/lib/turnkey_client/models/delete_sub_organization_request.rb +14 -4
- data/lib/turnkey_client/models/delete_user_tags_request.rb +14 -4
- data/lib/turnkey_client/models/delete_users_request.rb +14 -4
- data/lib/turnkey_client/models/delete_wallet_accounts_intent.rb +224 -0
- data/lib/turnkey_client/models/delete_wallet_accounts_request.rb +298 -0
- data/lib/turnkey_client/models/delete_wallet_accounts_result.rb +213 -0
- data/lib/turnkey_client/models/delete_wallets_request.rb +14 -4
- data/lib/turnkey_client/models/disable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
- data/lib/turnkey_client/models/email_auth_customization_params.rb +255 -0
- data/lib/turnkey_client/models/email_auth_intent_v3.rb +306 -0
- data/lib/turnkey_client/models/email_auth_request.rb +16 -6
- data/lib/turnkey_client/models/email_customization_params_v2.rb +240 -0
- data/lib/turnkey_client/models/enable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_raw_transaction_intent.rb +260 -0
- data/lib/turnkey_client/models/eth_send_raw_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +363 -0
- data/lib/turnkey_client/models/eth_send_transaction_request.rb +298 -0
- data/lib/turnkey_client/models/eth_send_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/export_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/export_wallet_account_request.rb +14 -4
- data/lib/turnkey_client/models/export_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/fiat_on_ramp_credential.rb +330 -0
- data/lib/turnkey_client/models/get_app_proofs_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_proofs_response.rb +212 -0
- data/lib/turnkey_client/models/get_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_gas_usage_request.rb +211 -0
- data/lib/turnkey_client/models/get_gas_usage_response.rb +241 -0
- data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_nonces_request.rb +261 -0
- data/lib/turnkey_client/models/get_nonces_response.rb +218 -0
- data/lib/turnkey_client/models/get_oauth2_credential_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -0
- data/lib/turnkey_client/models/get_on_ramp_transaction_status_request.rb +237 -0
- data/lib/turnkey_client/models/get_on_ramp_transaction_status_response.rb +211 -0
- data/lib/turnkey_client/models/get_send_transaction_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +240 -0
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +12 -1
- data/lib/turnkey_client/models/import_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/import_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +16 -5
- data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +14 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +14 -4
- data/lib/turnkey_client/models/init_import_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/init_import_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/init_otp_auth_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_auth_request.rb +16 -6
- data/lib/turnkey_client/models/init_otp_intent_v2.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +16 -6
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +37 -4
- data/lib/turnkey_client/models/init_user_email_recovery_intent_v2.rb +284 -0
- data/lib/turnkey_client/models/init_user_email_recovery_request.rb +16 -6
- data/lib/turnkey_client/models/intent.rb +211 -4
- data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/list_oauth2_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_oauth2_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/native_revert_error.rb +229 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +298 -0
- data/lib/turnkey_client/models/oauth2_authenticate_result.rb +211 -0
- data/lib/turnkey_client/models/oauth2_credential.rb +298 -0
- data/lib/turnkey_client/models/oauth2_provider.rb +27 -0
- data/lib/turnkey_client/models/oauth_login_request.rb +14 -4
- data/lib/turnkey_client/models/oauth_request.rb +14 -4
- data/lib/turnkey_client/models/otp_auth_request.rb +14 -4
- data/lib/turnkey_client/models/otp_login_intent.rb +14 -5
- data/lib/turnkey_client/models/otp_login_request.rb +14 -4
- data/lib/turnkey_client/models/payload_encoding.rb +1 -0
- data/lib/turnkey_client/models/recover_user_request.rb +14 -4
- data/lib/turnkey_client/models/reject_activity_request.rb +14 -4
- data/lib/turnkey_client/models/remove_organization_feature_request.rb +14 -4
- data/lib/turnkey_client/models/result.rb +175 -4
- data/lib/turnkey_client/models/revert_chain_entry.rb +253 -0
- data/lib/turnkey_client/models/set_organization_feature_request.rb +14 -4
- data/lib/turnkey_client/models/sign_raw_payload_request.rb +14 -4
- data/lib/turnkey_client/models/sign_raw_payloads_request.rb +14 -4
- data/lib/turnkey_client/models/sign_transaction_request.rb +14 -4
- data/lib/turnkey_client/models/signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +297 -0
- data/lib/turnkey_client/models/sol_send_transaction_request.rb +298 -0
- data/lib/turnkey_client/models/sol_send_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/stamp_login_request.rb +14 -4
- data/lib/turnkey_client/models/transaction_type.rb +2 -0
- data/lib/turnkey_client/models/tvc_manifest_approval.rb +226 -0
- data/lib/turnkey_client/models/tvc_operator_params.rb +226 -0
- data/lib/turnkey_client/models/tvc_operator_set_params.rb +250 -0
- data/lib/turnkey_client/models/tx_error.rb +218 -0
- data/lib/turnkey_client/models/unknown_revert_error.rb +218 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +368 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_intent.rb +277 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/update_oauth2_credential_intent.rb +255 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +298 -0
- data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/update_policy_request.rb +14 -4
- data/lib/turnkey_client/models/update_private_key_tag_request.rb +14 -4
- data/lib/turnkey_client/models/update_root_quorum_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_email_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_name_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_phone_number_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_tag_request.rb +14 -4
- data/lib/turnkey_client/models/update_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +241 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_result.rb +211 -0
- data/lib/turnkey_client/models/verify_otp_intent.rb +16 -5
- data/lib/turnkey_client/models/verify_otp_request.rb +14 -4
- data/lib/turnkey_client/models/wallet_account.rb +14 -5
- data/lib/turnkey_client/models/wallet_kit_settings_params.rb +230 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +98 -1
- data/turnkey_client.gemspec +1 -1
- metadata +128 -32
- data/turnkey_client-0.0.12.gem +0 -0
- data/turnkey_client-0.0.13.gem +0 -0
- data/turnkey_client-0.0.2.gem +0 -0
- data/turnkey_client-0.0.3.gem +0 -0
- data/turnkey_client-0.0.4.gem +0 -0
- data/turnkey_client-0.0.7.gem +0 -0
- data/turnkey_client-0.0.8.gem +0 -0
- data/turnkey_client-0.0.9.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d5671e438ba82d2f5b46634669fb20fc609a39abeb18b0f12c22f9f5614fc7b
|
|
4
|
+
data.tar.gz: e6d70a75d50cc280fe228072decb4d751566cac868ce76d8f1404517819ff935
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 489cd3696b768296de9b7a3a0672267beb5d8429a8331aa7498a4b453c153be63f38a4a362907ba1cc8e7c14998a184461ffa84021326d7276374afdc5a1162f
|
|
7
|
+
data.tar.gz: c6e609e128e68abbd6244137bb465bbebc7d2540513a1e01c11334ab85a599244409932d3418de8de913c74632eaa17f7f5c46117610c0f86521608d474bbb61
|
data/.gitignore
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
*.gem
|
|
5
|
+
*.rbc
|
|
6
|
+
/.config
|
|
7
|
+
/coverage/
|
|
8
|
+
/InstalledFiles
|
|
9
|
+
/pkg/
|
|
10
|
+
/spec/reports/
|
|
11
|
+
/spec/examples.txt
|
|
12
|
+
/test/tmp/
|
|
13
|
+
/test/version_tmp/
|
|
14
|
+
/tmp/
|
|
15
|
+
|
|
16
|
+
## Specific to RubyMotion:
|
|
17
|
+
.dat*
|
|
18
|
+
.repl_history
|
|
19
|
+
build/
|
|
20
|
+
|
|
21
|
+
## Documentation cache and generated files:
|
|
22
|
+
/.yardoc/
|
|
23
|
+
/_yardoc/
|
|
24
|
+
/doc/
|
|
25
|
+
/rdoc/
|
|
26
|
+
|
|
27
|
+
## Environment normalization:
|
|
28
|
+
/.bundle/
|
|
29
|
+
/vendor/bundle
|
|
30
|
+
/lib/bundler/man/
|
|
31
|
+
|
|
32
|
+
# for a library or gem, you might want to ignore these files since the code is
|
|
33
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
34
|
+
# Gemfile.lock
|
|
35
|
+
# .ruby-version
|
|
36
|
+
# .ruby-gemset
|
|
37
|
+
|
|
38
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
39
|
+
.rvmrc
|
data/.rspec
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.76
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Swagger Codegen Ignore
|
|
2
|
+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API Reference
|
|
3
|
+
|
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module TurnkeyClient
|
|
12
|
+
class AppProofApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# List App Proofs for an activity
|
|
19
|
+
# List the App Proofs for the given activity.
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [GetAppProofsResponse]
|
|
23
|
+
def get_app_proofs(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = get_app_proofs_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# List App Proofs for an activity
|
|
29
|
+
# List the App Proofs for the given activity.
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(GetAppProofsResponse, Integer, Hash)>] GetAppProofsResponse data, response status code and response headers
|
|
33
|
+
def get_app_proofs_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: AppProofApi.get_app_proofs ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppProofApi.get_app_proofs"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/query/list_app_proofs'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'GetAppProofsResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: AppProofApi#get_app_proofs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API Reference
|
|
3
|
+
|
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module TurnkeyClient
|
|
12
|
+
class BootProofApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# Get a specific boot proof
|
|
19
|
+
# Get the boot proof for a given ephemeral key.
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [BootProofResponse]
|
|
23
|
+
def get_boot_proof(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = get_boot_proof_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Get a specific boot proof
|
|
29
|
+
# Get the boot proof for a given ephemeral key.
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers
|
|
33
|
+
def get_boot_proof_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: BootProofApi.get_boot_proof ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BootProofApi.get_boot_proof"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/query/get_boot_proof'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'BootProofResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: BootProofApi#get_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
# Get the latest boot proof for an app
|
|
77
|
+
# Get the latest boot proof for a given enclave app name.
|
|
78
|
+
# @param body
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [BootProofResponse]
|
|
81
|
+
def get_latest_boot_proof(body, opts = {})
|
|
82
|
+
data, _status_code, _headers = get_latest_boot_proof_with_http_info(body, opts)
|
|
83
|
+
data
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Get the latest boot proof for an app
|
|
87
|
+
# Get the latest boot proof for a given enclave app name.
|
|
88
|
+
# @param body
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(BootProofResponse, Integer, Hash)>] BootProofResponse data, response status code and response headers
|
|
91
|
+
def get_latest_boot_proof_with_http_info(body, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: BootProofApi.get_latest_boot_proof ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'body' is set
|
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BootProofApi.get_latest_boot_proof"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/public/v1/query/get_latest_boot_proof'
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
109
|
+
# HTTP header 'Content-Type'
|
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
111
|
+
|
|
112
|
+
# form parameters
|
|
113
|
+
form_params = opts[:form_params] || {}
|
|
114
|
+
|
|
115
|
+
# http body (model)
|
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
117
|
+
|
|
118
|
+
return_type = opts[:return_type] || 'BootProofResponse'
|
|
119
|
+
|
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type)
|
|
128
|
+
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: BootProofApi#get_latest_boot_proof\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API Reference
|
|
3
|
+
|
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module TurnkeyClient
|
|
12
|
+
class BroadcastingApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# Submit a transaction intent for broadcasting.
|
|
19
|
+
# Submit a transaction intent describing a transaction you would like to broadcast.
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [ActivityResponse]
|
|
23
|
+
def eth_send_transaction(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = eth_send_transaction_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Submit a transaction intent for broadcasting.
|
|
29
|
+
# Submit a transaction intent describing a transaction you would like to broadcast.
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
33
|
+
def eth_send_transaction_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: BroadcastingApi.eth_send_transaction ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BroadcastingApi.eth_send_transaction"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/submit/eth_send_transaction'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: BroadcastingApi#eth_send_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
# Get gas usage and limits.
|
|
77
|
+
# Get gas usage and gas limits for either the parent organization or a sub-organization.
|
|
78
|
+
# @param body
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [GetGasUsageResponse]
|
|
81
|
+
def get_gas_usage(body, opts = {})
|
|
82
|
+
data, _status_code, _headers = get_gas_usage_with_http_info(body, opts)
|
|
83
|
+
data
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Get gas usage and limits.
|
|
87
|
+
# Get gas usage and gas limits for either the parent organization or a sub-organization.
|
|
88
|
+
# @param body
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(GetGasUsageResponse, Integer, Hash)>] GetGasUsageResponse data, response status code and response headers
|
|
91
|
+
def get_gas_usage_with_http_info(body, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: BroadcastingApi.get_gas_usage ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'body' is set
|
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BroadcastingApi.get_gas_usage"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/public/v1/query/get_gas_usage'
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
109
|
+
# HTTP header 'Content-Type'
|
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
111
|
+
|
|
112
|
+
# form parameters
|
|
113
|
+
form_params = opts[:form_params] || {}
|
|
114
|
+
|
|
115
|
+
# http body (model)
|
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
117
|
+
|
|
118
|
+
return_type = opts[:return_type] || 'GetGasUsageResponse'
|
|
119
|
+
|
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type)
|
|
128
|
+
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: BroadcastingApi#get_gas_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
134
|
+
# Get nonces for an address.
|
|
135
|
+
# Get nonce values for an address on a given network. Can fetch the standard on-chain nonce and/or the gas station nonce used for sponsored transactions.
|
|
136
|
+
# @param body
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [GetNoncesResponse]
|
|
139
|
+
def get_nonces(body, opts = {})
|
|
140
|
+
data, _status_code, _headers = get_nonces_with_http_info(body, opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Get nonces for an address.
|
|
145
|
+
# Get nonce values for an address on a given network. Can fetch the standard on-chain nonce and/or the gas station nonce used for sponsored transactions.
|
|
146
|
+
# @param body
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(GetNoncesResponse, Integer, Hash)>] GetNoncesResponse data, response status code and response headers
|
|
149
|
+
def get_nonces_with_http_info(body, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: BroadcastingApi.get_nonces ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'body' is set
|
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BroadcastingApi.get_nonces"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/public/v1/query/get_nonces'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
175
|
+
|
|
176
|
+
return_type = opts[:return_type] || 'GetNoncesResponse'
|
|
177
|
+
|
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
180
|
+
:header_params => header_params,
|
|
181
|
+
:query_params => query_params,
|
|
182
|
+
:form_params => form_params,
|
|
183
|
+
:body => post_body,
|
|
184
|
+
:auth_names => auth_names,
|
|
185
|
+
:return_type => return_type)
|
|
186
|
+
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: BroadcastingApi#get_nonces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
# Submit a transaction intent for broadcasting.
|
|
193
|
+
# Submit a transaction intent describing a transaction you would like to broadcast.
|
|
194
|
+
# @param body
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [ActivityResponse]
|
|
197
|
+
def sol_send_transaction(body, opts = {})
|
|
198
|
+
data, _status_code, _headers = sol_send_transaction_with_http_info(body, opts)
|
|
199
|
+
data
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Submit a transaction intent for broadcasting.
|
|
203
|
+
# Submit a transaction intent describing a transaction you would like to broadcast.
|
|
204
|
+
# @param body
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
207
|
+
def sol_send_transaction_with_http_info(body, opts = {})
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug 'Calling API: BroadcastingApi.sol_send_transaction ...'
|
|
210
|
+
end
|
|
211
|
+
# verify the required parameter 'body' is set
|
|
212
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
213
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BroadcastingApi.sol_send_transaction"
|
|
214
|
+
end
|
|
215
|
+
# resource path
|
|
216
|
+
local_var_path = '/public/v1/submit/sol_send_transaction'
|
|
217
|
+
|
|
218
|
+
# query parameters
|
|
219
|
+
query_params = opts[:query_params] || {}
|
|
220
|
+
|
|
221
|
+
# header parameters
|
|
222
|
+
header_params = opts[:header_params] || {}
|
|
223
|
+
# HTTP header 'Accept' (if needed)
|
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
225
|
+
# HTTP header 'Content-Type'
|
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
227
|
+
|
|
228
|
+
# form parameters
|
|
229
|
+
form_params = opts[:form_params] || {}
|
|
230
|
+
|
|
231
|
+
# http body (model)
|
|
232
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
233
|
+
|
|
234
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
235
|
+
|
|
236
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
237
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
238
|
+
:header_params => header_params,
|
|
239
|
+
:query_params => query_params,
|
|
240
|
+
:form_params => form_params,
|
|
241
|
+
:body => post_body,
|
|
242
|
+
:auth_names => auth_names,
|
|
243
|
+
:return_type => return_type)
|
|
244
|
+
|
|
245
|
+
if @api_client.config.debugging
|
|
246
|
+
@api_client.config.logger.debug "API called: BroadcastingApi#sol_send_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
|
+
end
|
|
248
|
+
return data, status_code, headers
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API Reference
|
|
3
|
+
|
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module TurnkeyClient
|
|
12
|
+
class DefaultApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# Get OAuth 2.0 credential
|
|
19
|
+
# Get details about an OAuth 2.0 credential.
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [GetOauth2CredentialResponse]
|
|
23
|
+
def get_oauth2_credential(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = get_oauth2_credential_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Get OAuth 2.0 credential
|
|
29
|
+
# Get details about an OAuth 2.0 credential.
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(GetOauth2CredentialResponse, Integer, Hash)>] GetOauth2CredentialResponse data, response status code and response headers
|
|
33
|
+
def get_oauth2_credential_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_oauth2_credential ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.get_oauth2_credential"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/query/get_oauth2_credential'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'GetOauth2CredentialResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|