Changing to new device api
Now getting device id from device code after getting access token. This is needed as parameter for device and transaction APIs