1app
Create Boldd AccountLogin
  • Introduction
  • Authentication
  • Balance
  • Get Exchange Rate
  • Response Code
  • RECEIVE PAYMENTS
    • Payments
      • Initialize Payment
      • Verify Payment
      • Payment List
      • Payment Details
    • Inline/Popup Checkout
    • Payouts / Settlements
      • Payouts List
      • Settlement Transactions
    • Dispute Management
      • Fetch Disputes
      • Accept a Dispute
      • Decline a Dispute
    • Customers List
    • Webhook Notifications
    • Repush Notification
  • Virtual Accounts
    • Get Available Banks
    • Setup Preferred Bank
    • Generate Account
    • Virtual Account List
    • Account Transactions
    • Virtual Account Webhook
      • Notifications history
  • MAKE PAYMENTS
    • Airtime Purchase
    • Send Money
      • Verify Account Number
      • Make Transfer
    • Data Purchase
      • Data Plans
      • Data Bundle
    • Electricity
      • Electricity Billers
      • Verify Meter Number
      • Vend Electricity
    • Cable TV
      • Cable TV List
      • Verify IUC
      • Vend CableTv
    • Bank List
    • Payment Status
  • CUSTOMERS
    • Create Customer
  • VIRTUAL CARDS
    • Create Card Account
    • Cards Issuance
    • Card Funding
    • Card Transactions
    • Get all Cards
    • Cards Details
    • Cards Pan
    • Freeze and Unfreeze Card
  • USD Account
    • Create USD Account
  • IDENTITY
    • BVN Check
    • NIN Checks
  • SUB-ACCOUNTS
    • Create a Sub-Account
    • Attach Bank to a Sub-Account
    • Attach Payout Account
    • Get All Sub-Accounts
    • Sub-Accounts History
    • Sub-Accounts Wallet
  • Miscellaneous
    • Create Wallet
    • Universal Blacklist
  • Contact
    • Contact Us
Powered by GitBook
On this page
  • Get Cable Tv List
  • Sample Response

Was this helpful?

  1. MAKE PAYMENTS
  2. Cable TV

Cable TV List

Get Cable Tv List

GET {{base_url}}/listcabletv

TV : DSTV, GOTV, STARTIMES

Headers

Name
Type
Description

authorization*

PUBLIC_KEY

Set value to Bearer PUBLIC_KEY

Request Body

Name
Type
Description

tv

String

TV Provider as shown above

{
    "status": true,
    "message": "CableTV List Retrieved",
    "cablelist": [
        {
            "code": "dstv-padi",
            "name": "DStv Padi N2,150",
            "Amount": "2150.00",
            "description": ""
        },
        {
            "code": "dstv-yanga",
            "name": "DStv Yanga N2,950",
            "Amount": "2950.00",
            "description": ""
        },
        {
            "code": "dstv-confam",
            "name": "Dstv Confam N5,300",
            "Amount": "5300.00",
            "description": ""
        },
        {
            "code": "dstv79",
            "name": "DStv  Compact N9,000",
            "Amount": "9000.00",
            "description": ""
        },
        {
            "code": "dstv3",
            "name": "DStv Premium N21,000",
            "Amount": "21000.00",
            "description": ""
        },
        {
            "code": "dstv6",
            "name": "DStv Asia N7,100",
            "Amount": "7100.00",
            "description": ""
        },
        {
            "code": "dstv7",
            "name": "DStv Compact Plus N14,250",
            "Amount": "14250.00",
            "description": ""
        },
        {
            "code": "dstv9",
            "name": "DStv Premium-French N29,300",
            "Amount": "29300.00",
            "description": ""
        },
        {
            "code": "dstv10",
            "name": "DStv Premium-Asia N23,500",
            "Amount": "23500.00",
            "description": ""
        }        
    ]
}

Take a look at how you might do this:

curl --location --request GET 'https://api.oneappgo.com/v1/listcabletv?tv=DSTV' \
--header 'Authorization: Bearer PUBLIC_KEY'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://api.oneappgo.com/v1/listcabletv?tv=DSTV',
  'headers': {
    'Authorization': 'Bearer PUBLIC_KEY'
  },
  formData: {

  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Sample Response

{
    "status": true,
    "message": [
        {
            "code": "gotv-max",
            "name": "GOtv Max N3,600",
            "Amount": "3600.00",
            "description": ""
        },
        {
            "code": "gotv-jolli",
            "name": "GOtv Jolli N2,460",
            "Amount": "2460.00",
            "description": ""
        },
        {
            "code": "gotv-jinja",
            "name": "GOtv Jinja N1,640",
            "Amount": "1640.00",
            "description": ""
        }
    ]
}
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.oneappgo.com/v1/listcabletv?tv=DSTV',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer PUBLIC_KEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://api.oneappgo.com/v1/listcabletv?tv=DSTV"

payload={}
files={}
headers = {
  'Authorization': 'Bearer PUBLIC_KEY'
}

response = requests.request("GET", url, headers=headers, data=payload, files=files)

print(response.text)
var headers = {
  'Authorization': 'Bearer PUBLIC_KEY'
};
var request = http.MultipartRequest('GET', Uri.parse('https://api.oneappgo.com/v1/listcabletv?tv=DSTV'));

request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
  print(await response.stream.bytesToString());
}
else {
  print(response.reasonPhrase);
}

Sample Response

{
    "status": true,
    "message": "CableTV List Retrieved",
    "cablelist": [
        {
            "code": "dstv-padi",
            "name": "DStv Padi N2,150",
            "Amount": "2150.00",
            "description": ""
        },
        {
            "code": "dstv-yanga",
            "name": "DStv Yanga N2,950",
            "Amount": "2950.00",
            "description": ""
        },
        {
            "code": "dstv-confam",
            "name": "Dstv Confam N5,300",
            "Amount": "5300.00",
            "description": ""
        },
        {
            "code": "dstv79",
            "name": "DStv  Compact N9,000",
            "Amount": "9000.00",
            "description": ""
        },
        {
            "code": "dstv3",
            "name": "DStv Premium N21,000",
            "Amount": "21000.00",
            "description": ""
        },
        {
            "code": "dstv6",
            "name": "DStv Asia N7,100",
            "Amount": "7100.00",
            "description": ""
        },
        {
            "code": "dstv7",
            "name": "DStv Compact Plus N14,250",
            "Amount": "14250.00",
            "description": ""
        },
        {
            "code": "dstv9",
            "name": "DStv Premium-French N29,300",
            "Amount": "29300.00",
            "description": ""
        },
        {
            "code": "dstv10",
            "name": "DStv Premium-Asia N23,500",
            "Amount": "23500.00",
            "description": ""
        }        
    ]
}
PreviousCable TVNextVerify IUC

Last updated 2 years ago

Was this helpful?