myPoints

myPoints()

async def myPoints(authData: str = "") -> Points

Retrieve information about your Portals Points (total, purchase, sell); purchase counts, sell counts etc.

Returns

Points object.

Raises

  • authDataError if authData is not provided

  • requestError if request fails.

Points Object

Methods

.toDict(): Convert the Points object back to a dictionary.

Attributes

  • Total Points:

    • .total_points: Your total Portals Points count.

  • Purchase:

    • .purchase_points: Points earned from purchases.

    • .purchase_count: Number of gifts purchased on Portals.

  • Sell:

    • .sell_points: Points earned from sales.

    • .sell_count: Number of gifts sold on Portals.

  • Referral:

    • .referral_points: Points from referrals.

    • .referral_count: Total referrals count.

  • Bonus:

    • .bonus_points: Points claimed from completing tasks.

    • .bonus_count: Count of bonuses

Example:

from aportalsmp.account import myPoints
from aportalsmp.auth import update_auth
import asyncio

auth = asyncio.run(update_auth(api_id=123, api_hash="..."))

async def main():
    mypoints = await myPoints(authData = auth)
    print(mypoints.total_points, mypoints.sell_points) # 30000 15000

See used functions: update_auth

Last updated