updated the oauth example with new syntax