Total Posts:{{bloggerData.posts.totalItems}}
new Vue({ el: '#app', data(){ return{ bloggerData: null } }, mounted(){ var vm = this vm.fetchBloggerApi() }, methods:{ fetchBloggerApi(){ var vm = this; axios.get('https://www.googleapis.com/blogger/v3/blogs/2050012838741546861?key=YOUR_API_KEYS') .then(function (response) { vm.bloggerData = response.data }) .catch(function (error) { console.log(error); }); } } })
3 comments:
hi, this is very helpful tutorial but can you help me, make list title with vue.js form post, and when we click the tittle will redirect to posting ?
you mean this? https://beneficial-scorpion.glitch.me/
https://glitch.com/edit/#!/beneficial-scorpion?path=index.html:8:18
how to make a refresh token if the token has expire automatically without authorize again ?
Post a Comment