All URIs are relative to https://api.phrase.com/v2
Method | HTTP request | Description |
---|---|---|
show_user | GET /user | Show current User |
CurrentUser show_user(opts)
Show current User
Show details for current User.
# 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
Name | Type | Description | Notes |
---|---|---|---|
x_phrase_app_otp | String | Two-Factor-Authentication token (optional) | [optional] |
Response<(CurrentUser)>
- Content-Type: Not defined
- Accept: application/json