Пример #1
0
        public void GetUserJohn(userJohn req)
        {
            userJohn req = new GetRequest("John");

            req.AddHeader("Autorization", "Bearer HHCL109yiUfnNcI4oj1YARq08eNr-ZkafTPw");
            var response = Client.Get(req);
        }
Пример #2
0
 public userJohn()
 {
     Client         = Client ?? GetUserJohn1();
     Client.BaseUrl = Url(ConfigurationManager.AppSettings.Get("GoRestBaseUrl"));
 }