title: Access 'Chrome Web Store API' from a Cloud Function
body: <p>I would like to access the 'Chrome Web Store API' from a Cloud Function. </p>
  
  <p><a href="https://developer.chrome.com/webstore/api_index#Licenses" rel="nofollow noreferrer">https://developer.chrome.com/webstore/api_index#Licenses</a></p>
  
  <p>Why?
  We are making a chrome extension, and would like to check to see if a user has purchased the extension (i.e. license) in the web store. The license information is available from the Chrome Web Store API. We could make the request to the Web Store API directly from the extension, but then there is a (uglyish) pop-up for the user requesting permission to access the API on their behalf, which isn't ideal. We want to instead make a Cloud Function endpoint, that when sent the userID, responds with true or a false, depending on whether the user has a valid license. The Cloud Function should be able to get the license data for any user on this URL: (<a href="https://www.googleapis.com/chromewebstore/v1.1/licenses/" rel="nofollow noreferrer">https://www.googleapis.com/chromewebstore/v1.1/licenses/</a>$appID/$userID).</p>
  
  <p>I have tried digging around for examples on how to do this. I think I need the equivalent of the Cloud Function version of the Google API Client Library, that handles authentication via oath2 or a service account.. but even then I don't see a way to set the URL for a GET request.</p>
  
  <p>Much appreciate any pointers or suggestions. </p>