Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
118 lines (80 loc) · 3.2 KB

SessionInfoApi.md

File metadata and controls

executable file
·
118 lines (80 loc) · 3.2 KB

swagger_client.SessionInfoApi

All URIs are relative to https://checkout-api.reepay.com

Method HTTP request Description
get_session GET /v1/session_info/{id} Get session info
get_sessions GET /v1/session_info/{relation_type}/{handle} Get sessions by relation type and handle

get_session

SessionInfo get_session(id)

Get session info

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.SessionInfoApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | Session id

try:
    # Get session info
    api_response = api_instance.get_session(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SessionInfoApi->get_session: %s\n" % e)

Parameters

Name Type Description Notes
id str Session id

Return type

SessionInfo

Authorization

basicAuth

HTTP request headers

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

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

get_sessions

list[SessionInfo] get_sessions(relation_type, handle)

Get sessions by relation type and handle

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.SessionInfoApi(swagger_client.ApiClient(configuration))
relation_type = 'relation_type_example' # str | Relation type
handle = 'handle_example' # str | Relation handle

try:
    # Get sessions by relation type and handle
    api_response = api_instance.get_sessions(relation_type, handle)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SessionInfoApi->get_sessions: %s\n" % e)

Parameters

Name Type Description Notes
relation_type str Relation type
handle str Relation handle

Return type

list[SessionInfo]

Authorization

basicAuth

HTTP request headers

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

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