npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

notifly-data-wizard

v1.0.8

Published

notiFLY is a service that provides marketing push notifications for your company. With the powerful segment feature, you can filter out your target audience list using a GUI interface. This npm package enables you to easily achieve member data synchroniza

Downloads

3

Readme

NPM

notiFLY-data-wizard is a npm package designed to simplify the process of updating member data and orders for the notiFLY.

With this package, developers of our client company could easily update member information and orders without writing a lot of code.


Installation

To install notiFLY-data-wizard, use the following command:

npm install notifly-data-wizard

Usage

1. API Key :

You must obtain an API key from the notiFLY website to use the functions in this package.

2. import functions:
import {
    pushMember, updateMember, deleteMember,
    pushOrder, deleteOrder
} from "notifly-data-wizard";

1. pushMember

Use pushMember function to add new members to the notiFLY database. The input parameter is an object with member data in the following format:

{
  client_member_id: "String",
  name: "String",
  email: "String",
  gender: "m",
  birthday_year: 1970,
  birthday_month: 12,
  birthday_date: 5,
  city: "Taipei"
}

The client_member_id and email fields should be unique. After calling pushMember, you will receive a response with the member_id that you can use to update or delete member data.

const apikey = "your_api_key_here";
const memberbody = {
  client_member_id: "String",
  name: "String",
  email: "String",
  gender: "m",
  birthday_year: 1970,
  birthday_month: 12,
  birthday_date: 5,
  city: "Taipei",
};

await pushMember(memberbody, apikey);
2. updateMember

Use updateMember function to update member data in the notiFLY database. The input parameter is an object with the member_id and the key-value pairs for fields you attempt to update & their new value.

const apikey = "your_api_key_here";
const updateMemberBody = {
  id: "member_id_here",
  gender: "m",
  city: "berlin",
};

await updateMember(updateMemberBody, apikey);
3. deleteMember

Use deleteMember function to delete a member from the notiFLY database. The input parameter is an object with the member_id.

const apikey = "your_api_key_here";
const deleteMemberBody = {
  id: "member_id_here",
};

await deleteMember(deleteMemberBody, apikey);
4. pushOrder

Use pushOrder function to add new orders of certain member to the notiFLY database. The input parameter is an object with the member_id and order data in the following format:

{
  id: "member_id_here",
  order: {
    order_id: 3,
    date: "2022-12-12",
    amount: 100,
    product: ["pants", "dress"],
  },
}

Usage

const apikey = "your_api_key_here";
const orderBody = {
  id: "member_id_here",
  order: {
    order_id: 3,
    date: "2022-12-12",
    amount: 100,
    product: ["pants", "dress"],
  },
};

await pushOrder(orderBody, apikey);
5. deleteOrder

Use deleteOrder function to delete an order from the notiFLY database. The input parameter is an object with the member_id and order data in the following format:

const apikey = "your_api_key_here";
const deleteOrderBody = {
    id: "member_id_here",
    order: {
        order_id: 3,
        date: "2022-12-12",
        amount: 100,
        product: ["pants", "dress"],
    },
};

await deleteOrder(deleteOrderBody, apikey);