Blogger API Vuejs

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:

Kurniawan said...

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 ?

Edward Lance Lorilla said...

you mean this? https://beneficial-scorpion.glitch.me/
https://glitch.com/edit/#!/beneficial-scorpion?path=index.html:8:18

amar fauzi said...

how to make a refresh token if the token has expire automatically without authorize again ?

I Quit AeroMedLab

Watch now (2 mins) | Today is my last day at AeroMedLab ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *