All URIs are relative to https://pure.mpg.de/rest
Method | HTTP request | Description |
---|---|---|
get_user_using_get | GET /login/who | getUser |
login_using_post | POST /login | login |
logout_using_get | GET /logout | logout |
AccountUserDbVO get_user_using_get(authorization)
getUser
from __future__ import print_function
import time
import mpg_pure
from mpg_pure.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = mpg_pure.LoginLogoutApi()
authorization = 'authorization_example' # str | Authorization
try:
# getUser
api_response = api_instance.get_user_using_get(authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling LoginLogoutApi->get_user_using_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | Authorization |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object login_using_post(credentials)
login
from __future__ import print_function
import time
import mpg_pure
from mpg_pure.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = mpg_pure.LoginLogoutApi()
credentials = 'credentials_example' # str | credentials
try:
# login
api_response = api_instance.login_using_post(credentials)
pprint(api_response)
except ApiException as e:
print("Exception when calling LoginLogoutApi->login_using_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
credentials | str | credentials |
object
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str logout_using_get(authorization)
logout
from __future__ import print_function
import time
import mpg_pure
from mpg_pure.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = mpg_pure.LoginLogoutApi()
authorization = 'authorization_example' # str | Authorization
try:
# logout
api_response = api_instance.logout_using_get(authorization)
pprint(api_response)
except ApiException as e:
print("Exception when calling LoginLogoutApi->logout_using_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
authorization | str | Authorization |
str
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]