fixed apicall return type errors
Merge pull request #13 from knnyluk/fix_apicall

fixed apicall return type errors