How decoderid/gojek-api-php-native works
This is a native PHP client for Gojek’s unofficial API. A caller creates the client, requests login, verifies an OTP, and may complete GoPay PIN 2FA before using account, transaction, transfer, and QR-payment operations; the library returns API responses to that caller. The main implementation centralizes endpoint calls and HTTP transport in one class, with endpoint and device settings in constants. README capabilities are included even where their method implementations were not excerpted; those links are documented rather than independently verified in source.
Main entry points: GojekApi.php HTTP transport · Example.php Usage example · Constant.php API settings
Components 16
Authentication
- Login and OTP
src/GojekApi.php - PIN 2FA
src/GojekApi.php - Session controls
src/GojekApi.php - PIN update
src/GojekApi.php
Account data
- Profile and balance
src/GojekApi.php - Transaction history
src/GojekApi.php
Payments
- Bank directory
src/GojekApi.php - Bank transfer
src/GojekApi.php - GoPay transfer
src/GojekApi.php - QR validation
src/GojekApi.php - QR payment
src/GojekApi.php
Client runtime
- Usage example
Example.php - HTTP transport
src/GojekApi.php - API settings
src/Constant.php
Other components
- API caller
- Gojek services
Connections 19
- API caller → Usage example: runs
README.md - Usage example → Login and OTP: starts login
Example.php - Usage example → PIN 2FA: verifies challenge
Example.php - Login and OTP → HTTP transport: sends requests
src/GojekApi.php - PIN 2FA → HTTP transport: sends requests
src/GojekApi.php - Session controls → HTTP transport: sends requests
src/GojekApi.php - Profile and balance → HTTP transport: sends requests
README.md - Transaction history → HTTP transport: sends requests
src/GojekApi.php - Bank directory → HTTP transport: sends requests
src/GojekApi.php - Bank transfer → HTTP transport: sends requests
src/GojekApi.php - Bank transfer → Bank directory: validates bank
src/GojekApi.php - GoPay transfer → HTTP transport: sends requests
src/GojekApi.php - GoPay transfer → QR validation: validates recipient
src/GojekApi.php - QR validation → HTTP transport: sends requests
src/GojekApi.php - QR payment → HTTP transport: sends requests
src/GojekApi.php - QR payment → QR validation: uses validation
src/GojekApi.php - PIN update → HTTP transport: sends requests
src/GojekApi.php - HTTP transport → Gojek services: HTTP calls
src/GojekApi.php - API settings → HTTP transport: configures headers
src/GojekApi.php