Fixed error when receiving the API as an argument
Merge pull request #2 from dookie2000ca/master

Fixed error when receiving the API as an argument