<?php $__env->startSection('content'); ?>


                                 <div class="nk-content nk-content-fluid">
                        <div class="container-xl wide-lg">
                            <div class="nk-content-body">
               </div>
                                            <div class="nk-block-between-md g-4">
                                                <div class="nk-block-head-content">
                                                    <h4 class="nk-block-title fw-normal">Cable TV Bouquet Developer API</h4>
                                                    <div class="nk-block-des"></div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="nk-block">
                                            <div class="support-topic-details card card-bordered">
                                                <div class="card-inner">
                                                    <div class="entry">
                                                        <h6 class="text-primary">Using Your APi Key</h6>

                                                        <p><table class="table-responsive">
                                                            <thead style="outline: none !important;">
	 	<tr>
			<td style="outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221);">
			APIKey</td>
			<td style="outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221);">
			<?php echo e(Auth::User()->token); ?></td>
		</tr>
	</thead>
	<tbody style="outline: none !important;">
		<tr style="outline: none !important;">
			<td style="border-left:1px solid rgb(221, 221, 221); border-top:1px solid rgb(221, 221, 221); outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; ">
			Cable TV</td>
			<td style="border-left:1px solid rgb(221, 221, 221); border-top:1px solid rgb(221, 221, 221); outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; ">
			<p style="outline: none !important; margin: 0px 0px 10px;">01 for
			DStv</p>
			<p style="outline: none !important; margin: 0px 0px 10px;">02 for
			GOtv</p>
			<p style="outline: none !important; margin: 0px 0px 10px;">03 for
			StarTimes</p>
			</td>
		</tr>
		<tr style="outline: none !important;">
			<td style="outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221);">
			Package</td>
			<td style="outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(221, 221, 221);">
            <table class="table">
    <thead>
        <tr>
            <th scope="col">Decoder Codes</th>
            <th scope="col">Subscription Plan</th>
            <th scope="col">Subscription Code</th>
            <th scope="col">Bouquet Cost</th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $bundle; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <th><?php echo e(App\Decoder::whereCode($data->code)->first()->name); ?><br><?php echo e($data->code); ?></th>
            <td><?php echo e($data->name); ?></td>
            <td><?php echo e($data->plan); ?></td>
            <td>
                <span class="badge label-inline badge-info font-weight-bold">
                    <?php echo e($basic->currency); ?><?php echo e($data->cost); ?>

                </span>
            </td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
			 </td>
		</tr>
		<tr>
			<td style="border-left:1px solid rgb(221, 221, 221); border-top:1px solid rgb(221, 221, 221); outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; ">
			DecoderNumber</td>
			<td style="border-left:1px solid rgb(221, 221, 221); border-top:1px solid rgb(221, 221, 221); outline: none !important; padding: 8px; line-height: 20px; text-align: left; vertical-align: top; ">
			<p style="outline: none !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 10px">
			Recipient Decoder Number</td>
		</tr>

		</table>
                                                        </p>
                                                        <h5 class="text-primary">How it works</h5><hr><br>

                                                        <h6 class="text-primary">First Step: <small>Decoder Verification</small></h6>
                                                        <p>Before you begin this process, you will need to first verify the decoder number you are subscribing on
                                                        to ensure you dont recharge a wrong or unintended decoder number. Our API call will return the decoder details if it is correct
                                                        before you proceed with the recharge process.
                                                            <br> Lets Verify Gotv Decoder Number With IUC Number: <b> 1234567890</b><br>

https://<?php echo e($basic->siteurl); ?>/developer-apiV1/cabletv_verify/YOUR_API_KEY/Decoder_Type/Decoder_Number<br>

<b>API Call Will Be As Follow:</b><br>
https://<?php echo e($basic->siteurl); ?>/developer-api-V1/cabletv_verify/<?php echo e(Auth::User()->token); ?>/02/1234567890<br>

<b>Successful JSON response</b>
<BR>
{"status":"Successful","name":"HAMMED CHUKUWMA ADEBOWALE"}
<br>
<b>Unsuccessful JSON response</b>
<BR>
{"status":"Declined","reason":"Invalid Decoder Number"}

<hr><br>
<h6 class="text-primary">Second Step: <small>Decoder Subscription</small></h6>
Now, lets Buy GOTV Value bouquet for the decoder: <b> 1234567890</b><br>

https://<?php echo e($basic->siteurl); ?>/developer-apiV1/cable_tv_buy/YOUR_API_KEY/Decoder/Subscription_Plan/Decoder_Number<br>

<b>API Call Will Be As Follow:</b><br>
https://<?php echo e($basic->siteurl); ?>/developer-api-V1/cable_tv_buy/<?php echo e(Auth::User()->token); ?>/02/02/1234567890<br>

<b>JSON response</b>

{"status":"Successful","Number":"1234567890","plan":"GOtv Value","network":"GOTV"}

                                                        </p>
                                                        <h5 class="text-primary">Query A Transaction</h5>
                                                        <p>Now lets query the transaction executed above using the transaction number as shown by the Json Response:</p>
                                                        <b>API Syntax Will Be As Follow:</b><br>
https://<?php echo e($basic->siteurl); ?>/developer-api-V1/query_cable_tv_buy/YOUR_API_KEY/TRX_ID<br>

<b>API Call Will Be As Follow:</b><br>
https://<?php echo e($basic->siteurl); ?>/developer-api-V1/query_cable_tv_buy/<?php echo e(Auth::User()->token); ?>/GFST627HJT<br>
<b>Query JSON response</b><br>

{"status":"Successful","type":"TV Subscription","decoder_number":"2022434084","decoder_type":"02","decoder_plan":"GOtv Value","trx_id":"P6AWGQD84X","date":{"date":"2020-07-07 10:15:47.000000","timezone_type":3,"timezone":"UTC"}}

                                                        <img src="<?php echo e(asset('dash-assets/images/support.jpg')); ?>" alt="" />
                                                         </div>
                                                    <div class="support-topic-meta">
                                                        <div class="support-topic-author">

                                                        </div>
                                                        <div class="support-topic-react">
                                                            <ul class="react-list">
                                                                <li class="title"><span>Was this developer API page helpful?</span></li>
                                                                <li class="react-good">
                                                                    <a title="Good" data-toggle="tooltip" href=" "><em class="icon ni ni-happyf-fill"></em></a>
                                                                </li>
                                                                <li class="react-ok">
                                                                    <a title="Fair" data-toggle="tooltip" href=" "><em class="icon ni ni-meh-fill"></em></a>
                                                                </li>
                                                                <li class="react-bad">
                                                                    <a title="Bad" data-toggle="tooltip" href=" "><em class="icon ni ni-sad-fill"></em></a>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>

                </div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>