Source code for bungieapi.generated.clients.trending

# generated by update to not change manually
import typing as t

from bungieapi.base import BaseClient
from bungieapi.forge import forge
from bungieapi.generated.components.responses import (
    SearchResultOfTrendingEntryClientResponse,
)
from bungieapi.generated.components.responses.trending import (
    TrendingCategoriesClientResponse,
    TrendingDetailClientResponse,
)
from bungieapi.generated.components.schemas.trending import TrendingEntryType


[docs]class Client(BaseClient):
[docs] async def get_trending_entry_detail( self, identifier: t.Optional[str] = None, trending_entry_type: t.Optional["TrendingEntryType"] = None, ) -> TrendingDetailClientResponse: """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: identifier: The identifier for the entity to be returned. trending_entry_type: The type of entity to be returned. """ query = None result = await self.get( path=f"/Trending/Details/{trending_entry_type}/{identifier}/", query=query, ) return forge(TrendingDetailClientResponse, result)