curl API command to C# and Json URL

erichugheserichughes CAMember

Hi everyone,

I have an API token with url from onfido and I wanted to know how to write it as a url string api

from the webservices sample they do it this way with the longitude and latitude

string url = "http://api.geonames.org/findNearByWeatherJSON?lat=" +
latitude.Text +
"&lng=" +
longitude.Text +
"&username=demo";

the API docs says to use Curl

With curl, you can just pass the correct header with each request

curl -H "Authorization: Token token=your_api_token"
https://api.onfido.com/v1/applicants

can anybody help me convert this so I can pull the JSON data for my android app?

thanks,

Eric

Best Answer

Answers

  • erichugheserichughes CAMember
  • erichugheserichughes CAMember

    are there any more tutorials/guides/documentation for someone who has not done much web client stuff before

Sign In or Register to comment.