List Cable TV Bouquets
curl --request GET \
--url https://api.bleeprs.com/api/CableTVList \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bleeprs.com/api/CableTVList"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bleeprs.com/api/CableTVList', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bleeprs.com/api/CableTVList",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bleeprs.com/api/CableTVList"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bleeprs.com/api/CableTVList")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bleeprs.com/api/CableTVList")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gatewayStatus": "00",
"gatewayMessage": "Successfully Processed",
"requestReference": "bpr_req_a1b2c3d4e5f6",
"data": [
{
"id": 123,
"network": "<string>",
"productCode": "<string>",
"description": "<string>",
"amount": 123,
"percentage": 123
}
]
}Vending
Cable TV Bouquets
Retrieve the catalog of bouquets/plans for Cable TV providers.
GET
/
CableTVList
List Cable TV Bouquets
curl --request GET \
--url https://api.bleeprs.com/api/CableTVList \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bleeprs.com/api/CableTVList"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bleeprs.com/api/CableTVList', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bleeprs.com/api/CableTVList",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bleeprs.com/api/CableTVList"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bleeprs.com/api/CableTVList")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bleeprs.com/api/CableTVList")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gatewayStatus": "00",
"gatewayMessage": "Successfully Processed",
"requestReference": "bpr_req_a1b2c3d4e5f6",
"data": [
{
"id": 123,
"network": "<string>",
"productCode": "<string>",
"description": "<string>",
"amount": 123,
"percentage": 123
}
]
}Overview
Retrieve the catalog of available bouquets and plans for Cable TV providers. You can optionally filter by provider network to get plans specific to DSTV, GOTV, etc.Query Parameters
Response
Thedata field is an array of bouquet entries. Each entry contains the fields below.
Response Fields
number
Unique catalog item ID.
string
Cable TV provider for the package (e.g.
DSTV, GOTV, STARTIMES).string
Package code to submit as
bouquetCode when purchasing.string
Customer-readable bouquet or package name.
number
Package amount in Naira.
number
Customer commission rate for the package, when available.
Example Response
{
"gatewayStatus": "00",
"gatewayMessage": "Successfully Processed",
"requestReference": "bpr_req_a1b2c3d4e5f6",
"data": [
{
"id": 21,
"network": "DSTV",
"productCode": "DSTV_PACKAGE_CODE",
"description": "DSTV Compact",
"amount": 15700,
"percentage": 1.0
}
]
}
Notes
- Use the returned
productCodeas thebouquetCodewhen purchasing a subscription. - Use the returned
networkas theproviderwhen validating or purchasing. - Validate the smartcard before purchase so the customer can confirm their account details.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter results by provider (e.g. DSTV, GOTV, STARTIMES)
Was this page helpful?