1) Login in WSO2 API web portal
2) Click on "Applications" and open "Default Application"
3) On the left panel under "Production Keys", click on "OAuth2 Tokens"
4) You will find your consumer key, access token, and your Consumer secret
5) Click ‘Generate access token’ and change the default validity of 3600 seconds to a validity period of your choice. (after this period elapses you will need to generate it again. )
6) Once you have your consumer key and access token at your disposal, you can use the APIs.