Skip to content

Instantly share code, notes, and snippets.

@baniol
Created April 6, 2014 00:09
Show Gist options
  • Save baniol/9999720 to your computer and use it in GitHub Desktop.
Save baniol/9999720 to your computer and use it in GitHub Desktop.
google drive api, spreadsheet
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<script>
// https://coderwall.com/p/duapqq
$.getJSON("http://cors.io/spreadsheets.google.com/feeds/list/0Agc0An9fYk3LdFN0MUhFX1drdmx4aU9WOThDeVdpRlE/od6/public/values?alt=json", function(data) {
console.log(data);
//first row "title" column
// console.log(data.feed.entry[0]['gsx$title']['$t']);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment