Skip to main content

EstuaryClient.PinningApi

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

MethodHTTP requestDescription
pinningPinsGetGET /pinning/pinsList all pin status objects
pinningPinsPinidDeleteDELETE /pinning/pins/{pinid}Delete a pinned object
pinningPinsPinidGetGET /pinning/pins/{pinid}Get a pin status object
pinningPinsPinidPostPOST /pinning/pins/{pinid}Replace a pinned object
pinningPinsPostPOST /pinning/pinsAdd and pin object
# **pinningPinsGet** > pinningPinsGet()

List all pin status objects

This endpoint lists all pin status objects

Example

var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

var apiInstance = new EstuaryClient.PinningApi();

var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.pinningPinsGet(callback);

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPinidDelete** > pinningPinsPinidDelete(pinid)

Delete a pinned object

This endpoint deletes a pinned object.

Example

var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

var apiInstance = new EstuaryClient.PinningApi();

var pinid = "pinid_example"; // String | Pin ID


var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.pinningPinsPinidDelete(pinid, callback);

Parameters

NameTypeDescriptionNotes
pinidStringPin ID

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPinidGet** > pinningPinsPinidGet(pinid)

Get a pin status object

This endpoint returns a pin status object.

Example

var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

var apiInstance = new EstuaryClient.PinningApi();

var pinid = "pinid_example"; // String | cid


var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.pinningPinsPinidGet(pinid, callback);

Parameters

NameTypeDescriptionNotes
pinidStringcid

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPinidPost** > pinningPinsPinidPost(pinid)

Replace a pinned object

This endpoint replaces a pinned object.

Example

var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

var apiInstance = new EstuaryClient.PinningApi();

var pinid = "pinid_example"; // String | Pin ID


var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.pinningPinsPinidPost(pinid, callback);

Parameters

NameTypeDescriptionNotes
pinidStringPin ID

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **pinningPinsPost** > pinningPinsPost(cid, name)

Add and pin object

This endpoint adds a pin to the IPFS daemon.

Example

var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';

var apiInstance = new EstuaryClient.PinningApi();

var cid = "cid_example"; // String | cid

var name = "name_example"; // String | name


var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.pinningPinsPost(cid, name, callback);

Parameters

NameTypeDescriptionNotes
cidStringcid
nameStringname

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

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