How to use httpGet and httpPost for API

Take a look at system.net.httpClient():