added main() to oauth example