added api directory
Merge branch 'master' of github.com:twinh/widget