1.0.8 • Published 2 years ago

nzm-client v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Newsman REST API Node Client

Newsman is a Smart Email Service Provider. We send newsletters on behalf of our customers.\ This is a very compact NodeJS wrapper and it uses Axios HTTP calls to our Newsman REST API.

See https://kb.newsman.com/api/ for details.\ You must set up a Newsman account and API key.

Usage sample

const Newsman = require('nzm-client')

const client = new Newsman.Client(some_user_id,some_api_key)

const getSegments = async () => {
    
        try {
          const segms = await client.callMethod('segment','all',{
            params: {
              list_id: some_list_id
            }
          })
          console.log(segms.data);
        } catch (error) {
          console.error(error)
        }
        
      }

getSegments()
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago