User Session
User Session
User session consists of calls that will help you to sign in and sign out of your Contentstack account.
login
The login method allows you to sign in to your Contentstack account.
| Name | Type | Description |
|---|---|---|
| email (required) | str | The email ID of the user |
| password (required) | str | The password of the user |
| tfa_token | str | Token generated by user’s authenticator app or received via SMS |
import contentstack_management client = contentstack_management.Client() client.login(username, password, tfa_token)
logout
The logout method allows you to sign out of your Contentstack account.
import contentstack_management client = contentstack_management.Client() client.logout()