
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@ttab/api-client
Advanced tools
Browser-friendly JavaScript client for TT Nyhetsbyrån public APIs.
See the API documentation for more information.
const Api = require('@ttab/api-client')
const api = Api().token(process.env.TOKEN)
# searching
api.content('text').search({q: 'panda'}).then(function (res) {
console.log(res)
}).catch(function (err) {
console.error(err)
})
# streaming updates
var images = api.content('image').stream({q: 'panda'})
images.on('data', function (data) {
console.log(data)
})
images.on('error', function (err) {
console.error(err.message)
})
images.start()
# create a mobile notification
api.content('image').notification.mobile({
title: 'my notification',
q: 'panda'
}).then(function (res) {
console.log('created notification', res.id)
})
# create an email notification
api.content('image').notification.email({
title: 'my notification',
q: 'panda',
email: 'panda@example.com'
}).then(function (res) {
console.log('created notification', res.id)
})
# list all notifications
api.content('_all').notification.list().then(function (res) {
console.log('my notifications', res)
})
# delete a notification
api.content('_all').notification.delete(id)
# get user agreements
api.user.agreement().then(function (agrs) {
console.log('my user agreements', agrs)
})
# get the user profile
api.user.profile(['editorial', 'user']).get().then(function (profile) {
console.log(profile)
})
# update the user profile
api.user.profile(['editorial']).put({
editorial: true,
})
# register a mobile device
api.user.device(token).register({
type: 'ios-sandbox',
model: 'iPhone X'
}.then(function () {
console.log('registered!')
})
# unregister a mobile device
api.user.device(token).unregister().then(function () {
console.log('unregistered!')
})
FAQs
Browser-friendly TypeScript/JavaScript client for TT Nyhetsbyrån public APIs.
The npm package @ttab/api-client receives a total of 102 weekly downloads. As such, @ttab/api-client popularity was classified as not popular.
We found that @ttab/api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.