add auth type mudgement in callAPI method.