estuary-client.PinningApi
All URIs are relative to https://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
pinning_pins_get | GET /pinning/pins | List all pin status objects |
pinning_pins_pinid_delete | DELETE /pinning/pins/{pinid} | Delete a pinned object |
pinning_pins_pinid_get | GET /pinning/pins/{pinid} | Get a pin status object |
pinning_pins_pinid_post | POST /pinning/pins/{pinid} | Replace a pinned object |
pinning_pins_post | POST /pinning/pins | Add and pin object |
pinning_pins_get
pinning_pins_get()
List all pin status objects
This endpoint lists all pin status objects
Example
from __future__ import print_function
import time
import estuary-client
from estuary-client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = estuary-client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = estuary-client.PinningApi(estuary-client.ApiClient(configuration))
try:
# List all pin status objects
api_instance.pinning_pins_get()
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_get: %s\n" % e)
Parameters
This endpoint does not need any parameter.
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pinning_pins_pinid_delete
pinning_pins_pinid_delete(pinid)
Delete a pinned object
This endpoint deletes a pinned object.
Example
from __future__ import print_function
import time
import estuary-client
from estuary-client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = estuary-client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = estuary-client.PinningApi(estuary-client.ApiClient(configuration))
pinid = 'pinid_example' # str | Pin ID
try:
# Delete a pinned object
api_instance.pinning_pins_pinid_delete(pinid)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_pinid_delete: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | str | Pin ID |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pinning_pins_pinid_get
pinning_pins_pinid_get(pinid)
Get a pin status object
This endpoint returns a pin status object.
Example
from __future__ import print_function
import time
import estuary-client
from estuary-client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = estuary-client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = estuary-client.PinningApi(estuary-client.ApiClient(configuration))
pinid = 'pinid_example' # str | cid
try:
# Get a pin status object
api_instance.pinning_pins_pinid_get(pinid)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_pinid_get: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | str | cid |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pinning_pins_pinid_post
pinning_pins_pinid_post(pinid)
Replace a pinned object
This endpoint replaces a pinned object.
Example
from __future__ import print_function
import time
import estuary-client
from estuary-client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = estuary-client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = estuary-client.PinningApi(estuary-client.ApiClient(configuration))
pinid = 'pinid_example' # str | Pin ID
try:
# Replace a pinned object
api_instance.pinning_pins_pinid_post(pinid)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_pinid_post: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | str | Pin ID |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
pinning_pins_post
pinning_pins_post(cid, name)
Add and pin object
This endpoint adds a pin to the IPFS daemon.
Example
from __future__ import print_function
import time
import estuary-client
from estuary-client.rest import ApiException
from pprint import pprint
# Configure API key authorization: bearerAuth
configuration = estuary-client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = estuary-client.PinningApi(estuary-client.ApiClient(configuration))
cid = 'cid_example' # str | cid
name = 'name_example' # str | name
try:
# Add and pin object
api_instance.pinning_pins_post(cid, name)
except ApiException as e:
print("Exception when calling PinningApi->pinning_pins_post: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
cid | str | cid | |
name | str | name |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]