Sha256: 0d3b5b3d12f4ce2e5756795507fb61b4c226705a0d1273a2a573e21fd8482e51

Contents?: true

Size: 1.43 KB

Versions: 47

Compression:

Stored size: 1.43 KB

Contents

# Phrase::UsersApi

All URIs are relative to *https://api.phrase.com/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**show_user**](UsersApi.md#show_user) | **GET** /user | Show current User



## show_user

> CurrentUser show_user(opts)

Show current User

Show details for current User.

### Example

```ruby
# load the gem
require 'phrase'
# setup authorization
Phrase.configure do |config|
  # Configure HTTP basic authorization: Basic
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'

  # Configure API key authorization: Token
  config.api_key['Authorization'] = 'YOUR API KEY'
  config.api_key_prefix['Authorization'] = 'token'
end

api_instance = Phrase::UsersApi.new
opts = {
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
}

begin
  #Show current User
  result = api_instance.show_user(opts)
  pp result
rescue Phrase::ApiError => e
  puts "Exception when calling UsersApi->show_user: #{e}"
end
```

### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional] 

### Return type

Response<([**CurrentUser**](CurrentUser.md))>

### Authorization

[Basic](../README.md#Basic), [Token](../README.md#Token)

### HTTP request headers

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

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
phrase-3.7.1 docs/UsersApi.md
phrase-3.7.0 docs/UsersApi.md
phrase-3.6.0 docs/UsersApi.md
phrase-3.5.0 docs/UsersApi.md
phrase-3.4.0 docs/UsersApi.md
phrase-3.3.0 docs/UsersApi.md
phrase-3.2.1 docs/UsersApi.md
phrase-3.2.0 docs/UsersApi.md
phrase-3.1.1 docs/UsersApi.md
phrase-3.1.0 docs/UsersApi.md
phrase-3.0.0 docs/UsersApi.md
phrase-2.26.0 docs/UsersApi.md
phrase-2.25.0 docs/UsersApi.md
phrase-2.24.0 docs/UsersApi.md
phrase-2.23.0 docs/UsersApi.md
phrase-2.22.2 docs/UsersApi.md
phrase-2.22.1 docs/UsersApi.md
phrase-2.22.0 docs/UsersApi.md
phrase-2.21.0 docs/UsersApi.md
phrase-2.20.0 docs/UsersApi.md