File "api.twig"
Full Path: /home/cananyalcin/public_html/core/temp/client/Enternity-Black/api.twig
File size: 26.16 KB
MIME-type: text/html
Charset: utf-8
{% include 'header.twig' %}
<div class="wrapper-content">
<div class="wrapper-content__header"></div>
<div class="wrapper-content__body">
<div id="block_api" class="pt-5 pb-5">
<div class="block-api">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="card">
<div class="table-bg">
<div class="center-big-content-block">
<h4 class="mb-3">API Docs</h4>
<div class="table-responsive mb-3">
<table class="table">
<tbody>
<tr>
<td class="width-40">HTTP Method</td>
<td>POST</td>
</tr>
<tr>
<td>API URL</td>
<td>{{ site["url"] }}/api/v2</td>
</tr>
<tr>
<td>Response format</td>
<td>JSON</td>
</tr>
</tbody>
</table>
</div>
<h4 class="mb-3">Service list</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>services</td>
</tr>
</tbody>
</table>
<div>
<h4>
Example response
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='[{"service":101,"name":"Real & Active Followers","rate":"250.00","min":"100","max":"100000","category":"Instagram Followers","type":"default","description":"Service Description","dripfeed":true,"refill":true,"cancel":true},{"service":30067,"name":"Instagram - Worldwide","rate":"103.00","min":"100","max":"10000","category":"Instagram Followers","type":"default","description":"Service Description","dripfeed":true,"refill":true,"cancel":true}]'
targetpre='copyServiceListCode_services'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_services"></pre>
<h4 class="mb-3">Add order</h4>
<form class="">
<div class="form-group">
<select class="form-control input-sm" id="service_type">
<option value="0">Default</option>
<option value="2">Custom Comments</option>
</select>
</div>
</form>
<div id="type_0" style="">
<table class="table">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>add</td>
</tr>
<tr>
<td>service</td>
<td>Package ID</td>
</tr>
<tr>
<td>link</td>
<td>Link to page</td>
</tr>
<tr>
<td>quantity</td>
<td>Needed quantity</td>
</tr>
<tr>
<td>runs</td>
<td>(optional) Runs to deliver</td>
</tr>
<tr>
<td>interval</td>
<td>(optional) Interval in minutes</td>
</tr>
</tbody>
</table>
</div>
<div id="type_2" style="display: none;">
<table class="table">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>add</td>
</tr>
<tr>
<td>service</td>
<td>Package ID</td>
</tr>
<tr>
<td>link</td>
<td>Link to page</td>
</tr>
<tr>
<td>comments</td>
<td>optional, needed for custom comments, mentions and other relaed packages only. <br>each separated by '
', '
'</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Example response
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"order":23501}'
targetpre='copyServiceListCode_addorders'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_addorders"></pre>
<h4 class="mb-3">Order status</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>status</td>
</tr>
<tr>
<td>order</td>
<td>Order ID</td>
</tr>
</tbody>
</table>
<div>
<h4>Example response
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"charge":"0.03300","start_count":"1691","status":"Completed","remains":"0","currency":"USD"}'
targetpre='copyServiceListCode_status'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_status"></pre>
<h4 class="mb-3">Mass Order status</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>status</td>
</tr>
<tr>
<td>orders</td>
<td>Order IDs separated by comma</td>
</tr>
</tbody>
</table>
<div>
<h4>Example response
<button class="copy-api btn btn-link"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"486561":{"charge":0.04434830916,"start_count":"181","status":"Cancelled","remains":"100","currency":"USD"},"486451":{"error":"Incorrect order ID"},"486450":{"charge":0.08011655652,"start_count":"44","status":"Completed","remains":"0","currency":"USD"}}'
targetpre='copyServiceListCode_statuses'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_statuses"></pre>
<h4 class="mb-3">Order Refill</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>refill</td>
</tr>
<tr>
<td>order</td>
<td>Order ID</td>
</tr>
</tbody>
</table>
<div>
<h4>Example response - Success
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"success":"Your order will be refill asap. Thank you for patience","refill": 12345}'
targetpre='copyServiceListCode_refill_success'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_refill_success"></pre>
<div>
<h4>Example response - Failure
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"error":"Order not eligible for refill."}'
targetpre='copyServiceListCode_refill_fail'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_refill_fail"></pre>
<h4 class="mb-3">Refill status</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>refill_status</td>
</tr>
<tr>
<td>order</td>
<td>Order ID</td>
</tr>
</tbody>
</table>
<div>
<h4>Example response
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"status":"Completed"}'
targetpre='copyServiceListCode_refill_status'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_refill_status"></pre>
<h4 class="mb-3">Cancel Order</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>cancel</td>
</tr>
<tr>
<td>order</td>
<td>Order ID</td>
</tr>
</tbody>
</table>
<div>
<h4>Example response - Success
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"success":"We will attempt to cancel this order. Cancellation is not guaranteed. Please check again in 5 minutes."}'
targetpre='copyServiceListCode_cancel_success'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_cancel_success"></pre>
<div>
<h4>Example response - Failure
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"error":"Order not eligible for cancellation."}'
targetpre='copyServiceListCode_cancel_fail'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_cancel_fail"></pre>
<h4 class="mb-3">User balance</h4>
<table class="table mb-3">
<thead>
<tr>
<th class="width-40">Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>API Key can be generated from <a href="/account/settings">Accounts Page</a>.</td>
</tr>
<tr>
<td>action</td>
<td>balance</td>
</tr>
</tbody>
</table>
<div>
<h4>Example response
<button class="copy-api btn btn-info"
data-toggle="tooltip" data-placement="bottom"
jsoncode='{"balance":"100.84292","currency":"USD"}'
targetpre='copyServiceListCode_balance'
onclick="copyToClipboardJSON(this)"
data-original-title=" Copy code">
<i class="fa fa-copy"></i> Copy
</button>
</h4>
</div>
<pre id="copyServiceListCode_balance"></pre>
<a href="/example.txt" class="btn btn-secondary" target="_blank">Example of PHP code</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="wrapper-content__footer">
</div>
</div>
</div>
{% include 'footer.twig' %}