Created
May 11, 2016 20:56
-
-
Save sliminality/686cf7b07654678e6a3b1ecbdace5ea7 to your computer and use it in GitHub Desktop.
queries codrops css reference using jam api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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