Example #1
0
        private string Http(string command, RequestMethod method, params WeiboParameter[] parameters)
        {
            var url = string.Empty;

            if (command.StartsWith("http://") || command.StartsWith("https://"))
            {
                url = command;
            }
            else
            {
                url = string.Format("{0}{1}.json", BASE_URL, command);
            }
            return(OAuth.Request(url, method, parameters));
        }