You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to find all metafields for a Customer that has a specific namespace and key
Basically, this cURL request
curl --location --request GET 'https://{{store_domain.com}}/admin/api/2022-01/metafields.json?namespace={{namespace}}&key={{key}}' \
--header 'X-Shopify-Access-Token: {{access_token}}'
In my code I'm using the Customer.ListMetafields method like so:
metafield, err:=client.Customer.ListMetafields(shopifyID, goshopify.Metafield{
Namespace: "{{namespace}}",
Key: "{{key}}",
})
iferr!=nil {
lib.CheckError("failed to get Shopify metafield", err)
}
But instead of getting a filtered list of Metafields I'm getting all of the customer's metafields. Is this an issue with the package or am I just doing something silly?
The text was updated successfully, but these errors were encountered:
Hi All,
I'm trying to find all metafields for a Customer that has a specific
namespace
andkey
Basically, this cURL request
In my code I'm using the
Customer.ListMetafields
method like so:But instead of getting a filtered list of Metafields I'm getting all of the customer's metafields. Is this an issue with the package or am I just doing something silly?
The text was updated successfully, but these errors were encountered: