getFuelLevies API - OAuth Keys Quick Reference

🚀 Quick Start: Generate OAuth Keys for getFuelLevies API

Method 1: Developer Portal (Recommended)

Fastest and most user-friendly approach

  1. Access Portal: Navigate to https://your-domain.com/clients
  2. Login: Use admin credentials
  3. Create Client: Click “Add Client” button
  4. Fill Form:
  5. Save: Click “Create Client”
  6. Copy Keys: Note the generated Client ID (UUID format)

Method 2: Artisan Command

For command-line users

# For server-to-server access (most common)php artisan passport:client --client# Follow prompts:# - What should we name the client? getFuelLevies API Client# - Where should we redirect the request after authorization? <https://your-app.com/callback>

Output:

Client created successfully.
Client ID: 9a1b2c3d-4e5f-6789-abcd-ef1234567890
Client secret: abc123def456ghi789jkl012mno345pqr678stu901vwx234yz

Method 3: Database Query

For direct database access

-- View existing clientsSELECT id, name, secret, redirect, revoked, created_at
FROM oauth_clients
WHERE name LIKE '%fuel%' AND revoked = 0;
-- Get client detailsSELECT
    id as client_id,
    secret as client_secret,
    name,
    redirect
FROM oauth_clients
WHERE id = 'your-client-id-here';

🔑 Generate Access Token

Step 1: Get Access Token