jonallured / braze_ruby

A wrapper gem for the Braze REST API.
MIT License
18 stars 21 forks source link

Allow options when exporting users by ids #37

Closed jonallured closed 3 years ago

jonallured commented 3 years ago

I was going to do some user exporting and wanted to specify the fields to return based on the docs here:

https://www.braze.com/docs/api/endpoints/export/user_data/post_users_identifier/#request-parameters

But then I noticed that options weren't being passed down to the actual api call. So all this PR does is merge them in like we do on the segment version of this call.

I went to add this behavior and wanted to update the specs. I started off by rewriting the spec file using context to cover the various ways we could be exporting. Then I modernized a bit and covered the existing options merging so that I could add my new behavior in the final commit.