I'm trying to pull down some data from a Web Service using Flurl but I'm getting the error:
Unexpected character encountered while parsing value: s. Path '', line 0, position 0.
My code is:
var responseString = ("foobar")
.WithHeader("Authorization", "Bearer f848e6d088a3324fc13d0a989296406b12f84730")
.WithHeader("Accept", "application/json")
.GetAsync()
.ReceiveJson<HerdData>();
....
public class HerdData
{
public List<Herd> data { get; set; }
}
I can't seem to get any data back and not sure what's going wrong as in Post Man I can access the data using the URL and auth token.