@@ -15,7 +15,7 @@ Method | HTTP request | Description
15
15
16
16
### Example
17
17
18
- * Api Key Authentication (X-Api-Key ):
18
+ * Api Key Authentication (apikey ):
19
19
``` python
20
20
from __future__ import print_function
21
21
import time
@@ -34,18 +34,18 @@ configuration = sonarr.Configuration(
34
34
# Examples for each auth method are provided below, use the example that
35
35
# satisfies your auth use case.
36
36
37
- # Configure API key authorization: X-Api-Key
38
- configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
39
-
40
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
41
- # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
42
-
43
37
# Configure API key authorization: apikey
44
38
configuration.api_key[' apikey' ] = os.environ[" API_KEY" ]
45
39
46
40
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
47
41
# configuration.api_key_prefix['apikey'] = 'Bearer'
48
42
43
+ # Configure API key authorization: X-Api-Key
44
+ configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
45
+
46
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
47
+ # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
48
+
49
49
# Enter a context with an instance of the API client
50
50
with sonarr.ApiClient(configuration) as api_client:
51
51
# Create an instance of the API class
@@ -61,7 +61,7 @@ with sonarr.ApiClient(configuration) as api_client:
61
61
print (" Exception when calling AuthenticationApi->create_login: %s \n " % e)
62
62
```
63
63
64
- * Api Key Authentication (apikey ):
64
+ * Api Key Authentication (X-Api-Key ):
65
65
``` python
66
66
from __future__ import print_function
67
67
import time
@@ -80,18 +80,18 @@ configuration = sonarr.Configuration(
80
80
# Examples for each auth method are provided below, use the example that
81
81
# satisfies your auth use case.
82
82
83
- # Configure API key authorization: X-Api-Key
84
- configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
85
-
86
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
87
- # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
88
-
89
83
# Configure API key authorization: apikey
90
84
configuration.api_key[' apikey' ] = os.environ[" API_KEY" ]
91
85
92
86
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
93
87
# configuration.api_key_prefix['apikey'] = 'Bearer'
94
88
89
+ # Configure API key authorization: X-Api-Key
90
+ configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
91
+
92
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
93
+ # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
94
+
95
95
# Enter a context with an instance of the API client
96
96
with sonarr.ApiClient(configuration) as api_client:
97
97
# Create an instance of the API class
@@ -122,7 +122,7 @@ void (empty response body)
122
122
123
123
### Authorization
124
124
125
- [ X-Api-Key ] ( ../README.md#X-Api-Key ) , [ apikey ] ( ../README.md#apikey )
125
+ [ apikey ] ( ../README.md#apikey ) , [ X-Api-Key] ( ../README.md#X-Api-Key )
126
126
127
127
### HTTP request headers
128
128
@@ -143,7 +143,7 @@ void (empty response body)
143
143
144
144
### Example
145
145
146
- * Api Key Authentication (X-Api-Key ):
146
+ * Api Key Authentication (apikey ):
147
147
``` python
148
148
from __future__ import print_function
149
149
import time
@@ -162,18 +162,18 @@ configuration = sonarr.Configuration(
162
162
# Examples for each auth method are provided below, use the example that
163
163
# satisfies your auth use case.
164
164
165
- # Configure API key authorization: X-Api-Key
166
- configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
167
-
168
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
169
- # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
170
-
171
165
# Configure API key authorization: apikey
172
166
configuration.api_key[' apikey' ] = os.environ[" API_KEY" ]
173
167
174
168
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
175
169
# configuration.api_key_prefix['apikey'] = 'Bearer'
176
170
171
+ # Configure API key authorization: X-Api-Key
172
+ configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
173
+
174
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
175
+ # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
176
+
177
177
# Enter a context with an instance of the API client
178
178
with sonarr.ApiClient(configuration) as api_client:
179
179
# Create an instance of the API class
@@ -185,7 +185,7 @@ with sonarr.ApiClient(configuration) as api_client:
185
185
print (" Exception when calling AuthenticationApi->get_logout: %s \n " % e)
186
186
```
187
187
188
- * Api Key Authentication (apikey ):
188
+ * Api Key Authentication (X-Api-Key ):
189
189
``` python
190
190
from __future__ import print_function
191
191
import time
@@ -204,18 +204,18 @@ configuration = sonarr.Configuration(
204
204
# Examples for each auth method are provided below, use the example that
205
205
# satisfies your auth use case.
206
206
207
- # Configure API key authorization: X-Api-Key
208
- configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
209
-
210
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
211
- # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
212
-
213
207
# Configure API key authorization: apikey
214
208
configuration.api_key[' apikey' ] = os.environ[" API_KEY" ]
215
209
216
210
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
217
211
# configuration.api_key_prefix['apikey'] = 'Bearer'
218
212
213
+ # Configure API key authorization: X-Api-Key
214
+ configuration.api_key[' X-Api-Key' ] = os.environ[" API_KEY" ]
215
+
216
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
217
+ # configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
218
+
219
219
# Enter a context with an instance of the API client
220
220
with sonarr.ApiClient(configuration) as api_client:
221
221
# Create an instance of the API class
@@ -236,7 +236,7 @@ void (empty response body)
236
236
237
237
### Authorization
238
238
239
- [ X-Api-Key ] ( ../README.md#X-Api-Key ) , [ apikey ] ( ../README.md#apikey )
239
+ [ apikey ] ( ../README.md#apikey ) , [ X-Api-Key] ( ../README.md#X-Api-Key )
240
240
241
241
### HTTP request headers
242
242
0 commit comments