Chilkat Online Tools

Python / Shopify / Get a count of all metafields for a store

Back to Collection Items

import sys
import chilkat

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

http = chilkat.CkHttp()

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

sbResponseBody = chilkat.CkStringBuilder()
success = http.QuickGetSb("httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/metafields/count.json",sbResponseBody)
if (success == False):
    print(http.lastErrorText())
    sys.exit()

print("Response status code = " + str(http.get_LastStatus()))
print(sbResponseBody.getAsString())

Curl Command

curl -X GET
	-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/metafields/count.json

Postman Collection Item JSON

{
  "name": "Get a count of all metafields for a store",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Content",
        "value": "<>"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/admin/metafields/count.json",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "admin",
        "metafields",
        "count.json"
      ]
    },
    "description": "Get a count of all metafields for a store."
  },
  "response": [
  ]
}