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

Example for authentification #127

Open
spiderbit opened this issue Aug 21, 2021 · 5 comments
Open

Example for authentification #127

spiderbit opened this issue Aug 21, 2021 · 5 comments
Labels
question Further information is requested

Comments

@spiderbit
Copy link

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?

@unixfox
Copy link
Member

unixfox commented Aug 21, 2021

Probably a duplicate of iv-org/invidious#473

@spiderbit
Copy link
Author

spiderbit commented Aug 21, 2021

@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.

@unixfox
Copy link
Member

unixfox commented Aug 21, 2021

iv-org/invidious#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.

@syeopite
Copy link
Member

syeopite commented Aug 21, 2021

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

@spiderbit
Copy link
Author

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?

@unixfox unixfox added the question Further information is requested label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants