Skip to content

Commit f30d206

Browse files
committed
fix: decoding byte files in responses
1 parent 75c14d9 commit f30d206

File tree

225 files changed

+8448
-3467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+8448
-3467
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
4.3.1

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.8.1 (API v2.17.0)
4+
5+
* Fixes binary responses for MIDI export
6+
37
## 0.8.0 (API v2.17.0)
48

59
* Updated API from v2.6.0 to v2.17.0

docs/AccountApi.md

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,42 @@ Get details about the current authenticated User.
1616

1717
### Example
1818

19-
* OAuth Authentication (OAuth2):
19+
* OAuth Authentication (OAuth2):
2020
```python
2121
from __future__ import print_function
2222
import time
2323
import flat_api
2424
from flat_api.rest import ApiException
2525
from pprint import pprint
26+
# Defining the host is optional and defaults to https://api.flat.io/v2
27+
# See configuration.py for a list of all supported configuration parameters.
28+
configuration = flat_api.Configuration(
29+
host = "https://api.flat.io/v2"
30+
)
31+
32+
# The client must configure the authentication and authorization parameters
33+
# in accordance with the API server security policy.
34+
# Examples for each auth method are provided below, use the example that
35+
# satisfies your auth use case.
2636

2737
# Configure OAuth2 access token for authorization: OAuth2
28-
configuration = flat_api.Configuration()
38+
configuration = flat_api.Configuration(
39+
host = "https://api.flat.io/v2"
40+
)
2941
configuration.access_token = 'YOUR_ACCESS_TOKEN'
3042

31-
# create an instance of the API class
32-
api_instance = flat_api.AccountApi(flat_api.ApiClient(configuration))
33-
only_id = False # bool | Only return the user id (optional) (default to False)
34-
35-
try:
36-
# Get current user profile
37-
api_response = api_instance.get_authenticated_user(only_id=only_id)
38-
pprint(api_response)
39-
except ApiException as e:
40-
print("Exception when calling AccountApi->get_authenticated_user: %s\n" % e)
43+
# Enter a context with an instance of the API client
44+
with flat_api.ApiClient(configuration) as api_client:
45+
# Create an instance of the API class
46+
api_instance = flat_api.AccountApi(api_client)
47+
only_id = False # bool | Only return the user id (optional) (default to False)
48+
49+
try:
50+
# Get current user profile
51+
api_response = api_instance.get_authenticated_user(only_id=only_id)
52+
pprint(api_response)
53+
except ApiException as e:
54+
print("Exception when calling AccountApi->get_authenticated_user: %s\n" % e)
4155
```
4256

4357
### Parameters
@@ -59,5 +73,11 @@ Name | Type | Description | Notes
5973
- **Content-Type**: Not defined
6074
- **Accept**: application/json
6175

76+
### HTTP response details
77+
| Status code | Description | Response headers |
78+
|-------------|-------------|------------------|
79+
**200** | Current user details | - |
80+
**0** | Error | - |
81+
6282
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6383

docs/ApiAccessToken.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ApiAccessToken
22

3+
An API access token
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/AppScopes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# AppScopes
22

3+
Available scopes
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/Assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Assignment
22

3+
Assignment details
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/AssignmentCanvas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# AssignmentCanvas
22

3+
A Canvas LMS assignment
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/AssignmentCopy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# AssignmentCopy
22

3+
Assignment copy operation
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/AssignmentCreation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# AssignmentCreation
22

3+
Assignment creation details
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/AssignmentCreationGoogleClassroom.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# AssignmentCreationGoogleClassroom
22

3+
Google Classroom options for this assignment
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

0 commit comments

Comments
 (0)