get_news_for_app: Get news for an app

Description Usage Arguments Value Returns See Also Examples

View source: R/get-news-for-app.R

Description

Get the latest news for an app.

Usage

1
get_news_for_app(app_id, count, max_length)

Arguments

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.

Value

The latest news of a game specified by its AppID.

Returns

Each item in the resulting list contains:

gid

The news entry's id

title

The news entry's title

url

The news entry's url

author

The news entry's author

contents

A shortened excerpt of the contents (to max_length characters), terminated by "..." if longer than max_length.

date

A UNIX timestamp

See Also

get_app_list to get a list of app names & id's.

Examples

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)

josegallegos07/steamR documentation built on May 19, 2019, 8:48 p.m.