-
Notifications
You must be signed in to change notification settings - Fork 18
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
Added support for new macromeasures
opt
#24
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -159,6 +160,16 @@ fullcontact.person.email('foo@bar.com', 1, function (err, data) { | |||
}); | |||
``` | |||
|
|||
|
|||
The `Person` API's now accept the `macromeasures` param as a boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this behind the webhook stuff just so that the arguments make more sense when reading for the first time.
It is also more likely people are looking for webhooks then the premium features I think
Thanks for the feedback @AdriVanHoudt |
The `Person` API's now accept the `macromeasures` param as a boolean | ||
|
||
```js | ||
fullcontact.person.email('opensource@observe.it', null, null, null, null, null, true, function (err, data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR, but maybe we should start using an object instead of null, null, null, null, true
for API. This is getting really verbose and unreadable. Thoughs @AdriVanHoudt ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something like
fullcontact.person.email('email@adr.ess', {
macromeasures: true,
webhookId:'id here'
}, fn);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree! ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree! ^^. Would that be a new Major version increment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GitTristan since the api would be totally different and therefore cause everything to break, yes it would be a major version change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to merge this and open an issue for the new api
Added new opt
Updated README
Added new test
Tests pass
Tested our calling code and new opt works on forked version and returns new .macromeasures prop containing .interests, etc
https://www.fullcontact.com/developer/docs/person/#premium-features
Let me know if you need anything further for the PR
Thanks,