Added api require.
Merge pull request #102 from abmargb/master

Added api require.