Referral

Your account's invite link: each person who joins NoClick through it, and starts using it, adds reward_usd to your balance. A user of your account has none of its own.

class Referral

Your account's invite link and what it has earned.

Attributes
codestr
urlstr
share_textstr

What a friend reads, then the link.

reward_usdfloat

What each friend who starts using NoClick adds to your balance.

joinedint

How many joined through it.

earnedint

How many of them earned the reward, and what it came to.

earned_usdfloat
joined_throughdict[str, Any] | None

Whose link your account joined through ({"name", "channel"}), if it did.

can_apply_untilAny

Until when your account can still apply an invite code (a day after it joined, once); None once it can't.

rawdict[str, Any]

The response JSON exactly as the API sent it.

getstaticasync

noclick.Referral.get(*, client=None) -> Referral

Your account's invite link, how many joined and earned through it, and whose link your account joined through.

Parameters
clientClient | None

The client to send with; defaults to the module client built from NOCLICK_API_KEY.

(default None)
Returns
Referral

The link (url), the line to send it with (share_text) and what it has earned.

Usage
referral = noclick.Referral.get()
print(referral.share_text, referral.joined, referral.earned_usd)

applystaticasync

noclick.Referral.apply(code, *, client=None) -> Referral

Apply a friend's invite code (or their join link) to your account, as the person they invited: only within a day of your account's creation, and once. An unknown code raises noclick.NotFound; a second one noclick.Conflict.

Parameters
codestrrequired
clientClient | None

The client to send with; defaults to the module client built from NOCLICK_API_KEY.

(default None)
Returns
Referral

Your account's invite link, now naming whose link it joined through.

Usage
noclick.Referral.apply("ana-k3x9")