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.
zimnews-api
Advanced tools
Readme
Official documentation available at https://zimnews-api.firebaseapp.com
Node.js
npm i --save zimnews-api
Browser
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/zimnews-api/index.js">
var ZimNews = require('zimnews-api'),
zn = new ZimNews("api_key");
import ZimNews from 'zimnews-api'
let zm = new ZimNews("api_key");
You can get your API Key from the documentation site.
Promise which returns an array of Stories.
Promise which returns an array of Sources.
Promise which returns an array of Categories.
Option | Required | Default |
---|---|---|
limit - number of items returned | No | 25 |
category - of stories to return. | No | All |
source - name of source to return. See docs for list of sources. | No | All |
(async ()=>{
let stories = await zm.getNews({limit:10,category:'Business'})
console.log(stories);
})()
zm.getNews({limit:10,category:'Entertainment'}).then(stories=>{
console.log(stories);
}).catch(e=>{
console.log(e);
})
FAQs
The Javascript SDK for the ZimNews API.
The npm package zimnews-api receives a total of 2 weekly downloads. As such, zimnews-api popularity was classified as not popular.
We found that zimnews-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.