example to define KEY and SECRET in constructor