Foxpro / Shopify / Get all gift cards that matches the query
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.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateString("query","<post>")
loHttp.SetRequestHeader("Content","<>")
loResp = loHttp.QuickRequestParams("GET","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/gift_cards/search.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 "query=%3Cpost%3E"
-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/gift_cards/search.json
Postman Collection Item JSON
{
"name": "Get all gift cards that matches the query",
"request": {
"method": "GET",
"header": [
{
"key": "Content",
"value": "<>"
}
],
"url": {
"raw": "{{baseUrl}}/admin/gift_cards/search.json?query=<post>",
"host": [
"{{baseUrl}}"
],
"path": [
"admin",
"gift_cards",
"search.json"
],
"query": [
{
"key": "query",
"value": "<post>"
}
]
},
"description": "Get all gift cards that matches the query."
},
"response": [
]
}