Skip to content

Latest commit

 

History

History
149 lines (103 loc) · 3.66 KB

LoginLogoutApi.md

File metadata and controls

149 lines (103 loc) · 3.66 KB

mpg_pure.LoginLogoutApi

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

get_user_using_get

AccountUserDbVO get_user_using_get(authorization)

getUser

Example

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)

Parameters

Name Type Description Notes
authorization str Authorization

Return type

AccountUserDbVO

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

login_using_post

object login_using_post(credentials)

login

Example

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)

Parameters

Name Type Description Notes
credentials str credentials

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

logout_using_get

str logout_using_get(authorization)

logout

Example

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)

Parameters

Name Type Description Notes
authorization str Authorization

Return type

str

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]