withAccessToken static method

Viam withAccessToken(
  1. String accessToken, {
  2. String serviceHost = 'app.viam.com',
  3. int servicePort = 443,
})

Create an authenticated Viam instance with the provided accessToken

Implementation

static Viam withAccessToken(String accessToken, {String serviceHost = 'app.viam.com', int servicePort = 443}) {
  return ViamImpl.withAccessToken(accessToken, serviceHost: serviceHost, servicePort: servicePort);
}