Comparing version 1.0.5 to 1.0.6
@@ -9,3 +9,4 @@ 'use strict'; | ||
Author: require('./resources/Author'), | ||
Feed: require('./resources/Feed') | ||
Feed: require('./resources/Feed'), | ||
Content: require('./resources/Content') | ||
} | ||
@@ -12,0 +13,0 @@ |
{ | ||
"name": "buttercms", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "ButterCMS API Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -38,2 +38,10 @@ # ButterCMS node.js client | ||
}); | ||
// Try our new custom content feature | ||
butter.content.retrieve(["homepage_html_title", "homepage_meta_description"]) | ||
.then(function(response) { | ||
console.log(response) | ||
}).catch(function(response) { | ||
console.log(response) | ||
}); | ||
``` | ||
@@ -59,2 +67,4 @@ | ||
* `retrieve(type[, params])` | ||
* content | ||
* `retrieve(keys)` | ||
@@ -61,0 +71,0 @@ ## Documentation |
26
test.js
var butter = require('./lib/butter')('b60a008584313ed21803780bc9208557b3b49fbb'); | ||
butter.post.list({page: 1, page_size: 10}) | ||
.then(function(response) { | ||
console.log(response) | ||
}).catch(function(response) { | ||
console.log(response) | ||
}); | ||
// butter.post.list({page: 1, page_size: 10}) | ||
// .then(function(response) { | ||
// console.log(response) | ||
// }).catch(function(response) { | ||
// console.log(response) | ||
// }); | ||
butter.post.search('import', {page: 1, page_size: 10}) | ||
.then(function(response) { | ||
console.log(response) | ||
}).catch(function(response) { | ||
console.log(response) | ||
}); | ||
@@ -23,1 +17,9 @@ // 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) | ||
}); |
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
6494
13
127
72