How to use the lob.objects function in lob

To help you get started, we’ve selected a few lob examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github motdotla / retromail / task.js View on Github external
}, function(err, res) {
          var lob_address = res;

          lob.objects.create({
            name: output_path,
            file: "@"+output_path,
            setting_id: 100
          }, function(err, res) {
            var lob_object = res;

            lob.jobs.create({
              name:     output_path,
              from:     lob_address.id, 
              to:       lob_address.id,
              object1:  lob_object.id
            }, function(err, res) {
              console.log(err, res);
            });
          });
        });

lob

Lob API wrapper

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis