Skip to content

mtvbrianking/ussd-demo

Repository files navigation

Demo USSD App

Based on bmatovu/laravel-ussd

Generic Demo

CURL

curl http://localhost:8000/api/ussd \
  -d 'phone_number=256772100103' \
  -d 'service_code=*384#' \
  -d 'input=*384*1#' \
  -d 'answer=1' \
  -d 'session_id=629a23043b8c7' \
  -d 'network_code=6001'

CLI Simulator

./phone --help
./phone 256772100103
./phone 256772100103 --dail "*384*1#"

Africastalking Demo

Online Simulator

CURL

curl http://localhost:8000/api/ussd/africastalking \
  -d 'phoneNumber=+256772100103' \
  -d 'serviceCode=*384*35711#' \
  -d 'text=' \
  -d 'sessionId=ATUid_6c772a68e52bfc41e8e8d5289db4d90c' \
  -d 'networkCode=99999'

CLI Simulator

./africastalking --help
./africastalking 256772100103
./africastalking 256772100103 --dail "*384*35711#"