Below is the code sample
public string getIssueList(string email)
{
dynamic JsonContent = "";
string url = baseAddress + "resource/Issue/?fields=[%22subject%22,%22status%22]&filters=[[%22Issue%22,%22raised_by%22,%22=%22,%22" + email + "%22]]";
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12
| SecurityProtocolType.Ssl3;
HttpClientHandler handler = new HttpClientHandler();
HttpClient client = new HttpClient(handler);
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("token", AccessToken);
var APIResponse = client.GetAsync(url).Result;
if (APIResponse.IsSuccessStatusCode)
{
JsonContent = APIResponse.Content.ReadAsStringAsync().Result;
WriteToFile(" getIssueList APIResponse : " + JsonContent.ToString());
}
return JsonContent;
}
the link in above code is making some problem I think when I am sending get request in response it is getting StatusCode: 403, ReasonPhrase: 'FORBIDDEN', Version: 1.1.....
I think it is not accepting the %22 => " in raw string " is also it is not working