documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Example for authentification

Open spiderbit opened this issue 4 years ago • 5 comments

Let's say I have a account and want the Feed or my subscriptions, what would I have to do, using curl?

There is 1 default Token that comes with the installation do I use that to directly get the feed or do you I create a new token with that token as authentication?

I just understand or can make it work, I am no oauth expert I assume it's based ot that right?

spiderbit avatar Aug 21 '21 04:08 spiderbit

Probably a duplicate of https://github.com/iv-org/invidious/issues/473

unixfox avatar Aug 21 '21 07:08 unixfox

@unixfox I don't think so, I just want a example and if you want to see it as bug for the documentation adding a curl example to the docu would probably not hurt.

The linked bug don't ask for code example or something alike, it was more the request to have a api or to extend it, I want a easy quickstart guide for it basically. Sure you could maybe learn from the bug how things are supposed to work which post / get commands I should send, but not exactly step by step with all parameters.

I don't even know when I want let's say my subscription from 0, what I have to do in which order, and do I need to use the password for registering a token or can I use the standard token to create a new token, or whatever... it's very confusing to me.

spiderbit avatar Aug 21 '21 11:08 spiderbit

https://github.com/iv-org/invidious/issues/473 is about implementing a way to fetch subscriptions using a token for example, exactly what you are asking.

If this feature doesn't exist yet, we can't provide you a documentation in order to use it.

unixfox avatar Aug 21 '21 11:08 unixfox

We actually do have documentation for the authenticated endpoints. https://github.com/iv-org/documentation/blob/master/Authenticated-Endpoints.md#get-apiv1authsubscriptions

syeopite avatar Aug 21 '21 11:08 syeopite

Yes but a api if you don't understand even which steps in which order you have to take is not enough. Example code is often very helpful. I am sure that if you have written 5-10 clients for OAuth (which it does not even officially refer to, but seems to be what it is?) this API doku is sure enough to implement it. But if you never done it, then this API dokumentation is very confusing.

If you think I am the only developer on the world that is to stupid to get it not working with that doku write the few curl lines needed and close the bug.

If it's so easy it shouldn't be that much work to paste such lines, I am flexible take also code in other languages like Python or something. Or point me to any opensource client that implemented that auth features?

spiderbit avatar Aug 21 '21 18:08 spiderbit