Comparing version 1.0.6 to 1.0.7
@@ -8,2 +8,3 @@ 'use strict'; | ||
Category: require('./resources/Category'), | ||
Tag: require('./resources/Tag'), | ||
Author: require('./resources/Author'), | ||
@@ -10,0 +11,0 @@ Feed: require('./resources/Feed'), |
{ | ||
"name": "buttercms", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "ButterCMS API Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,6 @@ # ButterCMS node.js client | ||
## Documentation | ||
For a comprehensive list of examples, check out the [API documentation](https://buttercms.com/docs/api/). | ||
## Installation | ||
@@ -62,2 +66,5 @@ | ||
* `list([params])` | ||
* tag | ||
* `retrieve(slug[, params])` | ||
* `list([params])` | ||
* author | ||
@@ -64,0 +71,0 @@ * `retrieve(slug[, params])` |
18
test.js
@@ -10,2 +10,8 @@ var butter = require('./lib/butter')('b60a008584313ed21803780bc9208557b3b49fbb'); | ||
butter.tag.list() | ||
.then(function(response) { | ||
console.log(response) | ||
}).catch(function(response) { | ||
console.log(response) | ||
}); | ||
@@ -20,7 +26,7 @@ // butter.post.retrieve("directly-import-pdfs-into-your-blog-post") | ||
butter.content.retrieve(["abis_team", "homepage_headlinee"]) | ||
.then(function(response) { | ||
console.log(response.data.data) | ||
}).catch(function(response) { | ||
console.log(response) | ||
}); | ||
// butter.content.retrieve(["abis_team", "homepage_headlinee"]) | ||
// .then(function(response) { | ||
// console.log(response.data.data) | ||
// }).catch(function(response) { | ||
// console.log(response) | ||
// }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7139
14
147
79