Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sailthru-client

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sailthru-client - npm Package Compare versions

Comparing version 1.0.8 to 2.0.0

lib/README.md

10

package.json
{
"name": "sailthru-client",
"description": "Node.js client for Sailthru API",
"version": "1.0.8",
"version": "2.0.0",
"author": {
"name": "Prajwal Tuladhar",
"email": "praj@sailthru.com",
"url": "http://infynyxx.com"
"name": "George Liao",
"email": "gliao@sailthru.com",
"url": "http://www.sailthru.com"
},

@@ -19,3 +19,3 @@ "repository": {

"devDependencies": {
"nodeunit": ">=0.5.0",
"nodeunit": ">=0.8.4",
"coffee-script": ">=1.1.1"

@@ -22,0 +22,0 @@ },

@@ -5,13 +5,25 @@ sailthru-node-client

For installation instructions, documentation, and examples please visit:
[http://getstarted.sailthru.com/developers/api-libraries/node](http://getstarted.sailthru.com/developers/api-libraries/node)
<http://getstarted.sailthru.com/new-for-developers-overview/api-client-library/node-js-npm>
A simple client library to remotely access the `Sailthru REST API` as per [http://getstarted.sailthru.com/developers/api](http://getstarted.sailthru.com/developers/api)
A simple client library to remotely access the `Sailthru REST API` as per <http://getstarted.sailthru.com/new-for-developers-overview/api/api-overview/>
By default, it will make request in `JSON` format. `XML` format is not supported.
By default, it will make request in `JSON` format.
Development
-----------
```
npm install # to install dependencies locally
npm install -g coffee-script # to install coffee-script
cake test # for running tests
cake build # for building and generating JavaScript source
cake watch # for watching file changes
```
Installation
------------
### npm install sailthru-client
```
npm install sailthru-client
```

@@ -35,3 +47,3 @@ Examples

### Enable / Disable LOgging
### Enable / Disable Logging

@@ -52,8 +64,8 @@ ``` js

};
sailthru.apiPost('email', data, function(response, err) {
sailthru.apiPost('email', data, function(err, response) {
if (!err) {
console.log(response);
console.log(response);
} else {
console.log('Error!');
console.log(err);'
console.log(err);
}

@@ -74,3 +86,3 @@ });

var multipart_params = ['file']; // this is required to mark file as a multipart upload item'
sailthru.apiPost('job', data, function(response, err) {
sailthru.apiPost('job', data, function(err, response) {
console.log(response);

@@ -85,4 +97,4 @@ }, multipart_params);

var send_id = 'TE8EZ3-LmosnAgAA';
sailthru.apiGet('send', {send_id: send_id}, function(response, err) {
console.log(response);
sailthru.apiGet('send', {send_id: send_id}, function(err, response) {
console.log(response);
});

@@ -95,3 +107,3 @@ ```

var send_id = 'TE8EZ3-LmosnAgAA';
sailthru.apiDelete('send', {send_id: send_id}, function(response, err) {
sailthru.apiDelete('send', {send_id: send_id}, function(err, response) {
console.log(response);

@@ -117,3 +129,3 @@ });

};
sailthru.send(template, email, function(response, err) {
sailthru.send(template, email, function(err, response) {
if (err) {

@@ -136,3 +148,3 @@ console.log("Status Code: " + err.statusCode);

};
sailthru.multiSend(template, emails, function(response, err) {
sailthru.multiSend(template, emails, function(err, response) {
if (err) {

@@ -144,2 +156,2 @@ //Process error

}, options);
```
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc