获取用户在线状态
 POST /v3/devices/status/
502195
def status(registration_ids)
      registration_ids = [registration_ids].flatten
      url = base_url + 'status'
      body = { registration_ids: registration_ids }
      Http::Client.post(@jpush, url, body: body)
    end
257173
def device_not_active(self, addr):
        """"""
        self.aldb_device_handled(addr)
        for callback in self._cb_device_not_active:
            callback(addr)
63307
def do_status(self, arg):
        '''  '''
        info = self.arm.get_info()
        max_len = len(max(info.keys(), key=len))

        print(self.style.theme('\nArm Status'))
        for key, value in info.items():
            print(self.style.help(key.ljust(max_len + 2), str(value)))
        print()
486694
def refresh_details(self):
        ''''''
        try:
            return self.api_iface._api_get("/api/v2/devices/" + str(self.device_id))
        except APIError as e:
            print("API error: ")
            for key,value in e.data.iteritems:
                print(str(key) + ": " + str(value))
19440
def kpl_status(self, address, group):
        """"""
        addr = Address(address)
        device = self.plm.devices[addr.id]
        device.states[group].async_refresh_state()
1256836
function commonErrorStatusHandler(result) {
    // 接口调用失败, 输出失败的日志信息, 需要包含如下重要信息
    // * HTTP method
    // * HTTP URL
    // * 接口的参数
    // * 接口的返回状态
    // * 接口的返回数据
    console.warn('接口调用出错', this.type || this.method, this.url, this.data, result.status, result);

    if (result.status === REQUEST_FAIL_STATUS) {
        // XXX your code here
    } else if (result.status == 1) {
        // XXX your code here
    }
}
1131572
def status(to, show, status="")
      httpost('/statuses', reqdata().merge({
        :nick => @endpoint[:nick],
        :to => to,
        :show => show,
        :status => status
      }))
    end
441073
def _process_status(self, status):
        
        self._screen_id = status.get(ATTR_SCREEN_ID)
        self.status_update_event.set()
413119
def statusEnquiry():
    """"""
    a = TpPd(pd=0x3)
    b = MessageType(mesType=0x34)  # 00110100
    packet = a / b
    return packet
311943
def sd_mount_status(self):
        
        request = {
            "command": "sd_mount_status"
        }
        responses = self.complex_request(request)
        result = None
        if len(responses) > 0:
            result = responses[0].get('status')
        return result
562691
def _publish_status(self, slug, data):
        

        status_topic = self.topics.prefix + 'devices/{}/data/status'.format(slug)

        self._logger.debug("Publishing status message: (topic=%s) (message=%s)", status_topic, str(data))
        self.client.publish(status_topic, data)
1225484
def status(self):
        """"""

        resp = requests.get("http://{0}/get_status.cgi".format(self.address))
        data = resp.text.replace(";", "")
        data = data.replace("var", "")
        data_s = data.split("\n")
        # Last is an empty line 
        data_s.pop()
        data_array = [s.split("=") for s in data_s]
        return dict(data_array)
1321163
def status(self):
        """"""

        hw_type, name, major, minor, patch, status = self.rpc(0x00, 0x04, result_format="H6sBBBB")

        status = {
            'hw_type': hw_type,
            'name': name.decode('utf-8'),
            'version': (major, minor, patch),
            'status': status
        }

        return status
1212394
def trigger(self):
        
        ibsta = self._lib.ibtrg(self._device)
        self._check_status(ibsta)
460116
def status(self, obj):
        """"""

        reply = self._send_cmd_to_wpas(obj['name'], 'STATUS', True)
        result = reply.split('\n')

        status = ''
        for l in result:
            if l.startswith('wpa_state='):
                status = l[10:]
                return status_dict[status.lower()]
1241130
function device() {
    let ua = navigator.userAgent.toLowerCase(),
        width = window.innerWidth,
        height = window.innerHeight,
        platform = 'browser';

    // 判断平台信息
    if (ua.indexOf('micromessenger') > -1) {
        platform = 'wechat';
    } else if (ua.indexOf('android') > -1) {
        platform = 'android';
    } else if (/(iphone|ipad|ipod|ios)/.test(ua)) {
        platform = width === 375 && height === 812 ? 'iosx' : 'ios';
    }

    // 返回结果
    return {
        width,
        height,
        platform
    };
}
819961
def get_vm_status(self, device='FLOPPY'):
        """"""
        dic = {'DEVICE': device.upper()}
        data = self._execute_command(
            'GET_VM_STATUS', 'RIB_INFO', 'read', dic)
        return data['GET_VM_STATUS']