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 ?

What is Security Engineering? Part 2.

A broad overview of the ever-developing security engineering field; a domain that can feel intimidating to some software engineers. With Nie...

Contact Form

Name

Email *

Message *