# CorsLab.AccountApi

All URIs are relative to *http://localhost:57684*

Method | HTTP request | Description
------------- | ------------- | -------------
[**accountAddExternalLogin**](AccountApi.md#accountAddExternalLogin) | **POST** /api/Account/AddExternalLogin | 
[**accountChangePassword**](AccountApi.md#accountChangePassword) | **POST** /api/Account/ChangePassword | 
[**accountGetExternalLogin**](AccountApi.md#accountGetExternalLogin) | **GET** /api/Account/ExternalLogin | 
[**accountGetExternalLogins**](AccountApi.md#accountGetExternalLogins) | **GET** /api/Account/ExternalLogins | 
[**accountGetManageInfo**](AccountApi.md#accountGetManageInfo) | **GET** /api/Account/ManageInfo | 
[**accountGetUserInfo**](AccountApi.md#accountGetUserInfo) | **GET** /api/Account/UserInfo | 
[**accountLogout**](AccountApi.md#accountLogout) | **POST** /api/Account/Logout | 
[**accountRegister**](AccountApi.md#accountRegister) | **POST** /api/Account/Register | 
[**accountRegisterExternal**](AccountApi.md#accountRegisterExternal) | **POST** /api/Account/RegisterExternal | 
[**accountRemoveLogin**](AccountApi.md#accountRemoveLogin) | **POST** /api/Account/RemoveLogin | 
[**accountSetPassword**](AccountApi.md#accountSetPassword) | **POST** /api/Account/SetPassword | 


<a name="accountAddExternalLogin"></a>
# **accountAddExternalLogin**
> Object accountAddExternalLogin(model)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var model = new CorsLab.AddExternalLoginBindingModel(); // AddExternalLoginBindingModel | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**AddExternalLoginBindingModel**](AddExternalLoginBindingModel.md)|  | 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="accountChangePassword"></a>
# **accountChangePassword**
> Object accountChangePassword(model)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var model = new CorsLab.ChangePasswordBindingModel(); // ChangePasswordBindingModel | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**ChangePasswordBindingModel**](ChangePasswordBindingModel.md)|  | 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="accountGetExternalLogin"></a>
# **accountGetExternalLogin**
> Object accountGetExternalLogin(provider, opts)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var provider = "provider_example"; // String | 

var opts = { 
  'error': "error_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **provider** | **String**|  | 
 **error** | **String**|  | [optional] 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

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

<a name="accountGetExternalLogins"></a>
# **accountGetExternalLogins**
> [ExternalLoginViewModel] accountGetExternalLogins(returnUrl, opts)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var returnUrl = "returnUrl_example"; // String | 

var opts = { 
  'generateState': true // Boolean | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **returnUrl** | **String**|  | 
 **generateState** | **Boolean**|  | [optional] 

### Return type

[**[ExternalLoginViewModel]**](ExternalLoginViewModel.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="accountGetManageInfo"></a>
# **accountGetManageInfo**
> ManageInfoViewModel accountGetManageInfo(returnUrl, opts)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var returnUrl = "returnUrl_example"; // String | 

var opts = { 
  'generateState': true // Boolean | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **returnUrl** | **String**|  | 
 **generateState** | **Boolean**|  | [optional] 

### Return type

[**ManageInfoViewModel**](ManageInfoViewModel.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="accountGetUserInfo"></a>
# **accountGetUserInfo**
> UserInfoViewModel accountGetUserInfo()



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

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

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

### Return type

[**UserInfoViewModel**](UserInfoViewModel.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="accountLogout"></a>
# **accountLogout**
> Object accountLogout()



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

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

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

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

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

<a name="accountRegister"></a>
# **accountRegister**
> Object accountRegister(model)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var model = new CorsLab.RegisterBindingModel(); // RegisterBindingModel | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**RegisterBindingModel**](RegisterBindingModel.md)|  | 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="accountRegisterExternal"></a>
# **accountRegisterExternal**
> Object accountRegisterExternal(model)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var model = new CorsLab.RegisterExternalBindingModel(); // RegisterExternalBindingModel | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**RegisterExternalBindingModel**](RegisterExternalBindingModel.md)|  | 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="accountRemoveLogin"></a>
# **accountRemoveLogin**
> Object accountRemoveLogin(model)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var model = new CorsLab.RemoveLoginBindingModel(); // RemoveLoginBindingModel | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**RemoveLoginBindingModel**](RemoveLoginBindingModel.md)|  | 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="accountSetPassword"></a>
# **accountSetPassword**
> Object accountSetPassword(model)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.AccountApi();

var model = new CorsLab.SetPasswordBindingModel(); // SetPasswordBindingModel | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**SetPasswordBindingModel**](SetPasswordBindingModel.md)|  | 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

