예제 #1
0
파일: Client.cs 프로젝트: vebin/WeiboSdk
        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));
        }