# MetashopApiV1.PasswordApi

All URIs are relative to *https://localhost/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**authPasswordGet**](PasswordApi.md#authPasswordGet) | **GET** /auth/password | Confirm Reset Password Token
[**authPasswordPost**](PasswordApi.md#authPasswordPost) | **POST** /auth/password | Get Link Reset Password From Email
[**authPasswordPut**](PasswordApi.md#authPasswordPut) | **PUT** /auth/password | Change Password


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

Confirm Reset Password Token

### Example
```javascript
var MetashopApiV1 = require('metashop_api_v1');

var apiInstance = new MetashopApiV1.PasswordApi();

var opts = { 
  'resetPasswordToken': "resetPasswordToken_example", // String | 
  'redirectUrl': "redirectUrl_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **resetPasswordToken** | **String**|  | [optional] 
 **redirectUrl** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

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

Get Link Reset Password From Email

### Example
```javascript
var MetashopApiV1 = require('metashop_api_v1');

var apiInstance = new MetashopApiV1.PasswordApi();

var opts = { 
  'email': "email_example", // String | 
  'redirectUrl': "redirectUrl_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **email** | **String**|  | [optional] 
 **redirectUrl** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="authPasswordPut"></a>
# **authPasswordPut**
> authPasswordPut(uid, client, accessToken, opts)

Change Password

### Example
```javascript
var MetashopApiV1 = require('metashop_api_v1');
var defaultClient = MetashopApiV1.ApiClient.instance;

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

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

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

var apiInstance = new MetashopApiV1.PasswordApi();

var uid = "uid_example"; // String | 

var client = "client_example"; // String | 

var accessToken = "accessToken_example"; // String | 

var opts = { 
  'password': "password_example", // String | 
  'passwordConfirmation': "passwordConfirmation_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.authPasswordPut(uid, client, accessToken, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **uid** | **String**|  | 
 **client** | **String**|  | 
 **accessToken** | **String**|  | 
 **password** | **String**|  | [optional] 
 **passwordConfirmation** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[access-token](../README.md#access-token), [client](../README.md#client), [uid](../README.md#uid)

### HTTP request headers

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

