-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for preview API. #13
Conversation
Thanks @jmhobbs! Sorry it's taken so long to respond! Your code looks good. Have you been using this in production? Any issues you're aware of? |
Also, I see that this is an alternative to #13. Mind if I ask what your argument is on using this method instead? I agree the implementation is much simpler, but I like the idea the preview sdk being it's own object instead of piggybacking off of the content sdk. I'm assuming you found it easier when using the sdk to simply pass in a boolean instead of having to construct a different object? I think that's a valid argument, but I'm worried out muddying up the interface by throwing another parameter into the constructor. I would love to hear your thoughts. |
To be honest, I wrote it without knowing #13 existed :) I was just going for the bare minimum changes to avoid regressions. I'd be Not using it in production yet, I just wanted to be able to see drafts in On Wednesday, December 30, 2015, Craig Wann [email protected]
|
Copy that! I guess it wouldn't make since to use a preview api in "production" huh? :-) I just mean are you using it on an active product. Let me chat with Marcgoosen and get his thoughts. I think he's been using his branch for a while. I think he actually dried up my code a bit, so I like his implementation. Mind taking a look at his branch out to see if there is anything he missed that you need? |
Yeah, it's in use right now, no issues so far :) I see the benefit of just passing around a client class, makes sense. The #13 branch just seems kind of messy, it's got other changes mixed into it too. Whichever you choose is fine by me, I just wanted to offer up what I had. |
OK, let me take a look again. |
Yeah, I don't mind him adding the locale limiter. The other off target change I see is adding the ability to pass an assoc value to the json request results, but it looks like he took that out. I haven't actually pulled down the branch yet, I'm just looking at the commit history, so I could be wrong. If he didn't, I'll take it out before it goes live. I'm not sure if that's how I would want to handle that. I think I would actually be more in favor of chaining an ->assoc() method if that's actually functionality people need. I think that would be best added in a different pull request though. |
By the way, I really appreciate your pull request and thoughts! Keep em coming! |
Alternative approach to solve #1