public void GetUserJohn(userJohn req) { userJohn req = new GetRequest("John"); req.AddHeader("Autorization", "Bearer HHCL109yiUfnNcI4oj1YARq08eNr-ZkafTPw"); var response = Client.Get(req); }
public userJohn() { Client = Client ?? GetUserJohn1(); Client.BaseUrl = Url(ConfigurationManager.AppSettings.Get("GoRestBaseUrl")); }