Code example for TelephonyManager

Methods: getDeviceId, getLine1Number

0
 
        return http() 
              .context(context)
              .path("/sessions") 
              .host(url)
              .param("imei", telephonyManager.getDeviceId())
              .param("mobile_number", telephonyManager.getLine1Number())
              .param("user_name", username)
              .param("password", password)
              .post(); 
    } 
 
}