Unhashing image file name

Tellix
New Member
1 0 0

Hi,

 

I have a API-based integration with a third party POS (retail) system.

A while ago there was a brief bug with the export/import function in Shopify that could cause some data corruption and caused some images to be deleted from Shopify.

I have a local backup of all images, so my plan was to get the image filename from the third party system (since they get this info from Shopify) and then use the resulting list to update my products again accordingly.

Unfortunately I see that the image filename that the third party system has gotten from Shopify has been hashed by Shopify.

 

As such, I'm wondering if:

1. Can the names be unhashed? Is this method public?

2. Does the hashing always produce the same result? Could I in theory hash my local backup and then get filenames that should be the same as in the third party application?

0 Likes
Greg_Kujawa
Shopify Partner
942 79 201

Here is a GraphQL API example. Pulling the first 5 products, iterating through them, pulling the first 5 images for each. The originalSrc field value should contain the URI that points to the image. Hope this helps!

{
  products(first: 5) {
    edges {
      node {
        id
        title
        images(first: 5) {
          edges {
            node {
              id
              originalSrc
            }
          }
        }        
      }
    }
  }
}

 

0 Likes