How can I create an OAuth token?

To create OAuth token you have to call ‘/authorize’ and ‘/token’ API. For more details refer Getting Started guide