Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Javascript library for interacting with the WikiTree API functions

License

Notifications You must be signed in to change notification settings

wikitree/wikitree-javascript-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wikitree-javascript-sdk

This library is obsolete. Better examples of working with the WikiTree API can be found in https://github.com/wikitree/wikitree-api.

Javascript library to work with the WikiTree API functions.

Prerequisites

Usage

// Load scripts
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery.cookie.js"></script>
<script src="wikitree.js"></script>

<script type="text/javascript">

	wikitree.init({});
	wikitree.session.checkLogin().then(function(data){ ... });

	wikitree.session.log( { email: 'xxx', password: 'yyyy' }).then(function(data) {
	});

	var p = new wikitree.Person( { user_id: #### } );
	p.load({}).then(function(data){ 
	});

</script>

## Example

The documentation here is incomplete as the SDK (and the API itself) are all in early development.
The index.html file has a decent example of usage. 

A hosted version is at: http://apps.wikitree.com/apps/casey1/wikitree-javascript-sdk/

About

Javascript library for interacting with the WikiTree API functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published