@robinpath/contentful
v0.1.1
Published
Contentful module for RobinPath.
Readme
@robinpath/contentful
Contentful module for RobinPath.
Why use this module?
The contentful module lets you:
- listEntries
- getEntry
- createEntry
- updateEntry
- deleteEntry
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/contentfulQuick Start
1. Set up credentials
contentful.setCredentials "your-credentials"2. listEntries
contentful.listEntriesAvailable Functions
| Function | Description |
|----------|-------------|
| contentful.setCredentials | Configure contentful credentials. |
| contentful.listEntries | listEntries |
| contentful.getEntry | getEntry |
| contentful.createEntry | createEntry |
| contentful.updateEntry | updateEntry |
| contentful.deleteEntry | deleteEntry |
| contentful.publishEntry | publishEntry |
| contentful.unpublishEntry | unpublishEntry |
| contentful.listAssets | listAssets |
| contentful.getAsset | getAsset |
| contentful.createAsset | createAsset |
| contentful.publishAsset | publishAsset |
| contentful.listContentTypes | listContentTypes |
| contentful.getContentType | getContentType |
| contentful.createContentType | createContentType |
| contentful.listEnvironments | listEnvironments |
| contentful.getSpace | getSpace |
| contentful.searchEntries | searchEntries |
| contentful.listLocales | listLocales |
| contentful.getWebhooks | getWebhooks |
| contentful.archiveEntry | archiveEntry |
Examples
listEntries
contentful.listEntriesgetEntry
contentful.getEntrycreateEntry
contentful.createEntryIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/contentful";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
contentful.setCredentials "your-credentials"
contentful.listEntries
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
