FamilySearch/familysearch-javascript-sdk

Support options parameter for getPerson()

Closed this issue · 7 comments

The Person resource supports query params but the SDK doesn't. Options will be required for apps that are currently using persons-with-relationships?persons=true to get a person, their relationships, and person objects for all relatives. Beginning in December, you will need to call the Person resources with relatives=true to get the same data; persons-with-relationships will return a 301.

dovy commented

Can't we put a fallback in?

Perhaps. What are you thinking?

dovy commented

Code for the new standard, console alert warning to switch. That way things don't break. ;)

Persons with relationships will return a 301 redirect to the person
resource with the proper query params so that things don't break.

On Fri, Sep 16, 2016 at 5:02 PM, Dovy Paukstys notifications@github.com
wrote:

Code for the new standard, console alert warning to switch. That way
things don't break. ;)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#169 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_Ukv7IqFScv5pfLbEJ978kmbHTm5RHks5qqxIKgaJpZM4J_VcN
.

dovy commented

Misread! Perhaps a console message might be good to inform anyways?

params are supported for the getPerson() method in v2.8 and up.