PRODUCTS FROM API IN PHP JSON OUTPUT NEEDED!!!

Somaprotect
Shopify Partner
1 0 0

I used this, to get the Products from the Shopify Shop into my custom Laravel PHP Framework Online Shop (Headless)

 

<?php
// Parameters
$API_KEY = "{...}";
$PASSWORD =  "shpa{...}";
$SHOP_URL_NAME = "{shopname...}";
// Rest Api Endpoint
$endpoint = '.myshopify.com/admin/api/2022-10/products.json';
$method = 'GET';
// URL
$url = "https://" . $API_KEY . ":" . $PASSWORD . "@" . $SHOP_URL_NAME . $api_endpoint;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
// SSL important
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);

But now this is not working anymore, 

and I do not know where to find this Parameters today!!! It is some years ago, that it worked that way for me. 

ALL LOOKS TERRIBLE for me now!!! Don`t know what the alternative today is... ??? PLEASE HELP ME!!!

Replies 0 (0)