-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enhance example and add assets api #8
Conversation
Hi @josantonius, thank you for your reply. I think we have to separate the APIs for the different resources because each one resource has the different response JSON collection. It's necessary to separate that and another reason is convenient to do the debug work. |
Hello Peter, how are you? Sorry for the delay, between work and holidays I haven't had much time. I wasn't referring specifically to the class structure, which is pretty good, but to the use that the end user will make of it. Now we would:
I think we could do that internally and the end use would be much more simplified:
Which would lead to something like that:
Basically the idea would be to create an extra class to take care of this (Container, Porter...) and this simplify the final use of the library. What do you think? |
Hi @josantonius, I glad that I see your comment again 😄. public function __construct(Connector $connector) { ... } If possible, can you create the issue about this? Thanks. |
Yeah, give me a few days to catch up and I see how we do it 😉. I also have the README file almost ready, but I stopped at the methods because it was a little confusing this way. |
Hi @peter279k, I've uploaded my suggestion to the next branch. It could be polished further, but the idea would be something like that. |
Hi @josantonius, thank you for your reply. I also create the realted PR #9. Please review this code at your available time. |
Changed log