Files
wlan-testing/libs/cloudapi/cloudsdk/docs/CustomerApi.md
2021-03-01 18:26:14 +05:30

2.7 KiB

swagger_client.CustomerApi

All URIs are relative to https://localhost:9091

Method HTTP request Description
get_customer_by_id GET /portal/customer Get Customer By Id
update_customer PUT /portal/customer Update Customer

get_customer_by_id

Customer get_customer_by_id(customer_id)

Get Customer By Id

Example

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


# create an instance of the API class
api_instance = swagger_client.CustomerApi(swagger_client.ApiClient(configuration))
customer_id = 56 # int | customer id

try:
    # Get Customer By Id
    api_response = api_instance.get_customer_by_id(customer_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->get_customer_by_id: %s\n" % e)

Parameters

Name Type Description Notes
customer_id int customer id

Return type

Customer

Authorization

tip_wlan_ts_auth

HTTP request headers

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

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

update_customer

Customer update_customer(body)

Update Customer

Example

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


# create an instance of the API class
api_instance = swagger_client.CustomerApi(swagger_client.ApiClient(configuration))
body = swagger_client.Customer() # Customer | customer info

try:
    # Update Customer
    api_response = api_instance.update_customer(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomerApi->update_customer: %s\n" % e)

Parameters

Name Type Description Notes
body Customer customer info

Return type

Customer

Authorization

tip_wlan_ts_auth

HTTP request headers

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

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