10 Apr 2024 |
@weidenwiesel:matrix.org | I dont think there is an API for users | 19:27:56 |
@weidenwiesel:matrix.org | Check the source code:
https://github.com/iv-org/invidious/tree/master/src/invidious/routes/api/v1 | 19:28:07 |
@weidenwiesel:matrix.org | YT users != Invidious users | 19:28:22 |
@weidenwiesel:matrix.org | API docs:
https://docs.invidious.io/api/ | 19:29:12 |
@daknig:matrix.org | yes I did not find it there so I asked | 19:29:24 |
@weidenwiesel:matrix.org | Like I said, Invidious does not use Google Accounts as users | 19:29:54 |
@weidenwiesel:matrix.org | So there is nothing to query | 19:30:06 |
@daknig:matrix.org | yes but can it not uh, do API call to youtube to resolve that? | 19:30:31 |
@daknig:matrix.org | turns out invidious does make it work somehow | 19:30:58 |
@daknig:matrix.org | I do not know how but it works | 19:31:04 |
@weidenwiesel:matrix.org | What do you mean by make it work? Invidious doesn't even use the YT API, its basically "just a web client" | 19:31:56 |
absidue | In reply to @daknig:matrix.org what do I do? {instance}/api/v1/resolveurl?url={full youtube url} | 19:32:14 |
@daknig:matrix.org | In reply to @absidue:matrix.org {instance}/api/v1/resolveurl?url={full youtube url} cannot see that in the API docs | 19:32:56 |
@daknig:matrix.org | https://docs.invidious.io/api/ <- here i mean | 19:33:16 |
absidue | In reply to @daknig:matrix.org cannot see that in the API docs yep, which is why you weren't able to find it, hence why i'm mentioning it here, the api docs are far behind, the prs to update them haven't been merged yet | 19:33:45 |
@daknig:matrix.org | I see, thanks | 19:34:08 |
absidue | unironically the best place to find info is the freetube repo | 19:34:30 |
@weidenwiesel:matrix.org | That's golden | 19:35:01 |
@weidenwiesel:matrix.org | But understandable, there are already so many other things to do | 19:35:25 |
@daknig:matrix.org | well, thanks | 19:37:00 |
@daknig:matrix.org | I wish the API bindings would catch up, but I wish the docs are updated first... | 19:37:24 |
absidue | In reply to @absidue:matrix.org unironically the best place to find info is the freetube repo In this case it's a good place to look, as the endpoint was added because we wanted to use it in FreeTube, as we already had an equivalent in the local API. | 19:37:51 |
absidue | https://github.com/iv-org/documentation/pull/501 | 19:39:44 |
@daknig:matrix.org | can somebody please donate hours to the devs? if you have too many, just give them to the ones in need, the ones who would improve our lives | 19:42:26 |
@daknig:matrix.org | I wish it would be so easy | 19:42:33 |
Ward | In reply to @absidue:matrix.org https://github.com/iv-org/documentation/pull/501 would it be possible to use openapi instead of manual API documentation? Or would it not be worth the effort | 23:36:16 |
onion.chunky | In reply to @wardpearce:matrix.org would it be possible to use openapi instead of manual API documentation? Or would it not be worth the effort I was looking at using OpenAPI for the documentation but I haven't touched it in months (so some things are out of date and missing). | 23:59:03 |
11 Apr 2024 |
onion.chunky |  Download 1000023126.png | 00:01:02 |
onion.chunky | This is the yaml file for reference: https://github.com/ChunkyProgrammer/invidious-docs/blob/add-open-api-page/scripts/swagger.yaml | 00:04:31 |
| @chromatika:matrix.org left the room. | 00:33:07 |