Set the api on the appygram object