pystagram.graph_api.endpoints.container package
Submodules
pystagram.graph_api.endpoints.container.container module
- class pystagram.graph_api.endpoints.container.container.Container(graph_api: GraphInstagramBaseApi)
Bases:
object
The Container node of the Instagram Graph API.
- Parameters:
graph_api (
InstagramGraphApi
) – An instance of theInstagramGraphApi
class.
- create(*args, **kwargs)
[Not Supported] Create an Instagram container. :raises InstagramApiEndpointError: Container creation is only supported by the User Media node
- delete(*args, **kwargs)
[Not Supported] Delete an Instagram comment. :raises InstagramApiNotSupportedError: Container deletion is not supported by the Instagram Graph API.
- get(container_id: int, fields: List[str | ContainerFields] | None = None, access_token: str | None = None)
Get fields and edges on an Instagram container.
- Parameters:
container_id (int) – The ID of the container to get fields and edges from.
fields (Optional[List[Union[str, ContainerFields]]], optional) – A list of
pystagram.graph_api.components.fields.container_fields.ContainerFields
to get from the container, defaults to Noneaccess_token (str, optional) – The access token of the Instagram user, inferred from the InstagramGraphApi instance if None, defaults to None
- Returns:
The response from the GET /{container-id} endpoint.
- Return type:
pystagram.helpers.api_client.api_response.InstagramApiResponse
- update(*args, **kwargs)
[Not Supported] Update an Instagram comment. :raises InstagramApiNotSupportedError: Container update is not supported by the Instagram Graph API.