File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -64,3 +64,4 @@ target/
6464
6565# Ipython Notebook
6666.ipynb_checkpoints
67+ temp
Original file line number Diff line number Diff line change 1- """Python Flask API Auth0 integration example
1+ """
2+ Python Flask API Auth0 integration example
23"""
34
45from functools import wraps
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2+ """
3+ Example demonstrating how to list users using python client
4+ """
25
3- import time
46from pprint import pprint
57from frontier_api import *
6- from frontier_api .apis .tags import user_api
7- from frontier_api .model .rpc_status import RpcStatus
8- from frontier_api .model .v1beta1_list_users_response import V1beta1ListUsersResponse
9- from frontier_api .model .v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse
8+ from frontier_api .api import user_api
9+ from frontier_api .models .v1beta1_list_users_response import V1beta1ListUsersResponse
1010
1111HOST = "http://127.0.0.1:7400"
1212
@@ -20,11 +20,11 @@ def fetch_users():
2020 # Enter a context with an instance of the API client
2121 with ApiClient (configuration ) as api_client :
2222 # Create an instance of the API class
23- api_instance = user_api .FrontierServiceListUsers (api_client )
23+ api_instance = user_api .UserApi (api_client )
2424 try :
2525 api_response = api_instance .frontier_service_list_users ()
26- assert isinstance (api_response . body , V1beta1ListUsersResponse )
27- pprint (api_response . body )
26+ assert isinstance (api_response , V1beta1ListUsersResponse )
27+ pprint (api_response )
2828 except ApiException as e :
2929 print ("Exception when calling user_api->FrontierServiceListUsers: %s\n " % e )
3030
You can’t perform that action at this time.
0 commit comments