Sha256: 733a7123abfe6fef6408e20d54f087e557398704ab030da1158399230460a1ab
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 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' # Configure Bearer authorization (JWT): bearerAuth config.access_token = 'YOUR_BEARER_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), [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phrase-2.5.0 | docs/UsersApi.md |