Trending Routes
TrendingRouteInterface
Bases: ClientMixin
Source code in src/bungio/api/bungie/trending.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
get_trending_categories(auth=None)
async
Returns trending items for Bungie.net, collapsed into the first page of items per category. For pagination within a category, call GetTrendingCategory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
Optional[AuthData]
|
Authentication information. Required when users with a private profile are queried, or when Bungie feels like it |
None
|
Returns:
| Type | Description |
|---|---|
TrendingCategories
|
The model which is returned by bungie. General endpoint information. |
Source code in src/bungio/api/bungie/trending.py
14 15 16 17 18 19 20 21 22 23 24 25 26 | |
get_trending_category(category_id, page_number, auth=None)
async
Returns paginated lists of trending items for a category.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
category_id
|
str
|
The ID of the category for whom you want additional results. |
required |
page_number
|
int
|
The page # of results to return. |
required |
auth
|
Optional[AuthData]
|
Authentication information. Required when users with a private profile are queried, or when Bungie feels like it |
None
|
Returns:
| Type | Description |
|---|---|
SearchResultOfTrendingEntry
|
The model which is returned by bungie. General endpoint information. |
Source code in src/bungio/api/bungie/trending.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
get_trending_entry_detail(identifier, trending_entry_type, auth=None)
async
Returns the detailed results for a specific trending entry. Note that trending entries are uniquely identified by a combination of both the TrendingEntryType and the identifier: the identifier alone is not guaranteed to be globally unique.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
identifier
|
str
|
The identifier for the entity to be returned. |
required |
trending_entry_type
|
Union[TrendingEntryType, int]
|
The type of entity to be returned. |
required |
auth
|
Optional[AuthData]
|
Authentication information. Required when users with a private profile are queried, or when Bungie feels like it |
None
|
Returns:
| Type | Description |
|---|---|
TrendingDetail
|
The model which is returned by bungie. General endpoint information. |
Source code in src/bungio/api/bungie/trending.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |