Bark sdk for js.
npm install @jswork/bark-jssdk
import BarkJssdk from '@jswork/bark-jssdk';
// use instance
const sdk = new BarkJssdk({ sdkKey: 'YOUR_SDK_KEY'});
// notify
sdk.notify({ title: 'Tips', body: 'New message comming.' });
// OR use BarkJssdk.notify directly
BarkJssdk.notify({
sdkKey: 'YOUR_SDK_KEY',
title: 'Tips',
body: 'New message comming.'
});
Code released under the MIT license.