Skip to content

Fundraiser

Helpers for fundraisers attached to Instagram accounts.

Method Return Description
standalone_fundraiser_info_v1(user_id) dict Get fundraiser info for a user

Example:

>>> from aiograpi import Client
>>> cl = Client()
>>> await cl.login(USERNAME, PASSWORD)

>>> user_id = await cl.user_id_from_username("instagram")
>>> await cl.standalone_fundraiser_info_v1(user_id)
{...}

Helpers for the fundraisers.

Source code in aiograpi/mixins/fundraiser.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class FundraiserMixin:
    """
    Helpers for the fundraisers.
    """

    async def standalone_fundraiser_info_v1(self, user_id: str):
        """
        Get fundraiser info.

        Parameters
        ----------
        user_id: str
            User id of an instagram account

        Returns
        -------
        dict
        """
        user_id = str(user_id)
        return await self.private_request(
            f"fundraiser/{user_id}/standalone_fundraiser_info/"
        )

standalone_fundraiser_info_v1(user_id) async

Get fundraiser info.

Parameters

user_id: str User id of an instagram account

Returns

dict

Source code in aiograpi/mixins/fundraiser.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
async def standalone_fundraiser_info_v1(self, user_id: str):
    """
    Get fundraiser info.

    Parameters
    ----------
    user_id: str
        User id of an instagram account

    Returns
    -------
    dict
    """
    user_id = str(user_id)
    return await self.private_request(
        f"fundraiser/{user_id}/standalone_fundraiser_info/"
    )