Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Chilkat.Http http = new Chilkat.Http();
bool success;
http.BasicAuth = true;
http.Login = "{{secretId}}";
http.Password = "{{secretPassword}}";
Chilkat.JsonObject queryParams = new Chilkat.JsonObject();
queryParams.UpdateInt("page",1);
Chilkat.HttpResponse resp = http.QuickRequestParams("GET","https://domain.com/investments/portfolios/",queryParams);
if (http.LastMethodSuccess == false) {
Debug.WriteLine(http.LastErrorText);
return;
}
Debug.WriteLine(Convert.ToString(resp.StatusCode));
Debug.WriteLine(resp.BodyStr);
Curl Command
curl -G -d "page=1"
-u '{{secretId}}:{{secretPassword}}'
https://domain.com/investments/portfolios/
Postman Collection Item JSON
{
"name": "List",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/investments/portfolios/?page=1",
"host": [
"{{baseUrl}}"
],
"path": [
"investments",
"portfolios",
""
],
"query": [
{
"key": "page",
"value": "1"
}
]
}
},
"response": [
]
}