Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.76 KB

File metadata and controls

47 lines (32 loc) · 1.76 KB

Google Inc. logo

acceleratedmobilepageurl

This API contains a single method, batchGet. Call this method to retrieve the AMP URL (and equivalent AMP Cache URL) for given public URL(s).

Installation

$ npm install googleapis

Usage

All documentation and usage information can be found on GitHub.

Building a browser bundle

This library can be used in a browser. To prepare a single file bundle, clone the repository and run

$ cd src/apis/acceleratedmobilepageurl
$ npm install
$ npm run webpack

The generated bundle will be written to dist/acceleratedmobilepageurl.min.js. Use it from your HTML file:

<script src="/path/to/acceleratedmobilepageurl.min.js"></script>
<script>
const { acceleratedmobilepageurl, auth } = Acceleratedmobilepageurl;
</script>

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

Contributing

We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see CONTRIBUTING.

Questions/problems?

Crafted with ❤️ by the Google Node.js team