How it works...
The blogger platform provides a set of public APIs available for getting blog post data from any public blog. Each blog has a unique ID that you will need in order to make requests to it, such as 7159470537406093899 for the official Angular Blog. Once you provide this ID, a valid API key, and the appropriate API endpoint, we can receive all the data we need for our BlogPost model.
We have been already providing an asynchronous service to return our BlogPost models, so our main change here is the usage of the HTTP library from Angular to make a GET request to our defined Blogger API endpoint. The HTTP library handles any type of HTTP requests our Angular application makes and was imported for us in our /src/app.module.ts module. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access