Magento 2 REST API – Get Admin Token
Make sure you have a working copy of Magento 2 CE or EE with a user name that has admin rights.
This video has the code to get a token from Magento 2 using the rest api.
The source code is on github at:
You can clone or just copy and paste into your visual studio to follow the tutorial.
See more here