Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.43 KB

UsersApi.md

File metadata and controls

68 lines (45 loc) · 1.43 KB

Phrase::UsersApi

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

Method HTTP request Description
show_user GET /user Show current User

show_user

CurrentUser show_user(opts)

Show current User

Show details for current User.

Example

# 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)>

Authorization

Basic, Token

HTTP request headers

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