-
Notifications
You must be signed in to change notification settings - Fork 19
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
Higher-level client methods / objects #89
Comments
Not sure if these examples should go inside the API itself. They seem too specific to me, although I don't really know how much usage they'd get. It also depends on how easy they are to implement. Instead of that, what about making an |
They would be fairly easy to implement. Changing a playlist's details with the object would just wrap the current function and accept a Having an examples directory sounds good. I've put it off for long enough. |
Anohter thing came to mind. Now the client and response models are clearly separated and models are used as arguments to client methods. But another kind of client could be created: one which returns objects that can interact with the web api themselves. For example:
It would make vanilla token handling a bit difficult as the original client object could get "lost", even though accessible from the private members of the objects of course. And if you swap another user's token in the details change wouldn't work. But this could be a fun thing to try out sometime. |
I'll close this issue, as our new Discord server has a think thank for throwing around ideas. |
I have noticed a few cases where it could be useful to implement higher-level methods. With this issue I'd like to gather ideas about such methods, assess whether it would be worth it to implement them and how they should be implemented.
Album
)This issue is in no hurry to close. This functionality would be extra.
The text was updated successfully, but these errors were encountered: