Skip to content

Instantly share code, notes, and snippets.

View Kinzi's full-sized avatar

Sebastian Kinzlinger Kinzi

View GitHub Profile
{
"commisions": [{
"id": 987654321, // OK
"network_id": "12345", // OK
"network_name": "ShareASale", // OK
"merchant_id": 843723, // OK, if supported by network API (almost all do)
"merchant_name": "DressLily", // OK, if supported by network API (almost all do)
"order_items": [{ // OK, if supported by network API.
"quantity": 1, // Most only have transactions info w/o "shopping cart" info.
@Kinzi
Kinzi / q-promise-examples.js
Created October 13, 2017 06:48
Basic q promises nodejs
var q = require('q');
// Single promise function
var promiseFunction = function(){
var deferred = q.defer();
deferred.resolve();
return deferred.promise;
};