title: get messages from backend service app from device twins in microsoft azure
body: <p>My goal is to update my service side app (in Node.js) when my azure device twin is updated or when I call the function. But I cant figure out how to do it. Is there a way to accomplish this with only the shared access primary key (in other words without the device key).</p>
  <p>From my research I have found that this might work (but not sure)</p>
  <pre><code>Twin.get (){
  }
  </code></pre>
  <p>The problem I have is I don't know how to complete this code.
  In this link I have given a screen shot of the function and its description.
  <a href="https://i.stack.imgur.com/g4SHe.png" rel="nofollow noreferrer">screenshot</a></p>
  <p>Can anyone of you suggest a suitable code which might work(Doesn't have to be the one I mentioned)</p>
  <p>Thanks in advance</p>