# TrackMeApi.UsersApi

All URIs are relative to *https://trackme.lk/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getCurrentUser**](UsersApi.md#getCurrentUser) | **GET** /users/me | 
[**registerUsers**](UsersApi.md#registerUsers) | **POST** /users | 


<a name="getCurrentUser"></a>
# **getCurrentUser**
> User getCurrentUser()



Get information about currently logged in user

### Example
```javascript
var TrackMeApi = require('track_me_api');
var defaultClient = TrackMeApi.ApiClient.default;

// Configure API key authorization: TrackMe-Api-Key
var TrackMe-Api-Key = defaultClient.authentications['TrackMe-Api-Key'];
TrackMe-Api-Key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TrackMe-Api-Key.apiKeyPrefix = 'Token';

var apiInstance = new TrackMeApi.UsersApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCurrentUser(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**User**](User.md)

### Authorization

[TrackMe-Api-Key](../README.md#TrackMe-Api-Key)

### HTTP request headers

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

<a name="registerUsers"></a>
# **registerUsers**
> User registerUsers(body)



Register new user 

### Example
```javascript
var TrackMeApi = require('track_me_api');

var apiInstance = new TrackMeApi.UsersApi();

var body = new TrackMeApi.User(); // User | user to add to the system


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.registerUsers(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**User**](User.md)| user to add to the system | 

### Return type

[**User**](User.md)

### Authorization

No authorization required

### HTTP request headers

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

