added access code api implementation
corrected typo and removed unused code
Merge pull request #2 from ProctorCam/feature/access_code_api

added access code api implementation