title: Download ebook from Google Book API inside app
body: <p>How to download ebook inside my application from provided <code>downloadLink</code> in Book API JSON response?</p>
  
  <p>The sample response from Book API is as follows:</p>
  
  <pre><code>"accessInfo": {
      "country": "IN",
      "viewability": "ALL_PAGES",
      "embeddable": true,
      "publicDomain": false,
      "textToSpeechPermission": "ALLOWED",
      "epub": {
       "isAvailable": false
      },
      "pdf": {
       "isAvailable": true,
       "**downloadLink**": "http://books.google.co.in/books/download/Terms_of_Service.pdf?id=cxFSBQAAQBAJ&amp;hl=&amp;output=pdf&amp;sig=ACfU3U0yfti1vuzQEs2RaiKIoHUihOzMLw&amp;source=gbs_api"
      },
      "webReaderLink": "http://play.google.com/books/reader?id=cxFSBQAAQBAJ&amp;hl=&amp;printsec=frontcover&amp;source=gbs_api",
      "accessViewStatus": "FULL_PURCHASED",
      "quoteSharingAllowed": false
     }
  </code></pre>