Viewing file: 23ea30e99cc0bfd8da939e4b5e95fb5ba6517e34.php (10.64 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(trans('customer.developer')); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?> <style> .c-pointer { cursor: pointer; } .api_token{ background-color: #f7f7f7; padding: 10px; border-radius: 10px; } .well { min-height: 20px; margin:0 17px 17px 17px; background-color: #f1f4f7; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%); box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%); padding: 20px; } </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12 mt-4"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo e(trans('customer.developer')); ?></h2> </div> <!-- /.card-header --> <div class="card-body"> <div class="row api_token"> <div class="col-md-6"> <form action="<?php echo e(route('customer.authorization.token.store')); ?>" method="post" id="apiForm"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="">Access Key</label> <div class="input-group date" id="reservationdatetime" data-target-input="nearest"> <input class="form-control" type="text" value="<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>" id="accessKey"> <div class="input-group-append" data-target="#reservationdatetime" data-toggle="datetimepicker"> <div class="input-group-text"> <i onclick="copyToken()" class="fa fa-copy c-pointer"></i> <i class="fas fa-sync-alt ml-3 c-pointer" id="refresh"></i> </div> </div> </div> </div>
</form> </div> <div class="col-md-6"> <div class="mt-4 pt-3"> <strong>JSON data format :</strong> <a href="#" class="json-one-to-many">One to many</a> <strong>PHP Source code :</strong> <a href="#" class="php-one-to-many">One to many</a> </div> </div> </div> </div> <div class="portlet-body flip-scroll m-3"> <table class="table table-bordered table-striped table-condensed flip-content"> <thead class="flip-content"> <tr> <th> Parameter Name </th> <th> Meaning/Value </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> key </td> <td> API Key </td> <td> Your API Key <strong id="key_id_ref">(<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>)</strong> </td> </tr> <tr> <td> type </td> <td> action </td> <td> Services,Orders,Balance,Order Status And Mess Order Status get specific data</td> </tr> <tr> <td> contacts </td> <td> mobile number </td> <td> Pending,Rejected,Cancelled,Processing,In Progress,Completed and Partial get specific order status</td> </tr> </tbody> </table> </div> <label class="ml-3">Credit Balance API</label> <div class="well"> <strong>API URL</strong> : <?php echo e(request()->getSchemeAndHttpHost()); ?>/api/v2 <br> <strong>API key</strong> : Your API Key <strong id="key_id_ref2">(<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>)</strong> <br> <strong>API Action</strong> : action and value is 'balance' </div> <label class="ml-3">Service List</label> <div class="well"> <strong>API URL</strong> : <?php echo e(request()->getSchemeAndHttpHost()); ?>/api/v2 <br> <strong>API key</strong> : Your API Key <strong id="key_id_ref2">(<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>)</strong> <br> <strong>API Action</strong> : action and value is 'services' </div> <label class="ml-3">Orders List</label> <div class="well"> <strong>API URL</strong> : <?php echo e(request()->getSchemeAndHttpHost()); ?>/api/v2 <br> <strong>API key</strong> : Your API Key <strong id="key_id_ref2">(<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>)</strong> <br> <strong>API Action</strong> : action and value is 'orders' </div> <label class="ml-3">Specific Orders List</label> <div class="well"> <strong>API URL</strong> : <?php echo e(request()->getSchemeAndHttpHost()); ?>/api/v2 <br> <strong>API key</strong> : Your API Key <strong id="key_id_ref2">(<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>)</strong> <br> <strong>API Action</strong> : action and value is 'orderStatus' <br> <strong>API status</strong> : status and value is 'pending/rejected,cancelled/processing/inprogress/completed/partial' <strong>N.B</strong> (You can get just one status type) </div> <label class="ml-3">Specific Mess Orders List</label> <div class="well"> <strong>API URL</strong> : <?php echo e(request()->getSchemeAndHttpHost()); ?>/api/v2 <br> <strong>API key</strong> : Your API Key <strong id="key_id_ref2">(<?php echo e(isset($authorization_token->access_token)?$authorization_token->access_token:''); ?>)</strong> <br> <strong>API Action</strong> : action and value is 'messOrderStatus' <br> <strong>API status</strong> : status and value is 'pending/rejected,cancelled/processing/inprogress/completed/partial' <strong>N.B</strong> (You can get just one status type) </div>
<div class="well portlet-body flip-scroll"> <table class="table table-bordered table-striped table-condensed flip-content"> <thead class="flip-content"> <tr> <th> Error Code </th> <th> Meaning </th>
</tr> </thead> <tbody> <tr> <td> 1001 </td> <td> Invalid API key</td>
</tr> <tr> <td> 1002 </td> <td> Invalid API action </td>
</tr> <tr> <td> 1003 </td> <td> Invalid order status</td>
</tr> <tr> <td> 1004 </td> <td> Action not found </td>
</tr> <tr> <td> 1005 </td> <td> API key not found </td> </tr> </tbody> </table> </div> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script> $(document).on('click', '#refresh', function (e){ $('#apiForm').submit(); }) function copyToken() { const copyText = document.getElementById("accessKey"); copyText.select(); copyText.setSelectionRange(0, 99999); navigator.clipboard.writeText(copyText.value); } </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/test.smm.picotech.app/public_html/resources/views/customer/api/index.blade.php ENDPATH**/ ?>
|