get_static: Static Profile Data

Description Usage Arguments References See Also Examples

View source: R/profile.R

Description

Provides static information (achievements, categories, criteria, and rewards) about SC2 profiles in a given region.

Usage

1
get_static(region_id, host_region = "us")

Arguments

region_id

A numeric argument indicating the region of the profile.

  • 1 = US Region

  • 2 = EU Region

  • 3 = KR/TW Region

  • 5 = CN Region

host_region

The host region that the API call will be sent to. For most API calls, the same data will be returned regardless of which region the request is sent to. Must be one of "us", "eu", "kr", "tw", "cn". For more information on regionality, refer to Regionality and APIs.

References

See Also

Other profile API calls: get_ladder_summary(), get_ladder(), get_metadata(), get_profile()

Examples

1
2
3
4
5
6
7
# Request static data of profiles in the EU region. Request is sent through
# the U.S. host region.
try(get_static(region_id = 2, host_region = "us"))

# Request static data of profiles in the China region. The request must be
# sent to the China gateway.
try(get_static(region_id = 5, host_region = "cn"))

SC2API documentation built on Oct. 23, 2020, 7:10 p.m.