Update API.md
Merge pull request #888 from kabniel/patch-1

Update API.md