Added api code
Merge pull request #23 from sonic45132/master

Added api code