#!/usr/bin/env php =========================================== Amrod API Diagnostic Tool =========================================== Base URL: https://vendorapi.amrod.co.za Username: your_amrod_username Password: ******************* Testing endpoints... ------------------------------------------------------------ Testing: /categories Full URL: https://vendorapi.amrod.co.za/categories HTTP Status: 404 ✗ Not found - endpoint doesn't exist Testing: /products Full URL: https://vendorapi.amrod.co.za/products HTTP Status: 404 ✗ Not found - endpoint doesn't exist Testing: /products/all Full URL: https://vendorapi.amrod.co.za/products/all HTTP Status: 404 ✗ Not found - endpoint doesn't exist Testing: /product Full URL: https://vendorapi.amrod.co.za/product HTTP Status: 404 ✗ Not found - endpoint doesn't exist Testing: /api/products Full URL: https://vendorapi.amrod.co.za/api/products HTTP Status: 404 ✗ Not found - endpoint doesn't exist Testing: /api/v1/products Full URL: https://vendorapi.amrod.co.za/api/v1/products HTTP Status: 401 ✗ Authentication failed - check username/password Testing: /v1/products Full URL: https://vendorapi.amrod.co.za/v1/products HTTP Status: 404 ✗ Not found - endpoint doesn't exist ============================================================ Diagnostic complete! Based on the results above: 1. If you see ✓ SUCCESS on any endpoint, that's the correct one 2. If all show ✗ Authentication failed, check your credentials 3. If all show ✗ Not found, the base URL might be wrong To fix the code: 1. Update src/AmrodAPI.php 2. Change the endpoint in getAllProducts() method 3. Use the working endpoint from above Testing authentication with /categories endpoint... Status: 404