Added OAuth API functionality