Multiplex api seems not working for me


#1

I am working on the real time data. But it seems the single user api here is working for me while the multiplex api here is not working.

I use the same code from the sample code and I can get data from nest cloud if I use the single token api which endpoint is https://developer-api.nest.com. The data look like this:


event: put

data: {"path":"/","data":{"devices":{"thermostats":{"rPEtknDQPS11Rd2sWP3BiUE47yaXjkah":{"humidity":50,"locale":"en-US","temperature_scale":"C","is_using_emergency_heat":false,"has_fan":true,"software_version":"5.6.1","has_leaf":true,"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJn-bX4XmM0ZA","device_id":"rPEtknDQPS11Rd2sWP3BiUE47yaXjkah","name":"Kids Room (livingroom)","can_heat":true,"can_cool":true,"target_temperature_c":21.0,"target_temperature_f":70,"target_temperature_high_c":26.0,"target_temperature_high_f":79,"target_temperature_low_c":19.0,"target_temperature_low_f":66,"ambient_temperature_c":26.0,"ambient_temperature_f":79,"away_temperature_high_c":24.0,"away_temperature_high_f":76,"away_temperature_low_c":12.5,"away_temperature_low_f":55,"eco_temperature_high_c":24.0,"eco_temperature_high_f":76,"eco_temperature_low_c":12.5,"eco_temperature_low_f":55,"is_locked":false,"locked_temp_min_c":20.0,"locked_temp_min_f":68,"locked_temp_max_c":22.0,"locked_temp_max_f":72,"sunlight_correction_active":false,"sunlight_correction_enabled":true,"structure_id":"njZL2syRnEjZ1JLPAlT4A0G3T_xkWy8IR8u9zuOGTbFFD0-FAaSmmw","fan_timer_active":false,"fan_timer_timeout":"1970-01-01T00:00:00.000Z","fan_timer_duration":15,"previous_hvac_mode":"","hvac_mode":"heat","time_to_target":"~0","time_to_target_training":"ready","where_name":"Kids Room","label":"livingroom","name_long":"Kids Room Thermostat (livingroom)","is_online":true,"hvac_state":"heating"},"rPEtknDQPS3o7MP9C6p6J0E47yaXjkah":{"humidity":50,"locale":"en-US","temperature_scale":"C","is_using_emergency_heat":false,"has_fan":true,"software_version":"5.6.1","has_leaf":true,"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKX86VsZHGtyQ","device_id":"rPEtknDQPS3o7MP9C6p6J0E47yaXjkah","name":"Driveway (bedroom)","can_heat":true,"can_cool":true,"target_temperature_c":26.0,"target_temperature_f":79,"target_temperature_high_c":26.0,"target_temperature_high_f":79,"target_temperature_low_c":19.0,"target_temperature_low_f":66,"ambient_temperature_c":32.0,"ambient_temperature_f":90,"away_temperature_high_c":24.0,"away_temperature_high_f":76,"away_temperature_low_c":12.5,"away_temperature_low_f":55,"eco_temperature_high_c":24.0,"eco_temperature_high_f":76,"eco_temperature_low_c":12.5,"eco_temperature_low_f":55,"is_locked":false,"locked_temp_min_c":18.0,"locked_temp_min_f":64,"locked_temp_max_c":24.5,"locked_temp_max_f":76,"sunlight_correction_active":false,"sunlight_correction_enabled":true,"structure_id":"njZL2syRnEjZ1JLPAlT4A0G3T_xkWy8IR8u9zuOGTbFFD0-FAaSmmw","fan_timer_active":false,"fan_timer_timeout":"1970-01-01T00:00:00.000Z","fan_timer_duration":15,"previous_hvac_mode":"","hvac_mode":"heat-cool","time_to_target":"~0","time_to_target_training":"ready","where_name":"Driveway","label":"bedroom","name_long":"Driveway Thermostat (bedroom)","is_online":true,"hvac_state":"heating"}},"smoke_co_alarms":{"iL6v016OOFS0lRTsd7VVsEE47yaXjkah":{"name":"Backyard (4483)","locale":"en-US","structure_id":"njZL2syRnEjZ1JLPAlT4A0G3T_xkWy8IR8u9zuOGTbFFD0-FAaSmmw","software_version":"1.0.2rc2","where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLIYzUrkeTEbQ","device_id":"iL6v016OOFS0lRTsd7VVsEE47yaXjkah","where_name":"Backyard","name_long":"Backyard Nest Protect (4483)","is_online":true,"battery_health":"replace","co_alarm_state":"warning","smoke_alarm_state":"ok","ui_color_state":"yellow","is_manual_test_active":false,"last_manual_test_time":"2019-02-12T03:16:03.000Z"}},"cameras":{"7d0uiIS5ExOB9p2NVZBVfdawtVN4MM2mozebBSgr4WXZ0IKq7NJ-PA":{"name":"Den (a58b)","software_version":"1.0.2","where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIBbzsZV4yYiA","device_id":"7d0uiIS5ExOB9p2NVZBVfdawtVN4MM2mozebBSgr4WXZ0IKq7NJ-PA","structure_id":"njZL2syRnEjZ1JLPAlT4A0G3T_xkWy8IR8u9zuOGTbFFD0-FAaSmmw","is_online":false,"is_streaming":false,"is_audio_input_enabled":true,"last_is_online_change":"2019-02-12T16:24:07.844Z","is_video_history_enabled":true,"where_name":"Den","name_long":"Den Camera (a58b)","web_url":"https://home.nest.com/cameras/CjY3ZDB1aUlTNUV4T0I5cDJOVlpCVmZkYXd0Vk40TU0ybW96ZWJCU2dyNFdYWjBJS3E3TkotUEESFlNYN01RNFBwZ0RVVHJ2UFRsR3F6ZkEaNmNxcE1TTW5uRV9VYTVqTjBlNUNsTUdIWXJGa2p1eE5QSXV0SlZhNk1xOE9GbmdWQms0Q0JtQQ?auth=961Yd2VUmZaWD_QoboipVs1_8Dd3kaBxVUzL08M4Q_eb9Wrpme7WUS4LbEqQqM1-1F3sc8jO25xWJ1HujsN7RDXQY2vyxvfnV-4Gkq4XFYOEImwBhZmkJPJvyKWXKlesmP9jdmsJSdN3kiXhSrSLxkQdXxw7ymn9u_knwQg3ZT6L5MC32UAENjSqsMb4mJoTreGd_ZDPMFf9fI","app_url":"nestmobile://cameras/CjY3ZDB1aUlTNUV4T0I5cDJOVlpCVmZkYXd0Vk40TU0ybW96ZWJCU2dyNFdYWjBJS3E3TkotUEESFlNYN01RNFBwZ0RVVHJ2UFRsR3F6ZkEaNmNxcE1TTW5uRV9VYTVqTjBlNUNsTUdIWXJGa2p1eE5QSXV0SlZhNk1xOE9GbmdWQms0Q0JtQQ?auth=961Yd2VUmZaWD_QoboipVs1_8Dd3kaBxVUzL08M4Q_eb9Wrpme7WUS4LbEqQqM1-1F3sc8jO25xWJ1HujsN7RDXQY2vyxvfnV-4Gkq4XFYOEImwBhZmkJPJvyKWXKlesmP9jdmsJSdN3kiXhSrSLxkQdXxw7ymn9u_knwQg3ZT6L5MC32UAENjSqsMb4mJoTreGd_ZDPMFf9fI"}}},"structures":{"njZL2syRnEjZ1JLPAlT4A0G3T_xkWy8IR8u9zuOGTbFFD0-FAaSmmw":{"smoke_co_alarms":["iL6v016OOFS0lRTsd7VVsEE47yaXjkah"],"name":"home","country_code":"US","postal_code":"94304","time_zone":"America/Los_Angeles","away":"home","thermostats":["rPEtknDQPS11Rd2sWP3BiUE47yaXjkah","rPEtknDQPS3o7MP9C6p6J0E47yaXjkah"],"structure_id":"njZL2syRnEjZ1JLPAlT4A0G3T_xkWy8IR8u9zuOGTbFFD0-FAaSmmw","rhr_enrollment":true,"co_alarm_state":"warning","smoke_alarm_state":"ok","eta_begin":"2019-02-12T16:43:54.000Z","wwn_security_state":"ok","wheres":{"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLYbYo4nm8RYQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLYbYo4nm8RYQ","name":"Attic"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJORw8ywI3tNw":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJORw8ywI3tNw","name":"Back Door"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLIYzUrkeTEbQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLIYzUrkeTEbQ","name":"Backyard"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKK8DALO0dqKoA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKK8DALO0dqKoA","name":"Basement"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIxqMFDWtyg_w":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIxqMFDWtyg_w","name":"Bathroom"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKMzZuai87vYw":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKMzZuai87vYw","name":"Bedroom"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKIhFfgLZOiXA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKIhFfgLZOiXA","name":"Deck"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIBbzsZV4yYiA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIBbzsZV4yYiA","name":"Den"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLRuzUDabszYQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLRuzUDabszYQ","name":"Dining Room"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJf325MtsUXvA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJf325MtsUXvA","name":"Downstairs"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKX86VsZHGtyQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKX86VsZHGtyQ","name":"Driveway"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIt8fHc3IBZ3g":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIt8fHc3IBZ3g","name":"Entryway"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJ1Fg85KLnHaw":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJ1Fg85KLnHaw","name":"Family Room"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJvF2D-T5am7g":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJvF2D-T5am7g","name":"Front Door"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIzyqvLC1l3aw":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIzyqvLC1l3aw","name":"Front Yard"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJd-kPP2yoEdw":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJd-kPP2yoEdw","name":"Garage"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLWoIVJ7vdumA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLWoIVJ7vdumA","name":"Guest House"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIVGfFIr7pIpw":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIVGfFIr7pIpw","name":"Guest Room"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKuKAYHr35BAg":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKuKAYHr35BAg","name":"Hallway"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJn-bX4XmM0ZA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJn-bX4XmM0ZA","name":"Kids Room"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLRx_vSIAYQlA":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKLRx_vSIAYQlA","name":"Kitchen"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKGKSGMUI4neg":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKGKSGMUI4neg","name":"Living Room"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKVov16Ab09TQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKVov16Ab09TQ","name":"Master Bedroom"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJ-AUio8jeajQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJ-AUio8jeajQ","name":"Office"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJyFdhmBBoX3w":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKJyFdhmBBoX3w","name":"Outside"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKfxmBIUxA2bg":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKfxmBIUxA2bg","name":"Patio"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKag9s39CysIQ":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKKag9s39CysIQ","name":"Shed"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKL9G9lQOoiE5w":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKL9G9lQOoiE5w","name":"Side Door"},"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIedOWKuWe9Eg":{"where_id":"J6yqVjaAxqn5a_kBClqe5ZcCqFOO_RDVu8zZY-o4eKIedOWKuWe9Eg","name":"Upstairs"}},"cameras":["7d0uiIS5ExOB9p2NVZBVfdawtVN4MM2mozebBSgr4WXZ0IKq7NJ-PA"]}},"metadata":{"access_token":"c.k6EriyfBpCqJBNFdoMM0zI2wVCaXrcqUj3zs2gsOFDbDEBPKB8SvlC1tSmHuuAJ09LpYr4fim4vEkyghptBfdglcKiBhDDfjIrgtfEcg15YOeJK8IqTliktYgVdWCfjrpgRTUufXfunf4FNI","client_version":3,"user_id":"z.1.1.GHQJj2VBYalNbemvUdIrI1jpXEZf3dSApwRUsAgfJ6U="}}}

But when I change the endpoint to https://developer-api.nest.com/multiplex no data can get, it always returns


event: keep-alive

data: null

Can you help me with this?