Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Allow retrieving own user info in API #3747

Closed
SlovakianCanon opened this issue Apr 11, 2024 · 4 comments · Fixed by #4343
Closed

[Request] Allow retrieving own user info in API #3747

SlovakianCanon opened this issue Apr 11, 2024 · 4 comments · Fixed by #4343
Labels
Fund https://polar.sh Request

Comments

@SlovakianCanon
Copy link

SlovakianCanon commented Apr 11, 2024

It would be really useful if one could query their own user information (upload, download, HnR, bonus, etc) using the API. My personal use-case is to be able to retrieve and store uploaded / downloaded amounts every n hours and store it to keep track of my ratio over time across different trackers. But I'm sure other people would find useful applications for it too.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@SlovakianCanon SlovakianCanon added Fund https://polar.sh Request labels Apr 11, 2024
@Dekumori
Copy link

Dekumori commented Nov 9, 2024

This would be great! Ideally, we could receive {class, download total, notifications, ratio, upload total, username}.

@HDVinnie
Copy link
Collaborator

@SlovakianCanon this look sufficient for you?

{
"username":"UNIT3D",
"group":"Owner",
"uploaded":"50 GiB",
"downloaded":"1 GiB",
"ratio":"50",
"buffer":"124 GiB",
"seeding":0,
"leeching":0,
"seedbonus":"0.00",
"hit_and_runs":0
}

@HDVinnie HDVinnie linked a pull request Nov 13, 2024 that will close this issue
HDVinnie added a commit that referenced this issue Nov 13, 2024
@HDVinnie
Copy link
Collaborator

Added in v8.x.x for next release

@nate34k
Copy link

nate34k commented Dec 16, 2024

Could downloaded_bytes, uploaded_bytes be added to the API response? It would make parsing easier for certain systems in that you wouldn't need to deal with strings and could use int/number instead, and could also be more accurate (down to the byte).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fund https://polar.sh Request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants