User
User
User session consists of calls that will help you to sign in and sign out of your Contentstack account.
ForgotPassword
The Forgot password call sends a request for a temporary password to log in to an account in case a user has forgotten the login password.
| Name | Type | Description |
|---|---|---|
| email (required) | string | The email for the account that user has forgotten the login password |
using Contentstack.Management.Core;
using Contentstack.Management.Core.Models;
ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");
ContentstackResponse contentstackResponse = client.ForgotPassword("<EMAIL>");ForgotPasswordAsync
The Forgot password call sends a request for a temporary password to log in to an account in case a user has forgotten the login password.
| Name | Type | Description |
|---|---|---|
| email (required) | string | The email for the account that user has forgotten the login password |
using Contentstack.Management.Core;
using Contentstack.Management.Core.Models;
ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");
ContentstackResponse contentstackResponse = await client.ForgotPasswordAsync("<EMAIL>");ResetPassword
The Reset password call sends a request for resetting the password of your Contentstack account.
| Name | Type | Description |
|---|---|---|
| resetToken (required) | string | The reset password token send to email. |
| password (required) | string | The password for the account. |
| confirmPassword (required) | string | The confirm password for the account. |
using Contentstack.Management.Core;
using Contentstack.Management.Core.Models;
ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");
ContentstackResponse contentstackResponse = client.ResetPassword("<RESET_TOKEN>", "<PASSWORD>", "<CONFIRM_PASSWORD>");ResetPasswordAsync
The Reset password call sends a request for resetting the password of your Contentstack account.
| Name | Type | Description |
|---|---|---|
| resetToken (required) | string | The reset password token send to email. |
| password (required) | string | The password for the account. |
| confirmPassword (required) | string | The confirm password for the account. |
using Contentstack.Management.Core;
using Contentstack.Management.Core.Models;
ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");
ContentstackResponse contentstackResponse = await client.ResetPasswordAsync("<RESET_TOKEN>", "<PASSWORD>", "<CONFIRM_PASSWORD>");