Skip to main content

estuary-client.PinningApi

All URIs are relative to https://api.estuary.tech

MethodHTTP requestDescription
pinning_pins_getGET /pinning/pinsList all pin status objects
pinning_pins_pinid_deleteDELETE /pinning/pins/{pinid}Delete a pinned object
pinning_pins_pinid_getGET /pinning/pins/{pinid}Get a pin status object
pinning_pins_pinid_postPOST /pinning/pins/{pinid}Replace a pinned object
pinning_pins_postPOST /pinning/pinsAdd 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

bearerAuth

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

NameTypeDescriptionNotes
pinidstrPin ID

Return type

void (empty response body)

Authorization

bearerAuth

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

NameTypeDescriptionNotes
pinidstrcid

Return type

void (empty response body)

Authorization

bearerAuth

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

NameTypeDescriptionNotes
pinidstrPin ID

Return type

void (empty response body)

Authorization

bearerAuth

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

NameTypeDescriptionNotes
cidstrcid
namestrname

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]