stop_if_invalid_category
checks whether a given category is valid for News API and
stops with an error if this is not the case.
1 |
category |
category to check as a string. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.