Current collected state Current
Observed since 20 Oct, 19:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
23andme
23andMe API wrapper.
JavaScript wrapper for the 23andMe API.
Install the package with NPM:
$ npm install 23andme
Minimal example:
import API from "23andme";
let clientId = "fake_client_id";
let clientSecret = "fake_client_secret";
let redirectUri = "http://localhost:9000/receive_code";
let scope = ["ancestry"];
let api = new API(clientId, clientSecret, redirectUri, scope);
function receiveCode(code) {
api.auth(code)
.then(() => api.ancestry())
.then(ancestry => console.log(ancestry))
.catch(err => console.error(err));
}
As can be seen, the package exposes an API wrapper class that can be instantiated. This class has the following methods:
constructor(clientId, clientSecret, redirectUri, scope)
auth(code)
user()
/user endpoint.names()
/names endpoint.haplogroups()
/haplogroups endpoint.ancestry()
/ancestry endpoint.familyMembers()
/family_members endpoint.relatives()
/relatives endpoint.And the following properties:
authUri
auth() method!)baseUri
token
auth() was called.The package is not officially affiliated with 23andMe in any way. Use at own risk.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
babel-cliEnvironment{
"local_name": "babel-cli",
"alias": false,
"peer_metadata": null
} | 6.7.5 | development |
babel-preset-es2015Environment{
"local_name": "babel-preset-es2015",
"alias": false,
"peer_metadata": null
} | 6.6.0 | development |
rimrafEnvironment{
"local_name": "rimraf",
"alias": false,
"peer_metadata": null
} | 2.5.2 | development |
Source distribution
{
"shasum": "bfb5835366d376858b2ce30e0be7d0153907a13d",
"tarball": "https://registry.npmjs.org/23andme/-/23andme-1.0.0.tgz",
"integrity": "sha512-2jNYnHnNOhTYDJaZpukx1x2HK4d4blkyLTCZtJxrzI3jJdNqi7JK3PfCYp2l+Re8Hd3Yo1GqSECJ6ZOVlDP4ig==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIHEhGfTiQ+Vc6ecJAJ23s873KD0aIR8OJEkrzS5WI/zZAiACqnFCVoVZO+oUrMrk6owpxf1qHvnPsCWwPSkVkG8hgA=="
}
]
}Observed since 20 Oct, 19:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:764fbdc913138e8e1d0407fd36ba60fc75bb3d3d1ba3a386565aec554e53bab8