title: Yammer API - Creating a post on Yammer
body: <p>I'm trying to use the Yammer API to create a post on Yammer,
  I have the following code:</p>
  <pre><code>    &lt;!DOCTYPE html&gt;
  
  &lt;html lang=&quot;en&quot; xmlns=&quot;http://www.w3.org/TR/html5/&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot; /&gt;
      &lt;title&gt;YammerNotification - Version 1&lt;/title&gt;
      &lt;script src=&quot;https://assets.yammer.com/platform/yam.js&quot;&gt;&lt;/script&gt;
      &lt;script&gt;
          yam.config({ appId: &quot;APP-ID&quot; });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button onclick='post()'&gt;Post on Yammer!&lt;/button&gt;
      &lt;script&gt;
          function post() {
              yam.getLoginStatus(function (response) {
                  if (response.authResponse) {
                      yam.request(
                        {
                            url: &quot;https://www.yammer.com/api/v1/messages.json&quot;
                        , method: &quot;POST&quot;
                        , data: { &quot;body&quot;: &quot;This Post was Made Using the Yammer API.  Welcome to the Yammer API World.&quot; }
                        , success: function (msg) { alert(&quot;{Post was Successful!}: &quot; + msg); }
                        , error: function (msg) { alert(&quot;Post was Unsuccessful...&quot; + msg); }
                        }
                      )
                  } else {
                      yam.login(function (response) {
                          if (!response.authResponse) {
                              yam.request(
                                {
                                    url: &quot;https://www.yammer.com/api/v1/messages.json&quot;
                                , method: &quot;POST&quot;
                                , data: { &quot;body&quot;: &quot;This Post was Made Using the Yammer API.  Welcome to the Yammer API World.&quot; }
                                , success: function (msg) { alert(&quot;{Post was Successful!}: &quot; + msg); }
                                , error: function (msg) { alert(&quot;Post was Unsuccessful...&quot; + msg); }
                                }
                              );
                          }
                      });
                  }
              });
          }
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Although what would my APP ID be? And how do I tell it what group I want to put a post to?</p>
  <p>Any suggestions are greatly appreciated</p>
  <h1>yammer</h1>