public void PostActivity(Activity activity)
        {
            YammerRequest yr = this.CreateRequest();

            yr.EndPoint = YammerEndPoint.Activity;

            ActivityUpdate au = new ActivityUpdate();

            au.Activity = activity;

            yr.Method      = "POST";
            yr.ContentType = "application/json";
            yr.BeginInit();

            Stream content = yr.GetRequestStream();

            DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(ActivityUpdate), this.Settings);

            serializer.WriteObject(content, au);



            Stream responseStream = yr.GetResponseStream();

            StreamReader sr = new StreamReader(responseStream);

            String body = sr.ReadToEnd();
        }
        public void PostActivity(Activity activity)
        {
            YammerRequest yr = this.CreateRequest();

            yr.EndPoint = YammerEndPoint.Activity;

            ActivityUpdate au = new ActivityUpdate();
            au.Activity = activity;

            yr.Method = "POST";
            yr.ContentType = "application/json";
            yr.BeginInit();

            Stream content = yr.GetRequestStream();

            DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(ActivityUpdate), this.Settings);

            serializer.WriteObject(content, au);

            Stream responseStream = yr.GetResponseStream();

            StreamReader sr = new StreamReader(responseStream);

            String body = sr.ReadToEnd();
        }