EstuaryClient.PinningApi
All URIs are relative to //api.estuary.tech/
Method | HTTP request | Description |
---|---|---|
pinningPinsGet | GET /pinning/pins | List all pin status objects |
pinningPinsPinidDelete | DELETE /pinning/pins/{pinid} | Delete a pinned object |
pinningPinsPinidGet | GET /pinning/pins/{pinid} | Get a pin status object |
pinningPinsPinidPost | POST /pinning/pins/{pinid} | Replace a pinned object |
pinningPinsPost | POST /pinning/pins | Add and pin object |
pinningPinsGet
TypesIpfsListPinStatusResponse pinningPinsGet()
List all pin status objects
This endpoint lists all pin status objects
Example
import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
let 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';
let apiInstance = new EstuaryClient.PinningApi();
apiInstance.pinningPinsGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
This endpoint does not need any parameter.
Return type
TypesIpfsListPinStatusResponse
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinningPinsPinidDelete
pinningPinsPinidDelete(pinid)
Delete a pinned object
This endpoint deletes a pinned object.
Example
import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
let 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';
let apiInstance = new EstuaryClient.PinningApi();
let pinid = "pinid_example"; // String | Pin ID
apiInstance.pinningPinsPinidDelete(pinid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | String | Pin ID |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinningPinsPinidGet
TypesIpfsPinStatusResponse pinningPinsPinidGet(pinid)
Get a pin status object
This endpoint returns a pin status object.
Example
import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
let 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';
let apiInstance = new EstuaryClient.PinningApi();
let pinid = "pinid_example"; // String | cid
apiInstance.pinningPinsPinidGet(pinid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | String | cid |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
pinningPinsPinidPost
TypesIpfsPinStatusResponse pinningPinsPinidPost(pinid, opts)
Replace a pinned object
This endpoint replaces a pinned object.
Example
import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
let 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';
let apiInstance = new EstuaryClient.PinningApi();
let pinid = "pinid_example"; // String | Pin ID
let opts = {
'body': "body_example" // String | Meta information of new pin
};
apiInstance.pinningPinsPinidPost(pinid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pinid | String | Pin ID | |
body | String | Meta information of new pin | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
pinningPinsPost
TypesIpfsPinStatusResponse pinningPinsPost(body)
Add and pin object
This endpoint adds a pin to the IPFS daemon.
Example
import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
let 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';
let apiInstance = new EstuaryClient.PinningApi();
let body = new EstuaryClient.TypesIpfsPin(); // TypesIpfsPin | Pin Body {cid:cid, name:name}
apiInstance.pinningPinsPost(body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | TypesIpfsPin | Pin Body {cid:cid, name:name} |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json