Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@newsteam/cosmos
Advanced tools
This library provides a convenient way for developers to interact with the CosMoS CMS API
Readme
Welcome to the CosMoS Client Library! This library provides a convenient way for developers to interact with the CosMoS CMS API, empowering them to seamlessly integrate CosMoS functionalities into their applications.
CosMoS is a robust news publishing CMS developed by News Team. With CosMoS, publishers can efficiently manage their digital news content, from article creation and management to user authentication and subscription handling. The CMS offers a comprehensive set of API endpoints, allowing developers to perform various tasks such as retrieving articles, searching for content, managing authors, and more.
For detailed documentation on the features and capabilities of the CosMoS CMS API, please refer to the CosMoS Documentation Site.
The CosMoS Client Library simplifies the process of interacting with the CosMoS API by providing a set of intuitive functions and utilities. By integrating this library into your project, you can leverage the full potential of the CosMoS CMS without the need to manage complex API requests manually.
To get started with the CosMoS Client Library, simply install it via NPM and follow the usage instructions provided in this documentation. Whether you're building a news website, corporate communications portal, content aggregator, or ANY other application that requires seamless access to digital news/media content, the CosMoS Client Library is here to streamline your development process.
npm install @newsteam/cosmos
To start using the CosMoS Client Library in your project, follow these simple steps:
NewsTeamCosmosAPI
class with the necessary configuration options. Here's an example:import { NewsTeamCosmosAPI } from "@newsteam/cosmos";
const api = new NewsTeamCosmosAPI({
consumer: "your_consumer_key",
host: "https://your.cosmos_instance.com",
});
const { data: articles, error: getArticlesError } = await api.articles.getAll({
limit: 20
});
if(getArticlesError){
// there was an error with this request
} else {
// articles has been returned sucessfully
console.log(articles.length);
}
That's it! You're now ready to integrate the CosMoS Client Library into your project and start leveraging the power of the CosMoS CMS API.
For more details on available modules, methods, and configuration options, please refer to the See CosMoS Documentation Site.
FAQs
This library provides a convenient way for developers to interact with the CosMoS CMS API
The npm package @newsteam/cosmos receives a total of 0 weekly downloads. As such, @newsteam/cosmos popularity was classified as not popular.
We found that @newsteam/cosmos demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.