Sha256: 8b223a5d1c6d643992b2828a1075c7dc18aa4e993f4359ef86dfacd225734d35

Contents?: true

Size: 1.92 KB

Versions: 21

Compression:

Stored size: 1.92 KB

Contents

# CybridApiId::UserIdpApi

All URIs are relative to *https://id.sandbox.cybrid.app*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**create_user**](UserIdpApi.md#create_user) | **POST** /api/users | Create user |


## create_user

> <UserIdpModel> create_user(post_user_idp_model)

Create user

Creates a user.  

### Examples

```ruby
require 'time'
require 'cybrid_api_id_ruby'
# setup authorization
CybridApiId.configure do |config|
  # Configure Bearer authorization (JWT): BearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'

  # Configure OAuth2 access token for authorization: oauth2
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = CybridApiId::UserIdpApi.new
post_user_idp_model = CybridApiId::PostUserIdpModel.new({email: 'email_example'}) # PostUserIdpModel | 

begin
  # Create user
  result = api_instance.create_user(post_user_idp_model)
  p result
rescue CybridApiId::ApiError => e
  puts "Error when calling UserIdpApi->create_user: #{e}"
end
```

#### Using the create_user_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<UserIdpModel>, Integer, Hash)> create_user_with_http_info(post_user_idp_model)

```ruby
begin
  # Create user
  data, status_code, headers = api_instance.create_user_with_http_info(post_user_idp_model)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <UserIdpModel>
rescue CybridApiId::ApiError => e
  puts "Error when calling UserIdpApi->create_user_with_http_info: #{e}"
end
```

### Parameters

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **post_user_idp_model** | [**PostUserIdpModel**](PostUserIdpModel.md) |  |  |

### Return type

[**UserIdpModel**](UserIdpModel.md)

### Authorization

[BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cybrid_api_id_ruby-0.94.2 docs/UserIdpApi.md
cybrid_api_id_ruby-0.94.0 docs/UserIdpApi.md
cybrid_api_id_ruby-0.93.5 docs/UserIdpApi.md
cybrid_api_id_ruby-0.93.2 docs/UserIdpApi.md
cybrid_api_id_ruby-0.93.1 docs/UserIdpApi.md
cybrid_api_id_ruby-0.93.0 docs/UserIdpApi.md
cybrid_api_id_ruby-0.92.5 docs/UserIdpApi.md
cybrid_api_id_ruby-0.92.4 docs/UserIdpApi.md
cybrid_api_id_ruby-0.92.3 docs/UserIdpApi.md
cybrid_api_id_ruby-0.92.2 docs/UserIdpApi.md
cybrid_api_id_ruby-0.92.1 docs/UserIdpApi.md
cybrid_api_id_ruby-0.92.0 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.13 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.12 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.11 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.10 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.9 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.8 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.7 docs/UserIdpApi.md
cybrid_api_id_ruby-0.91.6 docs/UserIdpApi.md