File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,13 @@ from pprint import pprint
44
44
45
45
# Note: This is hard coded for demo purposes only. Keep your access tokens secret!
46
46
# https://dev.clever.com/docs/security#section-security-best-practices
47
- clever.configuration.access_token = ' TEST_TOKEN'
47
+
48
+ # Configure OAuth2 access token for authorization: oauth
49
+ configuration = clever.Configuration()
50
+ configuration.access_token = ' YOUR_ACCESS_TOKEN'
51
+
48
52
# create an instance of the API class
49
- api_instance = clever.DataApi()
53
+ api_instance = clever.DataApi(clever.ApiClient(configuration) )
50
54
51
55
try :
52
56
api_response = api_instance.get_students()
Original file line number Diff line number Diff line change @@ -44,9 +44,13 @@ from pprint import pprint
44
44
45
45
# Note: This is hard coded for demo purposes only. Keep your access tokens secret!
46
46
# https://dev.clever.com/docs/security#section-security-best-practices
47
- clever.configuration.access_token = ' TEST_TOKEN'
47
+
48
+ # Configure OAuth2 access token for authorization: oauth
49
+ configuration = clever.Configuration()
50
+ configuration.access_token = ' YOUR_ACCESS_TOKEN'
51
+
48
52
# create an instance of the API class
49
- api_instance = clever.DataApi()
53
+ api_instance = clever.DataApi(clever.ApiClient(configuration) )
50
54
51
55
try :
52
56
api_response = api_instance.get_students()
You can’t perform that action at this time.
0 commit comments