Skip to content

Instantly share code, notes, and snippets.

@sliminality
Created May 11, 2016 20:56
Show Gist options
  • Save sliminality/686cf7b07654678e6a3b1ecbdace5ea7 to your computer and use it in GitHub Desktop.
Save sliminality/686cf7b07654678e6a3b1ecbdace5ea7 to your computer and use it in GitHub Desktop.
queries codrops css reference using jam api
const request = require('request');
const url = "http://tympanus.net/codrops/css_reference/background-image";
const json_data = {
"title": "title",
"syntax": [{
"elem": ".ct-cssref-info pre:first-of-type",
"value": "text"
}],
"info": [{
"elem": ".ct-cssref-info ul li",
"value": "text"
}],
"properties": [{
"elem": ".ct-cssref-values dl dt",
"value": "text"
}],
"values": [{
"elem": ".ct-cssref-values dl dd",
"value": "text"
}]
};
request.post('http://www.jamapi.xyz/', { form: { url: url, json_data: JSON.stringify(json_data) } }, function(err, response, body) { console.log(body); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment