This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.familysearch.api.client; | |
import org.gedcomx.rs.client.PersonState; | |
/** | |
* @author Ryan Heaton | |
*/ | |
public class Main { | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'familysearch' | |
# Ways to instantiate a client | |
# This would start with an access_token and keep it for all requests. | |
client = FamilySearch::Client.new :env => 'production', :access_token => '{YOUR_ACCESS_TOKEN}', :logger => Logger.new(STDOUT) | |
# Will probably support Basic Auth through this gem, so we would need the developer key for that | |
client = FamilySearch::Client.new :host => 'https://sandbox.familysearch.org', :key => '{YOUR_DEV_KEY}', :logger => Logger.new(File.new('log/api.log')) | |
client = FamilySearch::Client.new :host => 'http://localhost:5000', :key => '{YOUR_DEV_KEY}' |