All URIs are relative to https://api.yousign.com
Method | HTTP request | Description |
---|---|---|
users_get | GET /users | List all Users |
users_id_delete | DELETE /users/{id} | Delete a User |
users_id_get | GET /users/{id} | Find a User by ID |
users_id_put | PUT /users/{id} | Update a User |
users_post | POST /users | Create a new User on Yousign application |
Array<UserOutput> users_get
List all Users
# load the gem
require 'yousign_client'
# setup authorization
YousignClient.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = YousignClient::UsersApi.new
begin
#List all Users
result = api_instance.users_get
p result
rescue YousignClient::ApiError => e
puts "Exception when calling UsersApi->users_get: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
users_id_delete(id)
Delete a User
# load the gem
require 'yousign_client'
# setup authorization
YousignClient.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = YousignClient::UsersApi.new
id = 'id_example' # String |
begin
#Delete a User
api_instance.users_id_delete(id)
rescue YousignClient::ApiError => e
puts "Exception when calling UsersApi->users_id_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
UserOutput users_id_get(id)
Find a User by ID
# load the gem
require 'yousign_client'
# setup authorization
YousignClient.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = YousignClient::UsersApi.new
id = 'id_example' # String |
begin
#Find a User by ID
result = api_instance.users_id_get(id)
p result
rescue YousignClient::ApiError => e
puts "Exception when calling UsersApi->users_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: application/json
- Accept: application/json
UserOutput users_id_put(idbody)
Update a User
# load the gem
require 'yousign_client'
# setup authorization
YousignClient.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = YousignClient::UsersApi.new
id = 'id_example' # String |
body = YousignClient::UserInput.new # UserInput |
begin
#Update a User
result = api_instance.users_id_put(idbody)
p result
rescue YousignClient::ApiError => e
puts "Exception when calling UsersApi->users_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
body | UserInput |
- Content-Type: Not defined
- Accept: application/json
UserOutput users_post(body)
Create a new User on Yousign application
# load the gem
require 'yousign_client'
# setup authorization
YousignClient.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = YousignClient::UsersApi.new
body = YousignClient::UserInput.new # UserInput |
begin
#Create a new User on Yousign application
result = api_instance.users_post(body)
p result
rescue YousignClient::ApiError => e
puts "Exception when calling UsersApi->users_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | UserInput |
- Content-Type: Not defined
- Accept: application/json