I'm trying to use HTTPclient to post to a 3rd party api and get a response. I'm able to post to the api but the problem i'm having is that the api requires the programid to be numeric. Whenever i try to post with this code it throws it back telling me to make the programid numeric.
I'm at a loss as to how to send a numeric via a c#/.net post
using (var client = new HttpClient())
{
var values = new Dictionary<string, string>
{
{ "accesstoken", authtoken },
{ "programid", programid},
{ "email", person.Email },
{ "thirdparty1", person.ID.ToString() }
};
var content = new FormUrlEncodedContent(values);
var response = client.PostAsync("url", content);
var responseString = response.Result.Content.ReadAsStringAsync();
}