added event code check from phone
Merge pull request #9 from scottsilveus/api

added event code check from phone