made api credentials configurable on example page