Comparing version 1.0.9 to 1.0.10
@@ -12,3 +12,3 @@ 'use strict'; | ||
retrieve: function(slug, options) { | ||
return this._conn.get(`authors/${slug}`, options) | ||
return this._conn.get('authors/'+slug, options) | ||
} | ||
@@ -15,0 +15,0 @@ } |
@@ -12,3 +12,3 @@ 'use strict'; | ||
retrieve: function(slug, options) { | ||
return this._conn.get(`categories/${slug}`, options) | ||
return this._conn.get('categories/'+slug, options) | ||
} | ||
@@ -15,0 +15,0 @@ } |
@@ -11,3 +11,3 @@ 'use strict'; | ||
return this._conn.get(`content`, {keys: keys.join()}) | ||
return this._conn.get('content', {keys: keys.join()}) | ||
} | ||
@@ -14,0 +14,0 @@ } |
@@ -9,3 +9,3 @@ 'use strict'; | ||
retrieve: function(type, options) { | ||
return this._conn.get(`feeds/${type}`, options) | ||
return this._conn.get('feeds/'+type, options) | ||
} | ||
@@ -12,0 +12,0 @@ } |
@@ -12,3 +12,3 @@ 'use strict'; | ||
retrieve: function(slug, options) { | ||
return this._conn.get(`posts/${slug}`, options) | ||
return this._conn.get('posts/'+slug, options) | ||
}, | ||
@@ -19,3 +19,3 @@ search: function(query, options) { | ||
return this._conn.get(`search`, options) | ||
return this._conn.get('search', options) | ||
} | ||
@@ -22,0 +22,0 @@ } |
@@ -12,3 +12,3 @@ 'use strict'; | ||
retrieve: function(slug, options) { | ||
return this._conn.get(`tags/${slug}`, options) | ||
return this._conn.get('tags/'+slug, options) | ||
} | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "buttercms", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "ButterCMS API Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
36
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) | ||
}); | ||
@@ -17,15 +17,15 @@ butter.tag.list() | ||
// butter.post.retrieve("directly-import-pdfs-into-your-blog-post") | ||
// .then(function(response) { | ||
// console.log(response) | ||
// }).catch(function(response) { | ||
// console.log(response) | ||
// }); | ||
butter.post.retrieve("directly-import-pdfs-into-your-blog-post") | ||
.then(function(response) { | ||
console.log(response) | ||
}).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) | ||
// }); | ||
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
7594