Remove useless setApi method, take in constructor instead.
Merge pull request #414 from square/jw/useless-method

Remove useless setApi method, take in constructor instead.