Skip to content

mueschm/moltin.node.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moltin Library for Node.js and Common.js

example (for node):

var path = require('path');
var Moltin = require('moltin.js').server;

var moltin = new Moltin({
	publicId: '<YOUR MOLTIN APP ID>',

	// these are optional if you only want to make get requests
	// but are required to post any data
	clientSecret: '<Your CLIENT ID>',
	username: '<YOUR FORGE USERNAME>',
	password: '<YOUR FORGE PASSWORD>'
});

moltin.Authenticate(function() {
	moltin.Category.List(null, function(categories) {
		moltin.categories = categories.result;
		console.log('moltin ready');
	}, function(error) {
	    // Something went wrong...
	});
	
	// should things happen here?
}, function() {
	console.log('auth failed:', arguments);
});

module.exports = moltin;

About

node.js moltin library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 99.3%
  • JavaScript 0.7%