part of #215 Add API resolveAppId
Merge pull request #248 from huafengw/refineAPI

part of #215 Add API resolveAppId