You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
# Returns a list of ApiApps that you currently have access to on your account
51
-
# @option opts [Integer] page (1) Which page number of the list to return.
52
-
# @option opts [Integer] page_size (5) Number of results for each page
51
+
# @option opts [Integer] page Sets the page number of the list to return. Defaults to 1. (optional)
52
+
# @option opts [Integer] page_size Determines the number of ApiApps returned per page. Defaults to 20. (optional)
53
53
#
54
54
# @return [HelloSign::Resource::ResourceArray]
55
55
#
@@ -65,12 +65,14 @@ def get_api_apps(opts={})
65
65
66
66
#
67
67
# Creates a new API Application on your account
68
-
# @option opts [String] name The name you want to assign to the ApiApp.
69
-
# @option opts [String] domain The domain name the ApiApp will be associated with.
70
-
# @option opts [String] callback_url (optional) The URL at which the ApiApp should receive event callbacks.
71
-
# @option opts [String] custom_logo_file (optional) An image file to use as a custom logo in embedded contexts. (Only applies to some API plans)
72
-
# @option opts [String] oauth[callback_url] (optional) The callback URL to be used for OAuth flows. (Required if oauth[scopes] is provided)
73
-
# @option opts [String] oauth[scopes] (optional) A comma-separated list of OAuth scopes to be granted to the app. (Required if oauth[callback_url] is provided)
68
+
# @option opts [String] name The name assigned to the ApiApp.
69
+
# @option opts [String] domain The domain associated with the ApiApp.
70
+
# @option opts [String] callback_url The URL that will receive callback events for the ApiApp. (optional)
71
+
# @option opts [String] custom_logo_file An image file to use as a custom logo in embedded workflows, if available in the API subscription. (optional)
72
+
# @option opts [String] oauth[callback_url] The callback URL to be used for OAuth flows. (optional)
73
+
# @option opts [String] oauth[scopes] A comma-separated list of OAuth scopes to be granted to the app. (optional)
74
+
# @option opts [String<Hash>] white_labeling_options Object with elements and values serialized to a string to customize the signer page, if available in the API subscription. (optional)
75
+
# @option opts [Boolean] options[can_insert_everywhere] Determines if signers can "Insert Everywhere" when signing a document. (optional)
74
76
#
75
77
# @return [HelloSign::Resource::ApiApp] newly created ApiApp object
76
78
#
@@ -81,14 +83,16 @@ def create_api_app(opts)
81
83
end
82
84
83
85
#
84
-
# Updates parameters for a specific API Application on your account, referenced by ID
85
-
# @oprion opts [String] client_id (REQUIRED) The ID of the app you want to update
86
-
# @option opts [String] name (optional) The name you want to assign to the ApiApp.
87
-
# @option opts [String] domain (optional) The domain name the ApiApp will be associated with.
88
-
# @option opts [String] callback_url (optional) The URL at which the ApiApp should receive event callbacks.
89
-
# @option opts [String] custom_logo_file (optional) An image file to use as a custom logo in embedded contexts. (Only applies to some API plans)
90
-
# @option opts [String] oauth[callback_url] (optional) The callback URL to be used for OAuth flows. (Required if oauth[scopes] is provided)
91
-
# @option opts [String] oauth[scopes] (optional) A comma-separated list of OAuth scopes to be granted to the app. (Required if oauth[callback_url] is provided)
86
+
# Updates settings for a specific ApiApp on your account
87
+
# @option opts [String] client_id The Client ID of the ApiApp you want to update.
88
+
# @option opts [String] name The name assigned to the ApiApp. (optional)
89
+
# @option opts [String] domain The domain associated with the ApiApp. (optional)
90
+
# @option opts [String] callback_url The URL that will receive callback events for the ApiApp. (optional)
91
+
# @option opts [String] custom_logo_file An image file to use as a custom logo in embedded workflows, if available in the API subscription. (optional)
92
+
# @option opts [String] oauth[callback_url] The callback URL to be used for OAuth flows. (optional)
93
+
# @option opts [String] oauth[scopes] A comma-separated list of OAuth scopes to be granted to the app. (optional)
94
+
# @option opts [String<Hash>] white_labeling_options Object with elements and values serialized to a string to customize the signer page, if available in the API subscription. (optional)
95
+
# @option opts [Boolean] options[can_insert_everywhere] Determines if signers can "Insert Everywhere" when signing a document. (optional)
92
96
#
93
97
# @return [HelloSign::Resource::ApiApp] an ApiApp object
94
98
#
@@ -101,10 +105,11 @@ def update_api_app(opts)
101
105
end
102
106
103
107
#
104
-
# Deletes an API App. Can only be invoked for apps you own.
108
+
# Deletes an ApiApp. Only available for ApiApps you own.
109
+
# @option opts [String] client_id The Client ID of the ApiApp you want to delete.
105
110
#
106
111
# @example
107
-
# result = @client.delete_api_app :client_id => 'hdialuhfilaudshfa'
112
+
# result = @client.delete_api_app :client_id => 'fa5c8a0b0f492d768749333ad6fcc214c111e967'
# Retrieves the edit url for an embedded template.
51
-
# @option opts [String] template_id The id of the template to get a edit url for
52
-
# @option opts [Integer] skip_signer_roles Whether editing signer roles should be skipped
53
-
# @option opts [Integer] skip_subject_message Whether editing subject/message should be skipped
54
-
# @option opts [Array<Hash>] merge_fields Merge fields that can be placed in the template
50
+
# Retrieves the edit_url for an embedded template.
51
+
# @option opts [Boolean] test_mode Indicates if this is a test Embedded Template. A boolean value is also accepted. Defaults to 0. (optional)
52
+
# @option opts [String] template_id The Template ID to retreive the embedded edit_url for.
53
+
# @option opts [Array<Hash>] cc_roles The CC roles that must be assigned when using the Embedded Template to create a SignatureRequest. (optional)
54
+
# @option opts [String<Array><Hash>] merge_fields List of fields that can be pre-populated by your application when using the Embedded Template to send a SignatureRequest. (optional)
55
+
# * :name (String) Merge field name
56
+
# * :type (String) Field type - either "text" or "checkbox"
57
+
# @option opts [Boolean] skip_signer_roles Removes the prompt to edit signer roles, if already provided. Defaults to 0. (optional)
58
+
# @option opts [Boolean] skip_subject_message Removes the prompt to edit the subject and message, if already provided. Defaults to 0. (optional)
55
59
#
56
60
# @return [HelloSign::Resource::Embedded] Returns an Embedded object
Copy file name to clipboardExpand all lines: lib/hello_sign/api/oauth.rb
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -27,31 +27,34 @@ module Api
27
27
28
28
#
29
29
# OAuth allows you to perform actions on behalf of other users after they grant you the authorization to do so.
30
-
# For example, you could send signature requests on behalf of your users. This page lays out the basic steps to do that.
31
-
# IMPORTANT
30
+
# For example, you could send signature requests on behalf of your users.
31
+
# For more information, see our OAuth API documentation (https://app.hellosign.com/api/oauthWalkthrough).
32
32
#
33
-
# With OAuth, you (the app owner) will be charged for all signature requests sent on behalf of other users via your app.
33
+
# IMPORTANT: With some OAuth scopes, you (the app owner) will be charged for all signature requests sent on behalf of other users via your app.
34
34
#
35
35
# @author [hellosign]
36
36
#
37
37
moduleOAuth
38
38
39
39
#
40
-
# Return the oath url where users can give permission for your application to perform actions on their behalf.
41
-
# @param state [String] used for security and must match throughout the flow for a given user.
40
+
# Returns the OAuth URL where users can give permission for your application to perform actions on their behalf.
41
+
#
42
+
# @param state [String] used for security and must match throughout the flow for a given user.
42
43
# It can be set to the value of your choice (preferably something random). You should verify it matches the expected value when validating the OAuth callback.
# Create new user and get their OAuth token. The user will receive an email asking them to confirm the access being granted. Your app will not be able to perform actions on behalf of this user until they confirm.
85
-
# @option opts [String] email_address new user email address
86
+
# Create new user and get their OAuth token. The user will receive an email asking them to confirm the access being granted.
87
+
# Your app will not be able to perform actions on behalf of this user until they confirm.
88
+
#
89
+
# @option opts [String] email_address New user email address.
0 commit comments