github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/docs/AccountApi.md (about)

     1  # \AccountApi
     2  
     3  All URIs are relative to *http://localhost*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**GetMe**](AccountApi.md#GetMe) | **Get** /v2/me | ログイン中のユーザープロフィールおよび所属する企業、参加するグループの一覧を取得する
     8  
     9  
    10  
    11  ## GetMe
    12  
    13  > Me GetMe(ctx).Execute()
    14  
    15  ログイン中のユーザープロフィールおよび所属する企業、参加するグループの一覧を取得する
    16  
    17  
    18  
    19  ### Example
    20  
    21  ```go
    22  package main
    23  
    24  import (
    25      "context"
    26      "fmt"
    27      "os"
    28      openapiclient "./openapi"
    29  )
    30  
    31  func main() {
    32  
    33      configuration := openapiclient.NewConfiguration()
    34      api_client := openapiclient.NewAPIClient(configuration)
    35      resp, r, err := api_client.AccountApi.GetMe(context.Background()).Execute()
    36      if err.Error() != "" {
    37          fmt.Fprintf(os.Stderr, "Error when calling `AccountApi.GetMe``: %v\n", err)
    38          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    39      }
    40      // response from `GetMe`: Me
    41      fmt.Fprintf(os.Stdout, "Response from `AccountApi.GetMe`: %v\n", resp)
    42  }
    43  ```
    44  
    45  ### Path Parameters
    46  
    47  This endpoint does not need any parameter.
    48  
    49  ### Other Parameters
    50  
    51  Other parameters are passed through a pointer to a apiGetMeRequest struct via the builder pattern
    52  
    53  
    54  ### Return type
    55  
    56  [**Me**](Me.md)
    57  
    58  ### Authorization
    59  
    60  [bearerAuth](../README.md#bearerAuth)
    61  
    62  ### HTTP request headers
    63  
    64  - **Content-Type**: Not defined
    65  - **Accept**: application/json
    66  
    67  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    68  [[Back to Model list]](../README.md#documentation-for-models)
    69  [[Back to README]](../README.md)
    70