#!/usr/bin/env php
===========================================
Advanced Amrod API Diagnostic
===========================================
Configuration:
Base URL: https://vendorapi.amrod.co.za
Username: your_amrod_username
Password: *******************
KEY FINDING: /api/v1/products exists but auth failed!
This means:
1. The endpoint structure is: /api/v1/...
2. But authentication needs to be different
============================================================
Testing Different Authentication Methods
============================================================
Method 1: Basic Auth with email as username
URL: https://vendorapi.amrod.co.za/api/v1/categories
Result: ✗ Failed - HTTP 401
Method 3: Original base URL without /api/v1
URL: https://vendorapi.amrod.co.za/categories
Result: ✗ Failed - HTTP 404
Method 4: Looking for authentication/token endpoint
Warning: Undefined variable $curl_exec in /home/admartagencycoza/public_html/zamrod/diagnose-amrod-advanced.php on line 90
Fatal error: Uncaught Error: Value of type null is not callable in /home/admartagencycoza/public_html/zamrod/diagnose-amrod-advanced.php:90
Stack trace:
#0 {main}
thrown in /home/admartagencycoza/public_html/zamrod/diagnose-amrod-advanced.php on line 90