Getting ready
Let's wire our BlogPostsService to an actual external API source. We could mock our blog API using Angular's InMemoryDataService to create a more realistic prototype data source. However, considering that would only be a marginal improvement on the last section, let's instead use a publicly available blog post API for this section.
First, we'll need to acquire a Blogger API key from Google's API developer console. You can acquire a key for free by navigating to https://console.developers.google.com/apis/api/blogger.googleapis.com/overview and selecting Create Project. You will have to name your new project and accept Google's Terms of Service for using their APIs.
You can visit the following link for more information:
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