sdwebui-w-horde / sd-webui-stable-horde-worker

Stable Horde Unofficial Worker Bridge as Stable Diffusion WebUI (AUTOMATIC1111) Extension
GNU Affero General Public License v3.0
60 stars 19 forks source link

[Feature]: Expose User Kudos int he extension UI. #83

Open axemaster opened 1 year ago

axemaster commented 1 year ago

Is there existing issue for this?

Feature Description

As an API key user I want to see my current kudos balance.

Maybe a button for a popup with all the user's info from the API.

I am blind to how many kudos I have.

Proposed Solution

Maybe a button for a popup with all the user's info from the API.

Additional Information

I see in the API docs that the api key user's kudo count can be requested, but I don't know how to call it manually. It would be great if this UI called that endpoint and put it onscreen.

An explanation of how to call this myself (wget? postman?) would be a workaround I can live with.

FWIW, It's not shown in the client extension either.

prodigy commented 1 year ago

You can see your Kudos here: https://aqualxx.github.io/stable-ui/dashboard

Or use curl, the endpoint is v2/find_user:

curl -X 'GET' \
  'https://stablehorde.net/api/v2/find_user' \
  -H 'accept: application/json' \
  -H 'apikey: API_KEY' \
  -H 'Client-Agent: unknown:0:unknown'