Description Usage Arguments Value Returns See Also Examples
View source: R/get-news-for-app.R
Get the latest news for an app.
1 | get_news_for_app(app_id, count, max_length)
|
app_id |
The app's AppID. |
count |
The number of news entries to return. Returns all news entries if unspecified. |
max_length |
The maximum length of each news entry. Returns all characters if unspecified. |
The latest news of a game specified by its AppID.
Each item in the resulting list contains:
The news entry's id
The news entry's title
The news entry's url
The news entry's author
A shortened excerpt of the contents (to max_length
characters),
terminated by "..." if longer than max_length
.
A UNIX timestamp
get_app_list
to get a list of app names & id's.
1 2 3 4 5 | # get the most recent The Binding of Isaac: Rebirth news post
get_news_for_app(250900, count = 1)
# get all SteamWorld Dig news posts
get_news_for_app(252410)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.