title: Yammer authorization error
body: <p>I am getting the following error while trying to run this code:</p>
  
  <pre><code>        function getCurrentUser() {
          yam.platform.request({
              // yam.request({
              url: "users/current.json", //this is one of many REST endpoints that are available
              method: "GET",
  
              data: {},
              success: function (user) { //print message response information to the console
                  console.log("User request was successful.");
                  console.dir(user);
                  toggleLoginStatus(true);
                  $('#authResult').html('User Result:&lt;br/&gt;');
                  for (var field in user) {
                      $('#authResult').append(' ' + field + ': ' +
                          escape(user[field]) + '&lt;br/&gt;');
                  }
  
              },
              error: function (user) {
                  console.error("There was an error with the request.");
              }
          });
  
      }  
  </code></pre>
  
  <p><code>Error:
  XMLHttpRequest cannot load https://api.yammer.com/api/v1/users/current.json?_=1407933095976. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://brillioonline.sharepoint.com' is therefore not allowed access.</code></p>
  
  <p>I am trying to use the following code in order to solve the error, but have no clue what token is here:</p>
  
  <pre><code>$.ajax(
  'https://app.asana.com/api/1.0/users/me',
  {
  type: 'GET',
  dataType: 'json',
  beforeSend: function (xhr) {
    xhr.setRequestHeader("Authorization", "Bearer $token")
  },
  complete: function (resp) {
    console.log(resp);
  },
  error: function (jqXHR,  textStatus,  errorThrown) {
    console.log(textStatus);
  }
  }
   );
  </code></pre>
  
  <p>Please help me with this, i am a beginner</p>