I have implemented the following method:
var client = new RestClient(string.Format(url, ponumber));
var response = client.Get(
new RestRequest(Method.GET)
.AddHeader("accept", "application/json")
.AddHeader("content-type", "application/json")
.AddHeader("authorization", string.Format("Bearer {0}", myToken))
);
The response is in Format "application/pdf". How can i convert that response to a PDF-File?