title: Steam API get current user status
body: <p>I'm trying to use the steam web API to show the current status of ONE steam user if he is (online,away,offline,looking to trade) etc and have setup a PHP switch as follows:</p>
  
  <pre><code>&lt;?
  $status = $steamprofile['personastate'];
  switch($status) {
      case 0:
          echo "offline!";
          break;
      case 1:
          echo "online!";
          break;
      case 2:
          echo "Busy.";
          break;
      case 3:
          echo "Away.";
          break;
      case 4:
          echo "Snooze.";
          break;
      case 5:
          echo "Looking to trade.";
          break;
      case 6:
          echo "Looking to play.";
          break;
      default:
          echo "Unknown status";
  }
  echo $status;
  ?&gt;
  </code></pre>
  
  <p>It works great but only shows the user status when logged unto the site and not simply when the user is online/away/offline etc on the steam platform.</p>
  
  <p>I'm wondering if anyone know how to fix so it displays the current user status on steam, not just if he/she is logged in on the website.</p>