Back to Collection Items
        #include <CkHttpW.h>
#include <CkJsonObjectW.h>
#include <CkHttpResponseW.h>
void ChilkatSample(void)
    {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.
    CkHttpW http;
    bool success;
    http.put_BasicAuth(true);
    http.put_Login(L"{{secretId}}");
    http.put_Password(L"{{secretPassword}}");
    CkJsonObjectW queryParams;
    queryParams.UpdateInt(L"page",1);
    CkHttpResponseW resp;
    success = http.HttpParams(L"GET",L"https://domain.com/investments/portfolios/",queryParams,resp);
    if (success == false) {
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }
    wprintf(L"%d\n",resp.get_StatusCode());
    wprintf(L"%s\n",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": [
  ]
}