@@ -66,6 +66,11 @@ configuration = swagger_client.Configuration()
66
66
configuration.api_key[' x-csrftoken' ] = ' YOUR_API_KEY'
67
67
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
68
68
# configuration.api_key_prefix['x-csrftoken'] = 'Bearer'
69
+ # Configure API key authorization: referer
70
+ configuration = swagger_client.Configuration()
71
+ configuration.api_key[' Referer' ] = ' YOUR_API_KEY'
72
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
73
+ # configuration.api_key_prefix['Referer'] = 'Bearer'
69
74
70
75
# create an instance of the API class
71
76
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
@@ -92,18 +97,85 @@ configuration = swagger_client.Configuration()
92
97
configuration.api_key[' x-csrftoken' ] = ' YOUR_API_KEY'
93
98
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
94
99
# configuration.api_key_prefix['x-csrftoken'] = 'Bearer'
100
+ # Configure API key authorization: referer
101
+ configuration = swagger_client.Configuration()
102
+ configuration.api_key[' Referer' ] = ' YOUR_API_KEY'
103
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
104
+ # configuration.api_key_prefix['Referer'] = 'Bearer'
95
105
96
106
# create an instance of the API class
97
107
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
98
- referer = ' referer_example' # str |
99
108
problem = ' problem_example' # str |
100
- body = swagger_client.Solution () # Solution | Solution to test (optional)
109
+ body = swagger_client.TestSubmission () # TestSubmission | Solution to test (optional)
101
110
102
111
try :
103
- api_response = api_instance.problems_problem_interpret_solution_post(referer, problem, body = body)
112
+ api_response = api_instance.problems_problem_interpret_solution_post(problem, body = body)
104
113
pprint(api_response)
105
114
except ApiException as e:
106
115
print (" Exception when calling DefaultApi->problems_problem_interpret_solution_post: %s \n " % e)
116
+
117
+ # Configure API key authorization: cookieCSRF
118
+ configuration = swagger_client.Configuration()
119
+ configuration.api_key[' csrftoken' ] = ' YOUR_API_KEY'
120
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
121
+ # configuration.api_key_prefix['csrftoken'] = 'Bearer'
122
+ # Configure API key authorization: cookieSession
123
+ configuration = swagger_client.Configuration()
124
+ configuration.api_key[' LEETCODE_SESSION' ] = ' YOUR_API_KEY'
125
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
126
+ # configuration.api_key_prefix['LEETCODE_SESSION'] = 'Bearer'
127
+ # Configure API key authorization: headerCSRF
128
+ configuration = swagger_client.Configuration()
129
+ configuration.api_key[' x-csrftoken' ] = ' YOUR_API_KEY'
130
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
131
+ # configuration.api_key_prefix['x-csrftoken'] = 'Bearer'
132
+ # Configure API key authorization: referer
133
+ configuration = swagger_client.Configuration()
134
+ configuration.api_key[' Referer' ] = ' YOUR_API_KEY'
135
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
136
+ # configuration.api_key_prefix['Referer'] = 'Bearer'
137
+
138
+ # create an instance of the API class
139
+ api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
140
+ problem = ' problem_example' # str |
141
+ body = swagger_client.Submission() # Submission | Solution to test (optional)
142
+
143
+ try :
144
+ api_response = api_instance.problems_problem_submit_post(problem, body = body)
145
+ pprint(api_response)
146
+ except ApiException as e:
147
+ print (" Exception when calling DefaultApi->problems_problem_submit_post: %s \n " % e)
148
+
149
+ # Configure API key authorization: cookieCSRF
150
+ configuration = swagger_client.Configuration()
151
+ configuration.api_key[' csrftoken' ] = ' YOUR_API_KEY'
152
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
153
+ # configuration.api_key_prefix['csrftoken'] = 'Bearer'
154
+ # Configure API key authorization: cookieSession
155
+ configuration = swagger_client.Configuration()
156
+ configuration.api_key[' LEETCODE_SESSION' ] = ' YOUR_API_KEY'
157
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
158
+ # configuration.api_key_prefix['LEETCODE_SESSION'] = 'Bearer'
159
+ # Configure API key authorization: headerCSRF
160
+ configuration = swagger_client.Configuration()
161
+ configuration.api_key[' x-csrftoken' ] = ' YOUR_API_KEY'
162
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
163
+ # configuration.api_key_prefix['x-csrftoken'] = 'Bearer'
164
+ # Configure API key authorization: referer
165
+ configuration = swagger_client.Configuration()
166
+ configuration.api_key[' Referer' ] = ' YOUR_API_KEY'
167
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
168
+ # configuration.api_key_prefix['Referer'] = 'Bearer'
169
+
170
+ # create an instance of the API class
171
+ api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
172
+ id = swagger_client.Id() # Id | Either submission id (int) or interpretation id (string)
173
+
174
+ try :
175
+ api_response = api_instance.submissions_detail_id_check_get(id )
176
+ pprint(api_response)
177
+ except ApiException as e:
178
+ print (" Exception when calling DefaultApi->submissions_detail_id_check_get: %s \n " % e)
107
179
```
108
180
109
181
## Documentation for API Endpoints
@@ -114,15 +186,26 @@ Class | Method | HTTP request | Description
114
186
------------ | ------------- | ------------- | -------------
115
187
* DefaultApi* | [ ** api_problems_topic_get** ] ( docs/DefaultApi.md#api_problems_topic_get ) | ** GET** /api/problems/{topic}/ |
116
188
* DefaultApi* | [ ** problems_problem_interpret_solution_post** ] ( docs/DefaultApi.md#problems_problem_interpret_solution_post ) | ** POST** /problems/{problem}/interpret_solution/ |
189
+ * DefaultApi* | [ ** problems_problem_submit_post** ] ( docs/DefaultApi.md#problems_problem_submit_post ) | ** POST** /problems/{problem}/submit/ |
190
+ * DefaultApi* | [ ** submissions_detail_id_check_get** ] ( docs/DefaultApi.md#submissions_detail_id_check_get ) | ** GET** /submissions/detail/{id}/check/ |
117
191
118
192
## Documentation For Models
119
193
194
+ - [ BaseSubmissionResult] ( docs/BaseSubmissionResult.md )
120
195
- [ Difficulty] ( docs/Difficulty.md )
196
+ - [ Id] ( docs/Id.md )
197
+ - [ InlineResponse200] ( docs/InlineResponse200.md )
121
198
- [ Interpretation] ( docs/Interpretation.md )
199
+ - [ OneOfid] ( docs/OneOfid.md )
200
+ - [ OneOfinlineResponse200] ( docs/OneOfinlineResponse200.md )
122
201
- [ Problems] ( docs/Problems.md )
123
- - [ Solution] ( docs/Solution.md )
124
202
- [ Stat] ( docs/Stat.md )
125
203
- [ StatStatusPair] ( docs/StatStatusPair.md )
204
+ - [ Submission] ( docs/Submission.md )
205
+ - [ SubmissionId] ( docs/SubmissionId.md )
206
+ - [ SubmissionResult] ( docs/SubmissionResult.md )
207
+ - [ TestSubmission] ( docs/TestSubmission.md )
208
+ - [ TestSubmissionResult] ( docs/TestSubmissionResult.md )
126
209
127
210
## Documentation For Authorization
128
211
@@ -145,6 +228,12 @@ Class | Method | HTTP request | Description
145
228
- ** API key parameter name** : x-csrftoken
146
229
- ** Location** : HTTP header
147
230
231
+ ## referer
232
+
233
+ - ** Type** : API key
234
+ - ** API key parameter name** : Referer
235
+ - ** Location** : HTTP header
236
+
148
237
149
238
## Author
150
239
0 commit comments