Example #1
0
        public GistPublishResult Publish(GistPublishRequest gistRequest)
        {
            var json = gistRequest.Serialize();
            var postResult = PostJson(json);

            dynamic result = JsonConvert.DeserializeObject(postResult);

            return new GistPublishResult { Url = result.html_url };
        }
        public GistPublishResult Publish(GistPublishRequest gistRequest)
        {
            var json       = gistRequest.Serialize();
            var postResult = PostJson(json);

            dynamic result = JsonConvert.DeserializeObject(postResult);

            return(new GistPublishResult {
                Url = result.html_url
            });
        }