Skip to content

Instantly share code, notes, and snippets.

@machinefriendly
Created June 27, 2018 17:00
Show Gist options
  • Save machinefriendly/f6cd25b1b32feaab6a0ab3fc6110ce07 to your computer and use it in GitHub Desktop.
Save machinefriendly/f6cd25b1b32feaab6a0ab3fc6110ce07 to your computer and use it in GitHub Desktop.

Revisions

  1. machinefriendly created this gist Jun 27, 2018.
    53 changes: 53 additions & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    <html>
    <head>

    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>


    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>



    </head>
    <body>

    <div id="app">
    {{ info }}
    </div>

    <script id="jsbin-javascript">
    new Vue({
    el: '#app',
    data () {
    return {
    info: null
    }
    },
    mounted () {
    axios
    .get('https://api.coindesk.com/v1/bpi/currentprice.json')
    // .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
    .then(response => (this.info = response))
    }
    })
    </script>



    <script id="jsbin-source-javascript" type="text/javascript">

    new Vue({
    el: '#app',
    data () {
    return {
    info: null
    }
    },
    mounted () {
    axios
    .get('https://api.coindesk.com/v1/bpi/currentprice.json')
    // .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
    .then(response => (this.info = response))
    }
    })</script></body>
    </html>
    14 changes: 14 additions & 0 deletions jsbin.veqodam.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    new Vue({
    el: '#app',
    data () {
    return {
    info: null
    }
    },
    mounted () {
    axios
    .get('https://api.coindesk.com/v1/bpi/currentprice.json')
    // .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
    .then(response => (this.info = response))
    }
    })