23-and-me 中文文档教程
23andme
用于与 23andMe API 通信的 JavaScript 客户端。
Example
import Client from '23-and-me'
const client = new Client('ACCESS_TOKEN')
const accounts = await client.getAccounts()
API
请参考官方 23andme API 参考文档。
Client(accessToken)
创建 23andMe 客户端的新实例。
必需的参数是:
accessToken
: The access token used to call API endpoints.
Releasing / Publishing
CircleCI 将处理发布到 npm。 要剪切新版本,只需执行以下操作:
$ git changelog --tag <version>
$ vim package.json # enter <version>
$ git release <version>
遵循 semver 规范。
License
stevenmiller888.github.io · GitHub @stevenmiller888 · 推特 @stevenmiller888
23andme
A JavaScript client for communicating with the 23andMe API.
Example
import Client from '23-and-me'
const client = new Client('ACCESS_TOKEN')
const accounts = await client.getAccounts()
API
Please refer to the official 23andme API reference documentation.
Client(accessToken)
Create a new instance of the 23andMe client.
The required parameter is:
accessToken
: The access token used to call API endpoints.
Releasing / Publishing
CircleCI will handle publishing to npm. To cut a new release, just do:
$ git changelog --tag <version>
$ vim package.json # enter <version>
$ git release <version>
Where <version>
follows the semver spec.
License
stevenmiller888.github.io · GitHub @stevenmiller888 · Twitter @stevenmiller888