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

Add create_or_update_subscribers method #15

Merged

Conversation

j831
Copy link

@j831 j831 commented Jul 19, 2018

Uses the Drip REST API batch endpoint to update up to 1000 subscribers at a time.
http://developer.drip.com/#batch-api

@will-in-wi will-in-wi self-assigned this Jul 19, 2018
@will-in-wi will-in-wi self-requested a review July 19, 2018 19:21
Copy link
Contributor

@will-in-wi will-in-wi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@will-in-wi
Copy link
Contributor

Thanks for the submission! I'm going to see if I can get another pair of eyes on this internally, then assuming there are no issues, I'll merge and push it out.

src/Client.php Outdated
* @param array $params
* @return \Drip\ResponseInterface
*/
public function create_or_update_subscriber_batch($params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this again, could we change the name of this method to create_or_update_subscribers to match the Ruby client? https://github.com/DripEmail/drip-ruby/blob/master/lib/drip/client/subscribers.rb#L67

Thanks!

@j831 j831 force-pushed the add-create_or_update_subscriber_batch-method branch from 7e12b91 to 858dd09 Compare July 19, 2018 20:52
@j831
Copy link
Author

j831 commented Jul 19, 2018

I renamed the method, thanks for the quick feedback.

@j831 j831 changed the title Add create_or_update_subscriber_batch method Add create_or_update_subscribers method Jul 19, 2018
@will-in-wi will-in-wi merged commit b1fd6ea into DripEmail:master Jul 20, 2018
@will-in-wi
Copy link
Contributor

This just got released in 1.1.0.

@j831 j831 deleted the add-create_or_update_subscriber_batch-method branch November 7, 2018 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants