Chilkat Online Tools

Foxpro / Shopify / Retrieving all one-time charges since a specified ID

Back to Collection Items

LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp

* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.

loHttp = CreateObject('Chilkat_9_5_0.Http')

loQueryParams = CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams.UpdateString("since_id","<>")

loHttp.SetRequestHeader("Content","<>")

loResp = loHttp.QuickRequestParams("GET","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/application_charges.json",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loQueryParams
    CANCEL
ENDIF

? STR(loResp.StatusCode)
? loResp.BodyStr
RELEASE loResp

RELEASE loHttp
RELEASE loQueryParams

Curl Command

curl -G -d "since_id=%3C%3E"
	-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/application_charges.json

Postman Collection Item JSON

{
  "name": "Retrieving all one-time charges since a specified ID",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Content",
        "value": "<>"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/admin/application_charges.json?since_id=<>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "admin",
        "application_charges.json"
      ],
      "query": [
        {
          "key": "since_id",
          "value": "<>"
        }
      ]
    },
    "description": "Retrieving all one-time charges since a specified id."
  },
  "response": [
  ]
}