All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
activate | GET /login/activate/{activation_code} | |
auth | GET /login/auth/{provider} | |
config | GET /login/config/{provider} | |
login | POST /login | |
recover | POST /login/recover | |
register | POST /login/register | |
reset_password | POST /login/reset-password | |
support | GET /login/support |
activate(activation_code)
import time
import ibutsu_client
from ibutsu_client.api import login_api
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
activation_code = "activation_code_example" # str | The activation code
# example passing only required values which don't have defaults set
try:
api_instance.activate(activation_code)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->activate: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
activation_code | str | The activation code |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
302 | Redirect the user to the login page | - |
404 | The activation code was not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
auth(provider)
import time
import ibutsu_client
from ibutsu_client.api import login_api
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
provider = "provider_example" # str | The login provider's configuration
# example passing only required values which don't have defaults set
try:
api_instance.auth(provider)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->auth: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
provider | str | The login provider's configuration |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Successful auth | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginConfig config(provider)
import time
import ibutsu_client
from ibutsu_client.api import login_api
from ibutsu_client.model.login_config import LoginConfig
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
provider = "provider_example" # str | The login provider's configuration
# example passing only required values which don't have defaults set
try:
api_response = api_instance.config(provider)
pprint(api_response)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
provider | str | The login provider's configuration |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A list of the login types supported by the backend | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginToken login()
import time
import ibutsu_client
from ibutsu_client.api import login_api
from ibutsu_client.model.login_token import LoginToken
from ibutsu_client.model.login_error import LoginError
from ibutsu_client.model.credentials import Credentials
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
credentials = Credentials(
email="[email protected]",
password="mysupersecretpassword",
) # Credentials | A login object (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.login(credentials=credentials)
pprint(api_response)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->login: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
credentials | Credentials | A login object | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The user was authenticated | - |
401 | There was an error when the user tried to log in | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
recover()
import time
import ibutsu_client
from ibutsu_client.api import login_api
from ibutsu_client.model.account_recovery import AccountRecovery
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
account_recovery = AccountRecovery(
email="[email protected]",
) # AccountRecovery | A user recovering their password (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.recover(account_recovery=account_recovery)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->recover: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
account_recovery | AccountRecovery | A user recovering their password | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
201 | An e-mail was sent to the user | - |
400 | There was an error when the user tried to recover their account | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
register()
import time
import ibutsu_client
from ibutsu_client.api import login_api
from ibutsu_client.model.login_error import LoginError
from ibutsu_client.model.account_registration import AccountRegistration
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
account_registration = AccountRegistration(
email="[email protected]",
password="supersecretpassword",
) # AccountRegistration | A user registering their account (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.register(account_registration=account_registration)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->register: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
account_registration | AccountRegistration | A user registering their account | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | The user was registered | - |
401 | There was an error when the user tried to log in | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
reset_password()
import time
import ibutsu_client
from ibutsu_client.api import login_api
from ibutsu_client.model.account_reset import AccountReset
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
account_reset = AccountReset(
activation_code="YjdmYWFkMTItNzkxZC00MjE4LTgwZGItOWFlOWM2Y2RhOTM5",
password="supersecretpassword",
) # AccountReset | A user resetting their password (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.reset_password(account_reset=account_reset)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->reset_password: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
account_reset | AccountReset | A user resetting their password | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
201 | The user's password was reset | - |
400 | There was an error when the user tried to reset their password | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginSupport support()
import time
import ibutsu_client
from ibutsu_client.api import login_api
from ibutsu_client.model.login_support import LoginSupport
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with ibutsu_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = login_api.LoginApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.support()
pprint(api_response)
except ibutsu_client.ApiException as e:
print("Exception when calling LoginApi->support: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A list of the login types supported by the backend | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]