
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
=================
Ionic API Client NPM Module. It uses Promises on requests. Compatible with Ionic v2 https://docs.ionic.io/api/endpoints/push.html
npm install ionic-api
var config = {
// https://apps.ionic.io/app/{APP_ID}/config/credentials
apiToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJjMjM1YWJmMy0zZWUyLTRlNzMtYWRjYS00N2VlNjAxZWU0MWYifQ.h_uKtDKhZiURSjCzi4GTDwjbGMuRsXPA3q_O86VY-vA'
}
var ionic = require('./ionic-api').init(config);
ionic.tokens
ionic.messages
ionic.notifications
// Getting tokens list
ionic.tokens.list().then((res) => {
// res: {meta:{}, data:{}}
// Filter out invalidated tokens
var tokens = res.data
.filter(a => a.invalidated === null)
.map(a => a.token);
// Creating notifications...
var notification = {
title: 'Testing title',
message: 'Message text...',
};
//https://docs.ionic.io/api/endpoints/push.html#post-notifications
var target = {
tokens: tokens,
// user_ids: ['something@mail.com']
};
// https://apps.ionic.io/app/{APP_ID}/config/credentials
var profile = 'IONIC_PROFILE';
return ionic.notifications.create(notification, target, profile).then(res => {
// Successful response
console.dir(res.data);
});
//console.dir(d);
}).catch(err => {
console.dir(err);
});
FAQs
API Client for Ionic Push Service
The npm package ionic-api receives a total of 5 weekly downloads. As such, ionic-api popularity was classified as not popular.
We found that ionic-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.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.