added an OAuth2 for devices sample script