torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
107 stars 24 forks source link

Get more detail Google Script #30

Closed junoprima closed 4 months ago

junoprima commented 4 months ago

Can I possibly get the UID and name from this API? Do you have the documentation for the API? I think I can improve it.

torikushiii commented 4 months ago

not with the current google script code because fetching UID and name uses different endpoint, which is https://bbs-api-os.hoyolab.com/game_record/card/wapi/getGameRecordCard

I could just add an option for people to insert their own UID and Username, that would be more simpler.

junoprima commented 4 months ago

ok thank for answer i use in my private discord and many account to know what is that reward

torikushiii commented 4 months ago

as of this commit https://github.com/torikushiii/hoyolab-auto/commit/951afd6a5c6a1612200a374ee6b1e71452f6b477

Google Script now returns UID and account name as you can see right here for all games

image

let me know if this is what you wanted.

junoprima commented 4 months ago

as of this commit 951afd6

Google Script now returns UID and account name as you can see right here for all games

image

let me know if this is what you wanted.

Thank for reply yes this is what i want before you commit i try to edit code to get that but i got stuck if has multiple game is dupplicate send image i will try your code :)

torikushiii commented 4 months ago

I've updated the google-script to just what you wanted at this commit https://github.com/torikushiii/hoyolab-auto/commit/fb986476870d269007d612a79111cc83ddab4af7 that will looks like this

image

junoprima commented 4 months ago

I've updated the google-script to just what you wanted at this commit fb98647 that will looks like this

image

here i got your code and modify to my here my result

image

torikushiii commented 4 months ago

looks good!

torikushiii commented 4 months ago

so, im assuming this issue is completed?