# EDropinAccounts.EaAccountsApi

All URIs are relative to *https://edropin-test.appspot.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**authenticatePassword**](EaAccountsApi.md#authenticatePassword) | **POST** /accounts/authenticate/password | Authenticate using email/password
[**getAccount**](EaAccountsApi.md#getAccount) | **GET** /accounts | Get Account
[**getMultipleAccounts**](EaAccountsApi.md#getMultipleAccounts) | **GET** /accounts/get-multi | Get multiple accounts [service only]
[**updateAccount**](EaAccountsApi.md#updateAccount) | **PUT** /accounts | Create/update existing account
[**updateAccountClaims**](EaAccountsApi.md#updateAccountClaims) | **PUT** /accounts/{accountId}/claims | Update account claims


<a name="authenticatePassword"></a>
# **authenticatePassword**
> EaAuthentication authenticatePassword(authProps)

Authenticate using email/password

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

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

var apiInstance = new EDropinAccounts.EaAccountsApi();

var authProps = new EDropinAccounts.EaPasswordAuthentication(); // EaPasswordAuthentication | Authentication values


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authProps** | [**EaPasswordAuthentication**](EaPasswordAuthentication.md)| Authentication values | 

### Return type

[**EaAuthentication**](EaAuthentication.md)

### Authorization

[ClientKey](../README.md#ClientKey)

### HTTP request headers

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

<a name="getAccount"></a>
# **getAccount**
> EaAccount getAccount()

Get Account

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

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

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

var apiInstance = new EDropinAccounts.EaAccountsApi();

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

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

### Return type

[**EaAccount**](EaAccount.md)

### Authorization

[Authorization](../README.md#Authorization), [ClientKey](../README.md#ClientKey)

### HTTP request headers

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

<a name="getMultipleAccounts"></a>
# **getMultipleAccounts**
> EaPagedAccount getMultipleAccounts(opts)

Get multiple accounts [service only]

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

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

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

var apiInstance = new EDropinAccounts.EaAccountsApi();

var opts = { 
  'accountIds': ["accountIds_example"] // [String] | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountIds** | [**[String]**](String.md)|  | [optional] 

### Return type

[**EaPagedAccount**](EaPagedAccount.md)

### Authorization

[ClientKey](../README.md#ClientKey), [ServiceKey](../README.md#ServiceKey)

### HTTP request headers

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

<a name="updateAccount"></a>
# **updateAccount**
> EaAccount updateAccount(accountProps)

Create/update existing account

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

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

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

var apiInstance = new EDropinAccounts.EaAccountsApi();

var accountProps = new EDropinAccounts.EaAccountUpdate(); // EaAccountUpdate | Account object that needs to be updated


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountProps** | [**EaAccountUpdate**](EaAccountUpdate.md)| Account object that needs to be updated | 

### Return type

[**EaAccount**](EaAccount.md)

### Authorization

[Authorization](../README.md#Authorization), [ClientKey](../README.md#ClientKey)

### HTTP request headers

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

<a name="updateAccountClaims"></a>
# **updateAccountClaims**
> EaAccount updateAccountClaims(accountId, claimProps)

Update account claims

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

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

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

var apiInstance = new EDropinAccounts.EaAccountsApi();

var accountId = "accountId_example"; // String | Account Id

var claimProps = new EDropinAccounts.EaClaims(); // EaClaims | Claims that need to be updated


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **accountId** | **String**| Account Id | 
 **claimProps** | [**EaClaims**](EaClaims.md)| Claims that need to be updated | 

### Return type

[**EaAccount**](EaAccount.md)

### Authorization

[AdminKey](../README.md#AdminKey), [ClientKey](../README.md#ClientKey)

### HTTP request headers

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

