Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    familysearchpublic

    FamilySearch API

    FS

    getMeta()

    Load the endpoints from the Discovery resource. These are then cached.

    get(resource, options, token, next)

    Example with the person resource and the person with relationships resource:

    fs.get('person-template', {pid: 'SOME-PID'}, 'U-token@example.com', function (err, data) {
      if (err) throw err;
      data.persons.forEach(function (person) {
        console.log('Got person', person.display.name);
      });
    }).get('person-with-relationships-query', {person: 'SOME-PID'}, 'U-token@example.com', function (err, data) {
      if (err) throw err;
      data.childAndParentsRelationships.forEach(function (rel) {
        console.log('Father:', rel.father && rel.father.resourceId);
      });
    });
    

    install

    npm i familysearch

    Downloadslast 7 days

    1

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar