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).
$ npm install googleapis
All documentation and usage information can be found on GitHub.
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>
This library is licensed under Apache 2.0. Full license text is available in LICENSE.
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see CONTRIBUTING.
- Ask your development related questions on StackOverflow.
- If you've found an bug/issue, please file it on GitHub.
Crafted with ❤️ by the Google Node.js team