All URIs are relative to http://api.madana.io/rest
Method | HTTP request | Description |
---|---|---|
activateUser | GET /account/activation/{token} | |
createPasswordReset | POST /account/password | Sends an Password reset mail to the given MailAddress. |
requestVerificationMail | GET /account/verifymail | Used to request a new activation-mail for the user. |
updatePassword | PUT /account/password | Receives the Password reset and tries to set the provided password for the user. |
File activateUser(token)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.AccountServiceApi();
let token = "token_example"; // String |
apiInstance.activateUser(token, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
token | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/xml
File createPasswordReset(opts)
Sends an Password reset mail to the given MailAddress.
Sends an Password reset mail to the given MailAddress
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.AccountServiceApi();
let opts = {
'body': new MadanaApiclient.JsonMDNMailAddress() // JsonMDNMailAddress | - the MaiAddress under which the user has signed up
};
apiInstance.createPasswordReset(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | JsonMDNMailAddress | - the MaiAddress under which the user has signed up | [optional] |
File
No authorization required
- Content-Type: application/json
- Accept: application/json, application/xml
{String: Object} requestVerificationMail()
Used to request a new activation-mail for the user.
Used to request a new activation-mail for the user
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.AccountServiceApi();
apiInstance.requestVerificationMail((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
{String: Object}
No authorization required
- Content-Type: Not defined
- Accept: application/json
File updatePassword(opts)
Receives the Password reset and tries to set the provided password for the user.
Receives the Password reset and tries to set the provided password for the user. The Password will only be set if a valid token is provided
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.AccountServiceApi();
let opts = {
'body': new MadanaApiclient.JsonMDNPasswordReset() // JsonMDNPasswordReset | - the MDN_PasswordReset Object
};
apiInstance.updatePassword(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | JsonMDNPasswordReset | - the MDN_PasswordReset Object | [optional] |
File
No authorization required
- Content-Type: application/json
- Accept: application/json, application/xml