11# nft_storage.NFTStorageAPI
22
3- All URIs are relative to * https://nft.storage/api *
3+ All URIs are relative to * https://api. nft.storage *
44
55Method | HTTP request | Description
66------------- | ------------- | -------------
@@ -29,10 +29,10 @@ from nft_storage.model.delete_response import DeleteResponse
2929from nft_storage.model.unauthorized_error_response import UnauthorizedErrorResponse
3030from nft_storage.model.forbidden_error_response import ForbiddenErrorResponse
3131from pprint import pprint
32- # Defining the host is optional and defaults to https://nft.storage/api
32+ # Defining the host is optional and defaults to https://api. nft.storage
3333# See configuration.py for a list of all supported configuration parameters.
3434configuration = nft_storage.Configuration(
35- host = " https://nft.storage/api "
35+ host = " https://api. nft.storage"
3636)
3737
3838# The client must configure the authentication and authorization parameters
@@ -108,10 +108,10 @@ from nft_storage.model.list_response import ListResponse
108108from nft_storage.model.unauthorized_error_response import UnauthorizedErrorResponse
109109from nft_storage.model.forbidden_error_response import ForbiddenErrorResponse
110110from pprint import pprint
111- # Defining the host is optional and defaults to https://nft.storage/api
111+ # Defining the host is optional and defaults to https://api. nft.storage
112112# See configuration.py for a list of all supported configuration parameters.
113113configuration = nft_storage.Configuration(
114- host = " https://nft.storage/api "
114+ host = " https://api. nft.storage"
115115)
116116
117117# The client must configure the authentication and authorization parameters
@@ -128,19 +128,26 @@ configuration = nft_storage.Configuration(
128128with nft_storage.ApiClient(configuration) as api_client:
129129 # Create an instance of the API class
130130 api_instance = nft_storage_api.NFTStorageAPI(api_client)
131+ before = dateutil_parser(' 2020-07-27T17:32:28Z' ) # datetime | Return results created before provided timestamp (optional)
132+ limit = 10 # int | Max records to return (optional) if omitted the server will use the default value of 10
131133
132- # example, this endpoint has no required or optional parameters
134+ # example passing only required values which don't have defaults set
135+ # and optional values
133136 try :
134137 # List all stored files
135- api_response = api_instance.list()
138+ api_response = api_instance.list(before = before, limit = limit )
136139 pprint(api_response)
137140 except nft_storage.ApiException as e:
138141 print (" Exception when calling NFTStorageAPI->list: %s \n " % e)
139142```
140143
141144
142145### Parameters
143- This endpoint does not need any parameter.
146+
147+ Name | Type | Description | Notes
148+ ------------- | ------------- | ------------- | -------------
149+ ** before** | ** datetime** | Return results created before provided timestamp | [ optional]
150+ ** limit** | ** int** | Max records to return | [ optional] if omitted the server will use the default value of 10
144151
145152### Return type
146153
@@ -185,10 +192,10 @@ from nft_storage.model.unauthorized_error_response import UnauthorizedErrorRespo
185192from nft_storage.model.get_response import GetResponse
186193from nft_storage.model.forbidden_error_response import ForbiddenErrorResponse
187194from pprint import pprint
188- # Defining the host is optional and defaults to https://nft.storage/api
195+ # Defining the host is optional and defaults to https://api. nft.storage
189196# See configuration.py for a list of all supported configuration parameters.
190197configuration = nft_storage.Configuration(
191- host = " https://nft.storage/api "
198+ host = " https://api. nft.storage"
192199)
193200
194201# The client must configure the authentication and authorization parameters
@@ -266,10 +273,10 @@ from nft_storage.model.upload_response import UploadResponse
266273from nft_storage.model.unauthorized_error_response import UnauthorizedErrorResponse
267274from nft_storage.model.forbidden_error_response import ForbiddenErrorResponse
268275from pprint import pprint
269- # Defining the host is optional and defaults to https://nft.storage/api
276+ # Defining the host is optional and defaults to https://api. nft.storage
270277# See configuration.py for a list of all supported configuration parameters.
271278configuration = nft_storage.Configuration(
272- host = " https://nft.storage/api "
279+ host = " https://api. nft.storage"
273280)
274281
275282# The client must configure the authentication and authorization parameters
0 commit comments