<?php if(session('user_id')): ?>

<?php require view('theme/header'); ?>



	<div class="row">

		<div class="col-md-12">

			<div class="card">

				<div class="card-header">API Docs</div>

				<div class="card-body">

					<table class="table table-bordered">

						<tbody>

							<tr>

								<td>HTTP Method</td>

								<td>POST</td>

							</tr>

							<tr>

								<td>API URL</td>

								<td>{API_URL}</td>

							</tr>

							<tr>

								<td>API Key</td>

								<td>{USER_API_KEY}</td>

							</tr>

							<tr>

								<td>Response format</td>

								<td>JSON</td>

							</tr>

						</tbody>

					</table>

				</div>

			</div>

			<div class="card">

				<div class="card-header">Service List</div>

				<div class="card-body">

					<table class="table table-bordered">

						<thead>

							<tr>

								<th>Parameters</th>

								<th>Description</th>

							</tr>

						</thead>

						<tbody>

							<tr>

								<td>key</td>

								<td>Your API key</td>

							</tr>

							<tr>

								<td>action</td>

								<td>services</td>

							</tr>

						</tbody>

					</table>

					<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

[

    {

        "service": 1,

        "name": "Followers",

        "type": "Default",

        "category": "First Category",

        "rate": "0.90",

        "min": "50",

        "max": "10000"

    },

    {

        "service": 2,

        "name": "Comments",

        "type": "Custom Comments",

        "category": "Second Category",

        "rate": "8",

        "min": "10",

        "max": "1500"

    }

]

</pre>

				</div>

			</div>

			<div class="card">

				<div class="card-header">Add Order</div>

				<div class="card-body">

					<form class="form-inline mb-2">

							<div class="form-group">

								<select class="form-control form-control-sm" id="service_type">

									<option value="0">Default</option>

									<option value="1">Package</option>

									<option value="2">Custom Comments</option>

									<option value="3">Subscriptions</option>

								</select>

							</div>

						</form>

						<div id="type_0">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service 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 (optional)</td>

										<td>Runs to deliver</td>

									</tr>

									<tr>

										<td>interval (optional)</td>

										<td>Interval in minutes</td>

									</tr>

								</tbody>

							</table>

						</div>

						<div id="type_1" style="display: none;">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service ID</td>

									</tr>

									<tr>

										<td>link</td>

										<td>Link to page</td>

									</tr>

								</tbody>

							</table>

						</div>

						<div id="type_2" style="display: none;">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service ID</td>

									</tr>

									<tr>

										<td>link</td>

										<td>Link to page</td>

									</tr>

									<tr>

										<td>comments</td>

										<td>Comments list separated by \r\n or \n</td>

									</tr>

								</tbody>

							</table>

						</div>

						<div id="type_3" style="display: none;">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service ID</td>

									</tr>

									<tr>

										<td>username</td>

										<td>Username</td>

									</tr>

									<tr>

										<td>quantity</td>

										<td>Needed quantity</td>

									</tr>

									<tr>

										<td>limit (optional)</td>

										<td>Post limit</td>

									</tr>

									<tr>

										<td>expiry (optional)</td>

										<td>Expiry date. Format d/m/Y</td>

									</tr>

								</tbody>

							</table>

						</div>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "order": 23501

}

</pre>

				</div>

			</div>

			<div class="card">

				<div class="card-header">Order Status</div>

				<div class="card-body">

					<table class="table table-bordered">

							<thead>

								<tr>

									<th>Parameters</th>

									<th>Description</th>

								</tr>

							</thead>

							<tbody>

								<tr>

									<td>key</td>

									<td>Your API key</td>

								</tr>

								<tr>

									<td>action</td>

									<td>status</td>

								</tr>

								<tr>

									<td>order</td>

									<td>Order ID</td>

								</tr>

							</tbody>

						</table>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "charge": "0.27819",

    "start_count": "3572",

    "status": "Partial",

    "remains": "157",

    "currency": "USD"

}

</pre>

				</div>

			</div>

			<div class="card">

				<div class="card-header">Multiple Order Status</div>

				<div class="card-body">

					<table class="table table-bordered">

							<thead>

								<tr>

									<th>Parameters</th>

									<th>Description</th>

								</tr>

							</thead>

							<tbody>

								<tr>

									<td>key</td>

									<td>Your API key</td>

								</tr>

								<tr>

									<td>action</td>

									<td>status</td>

								</tr>

								<tr>

									<td>orders</td>

									<td>Order IDs separated by comma</td>

								</tr>

							</tbody>

						</table>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "1": {

        "charge": "0.27819",

        "start_count": "3572",

        "status": "Partial",

        "remains": "157",

        "currency": "USD"

    },

    "10": {

        "error": "Incorrect order ID"

    },

    "100": {

        "charge": "1.44219",

        "start_count": "234",

        "status": "In progress",

        "remains": "10",

        "currency": "USD"

    }

}

</pre>

				</div>

			</div>

			<div class="card">

				<div class="card-header">User Balance</div>

				<div class="card-body">

					<table class="table table-bordered">

							<thead>

								<tr>

									<th>Parameters</th>

									<th>Description</th>

								</tr>

							</thead>

							<tbody>

								<tr>

									<td>key</td>

									<td>Your API key</td>

								</tr>

								<tr>

									<td>action</td>

									<td>balance</td>

								</tr>

							</tbody>

						</table>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "balance": "100.84292",

    "currency": "USD"

}

</pre>

				</div>

<?php require view('theme/footer'); ?>

<?php else: ?>

<!DOCTYPE html>

<html>

<head>

	<meta charset="utf-8">

	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<title>{PAGE_TITLE} | {SITE_TITLE}</title>

	<link rel="shortcut icon" href="{SITE_FAVO}" />

	<link rel="apple-touch-icon-precomposed" href="{SITE_FAVO}" />

	<meta name="description" content="{SITE_DESC}"/>

	<meta name="keywords" content="{SITE_KEYW}"/>

	<link rel="stylesheet" type="text/css" href="<?=theme("assets/css/bootstrap.min.css");?>?v=<?=time()?>">

	<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">

	<link rel="stylesheet" type="text/css" href="<?=theme("assets/css/main.css");?>?v=<?=time()?>">

	<link rel="stylesheet" href="<?=public_url("system/css/alertify.css");?>?v=<?=time()?>">



	<?= htmlspecialchars_decode($settings['header_code']); ?>



	<script type="text/javascript">

		var _url = "{LINK_POST}";

	</script>



	<style type="text/css">

		.mp-card{margin:20px 0;}

	</style>

</head>

<body class="dark-mode">

	<header>

		<div class="header d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 text-light">

			<div class="container">

				<div class="row">

					<div class="col-md-2 d-flex flex-column flex-md-row align-items-center">

						<a href="<?=site()?>"><img src="{SITE_LOGO}" width="200"></a>

					</div>

					<div class="col-md-10">

						<div class="mobile-menu"><button class="btn btn-warning btn-block mt-3" data-toggle="modal" data-target="#mobilemenu">Ana Menü</button></div>

						<nav class="header-menu my-2 my-md-0 mr-md-3 text-right">

							<?php foreach($mainmenus as $row): if($row['menu_type'] == 2):?>
								<a class="p-2 text-light" href="<?=isset($siteLinks[$row['menu_link']]['url']) ? $siteLinks[$row['menu_link']]['url'] : $row['menu_link'] ?>"><?=$row['menu_title']?></a>
							<?php endif; endforeach; ?>

							<a class="p-2 text-light" href="{LINK_SERVICES}">{NAVBAR_SERVICES}</a>

							<a class="p-2 text-light" href="{LINK_LOGIN}">{NAVBAR_LOGIN}</a>

							<a class="btn login-btn" href="{LINK_REGISTER}"><i class="fas fa-user-plus"></i> {NAVBAR_REGISTER}</a>

							<a class="p-2 text-light" id="nightIcon" href="javascript:;" onclick="darkLight()"></a>

						</nav>

					</div>

				</div>

			</div>

		</div>

		<div class="container">

			<div class="row align-items-center">

				<div class="col-md-12">

					<h2 class="text-white text-center my-4">

						<span class="header-text display-4 font-weight-light"><?=$title?></span>

					</h2>

				</div>

			</div>

		</div>

	</header>



	<div class="container mt-5">

		<div class="row">

			<div class="col-md-12">

				<div class="mp-card">

				<div class="card-header">API Docs</div>

				<div class="card-body">

					<table class="table table-bordered">

						<tbody>

							<tr>

								<td>HTTP Method</td>

								<td>POST</td>

							</tr>

							<tr>

								<td>API URL</td>

								<td>{API_URL}</td>

							</tr>

							<tr>

								<td>API Key</td>

								<td>Your API key</td>

							</tr>

							<tr>

								<td>Response format</td>

								<td>JSON</td>

							</tr>

						</tbody>

					</table>

				</div>

			</div>

			<div class="mp-card">

				<div class="card-header">Service List</div>

				<div class="card-body">

					<table class="table table-bordered">

						<thead>

							<tr>

								<th>Parameters</th>

								<th>Description</th>

							</tr>

						</thead>

						<tbody>

							<tr>

								<td>key</td>

								<td>Your API key</td>

							</tr>

							<tr>

								<td>action</td>

								<td>services</td>

							</tr>

						</tbody>

					</table>

					<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

[

    {

        "service": 1,

        "name": "Followers",

        "type": "Default",

        "category": "First Category",

        "rate": "0.90",

        "min": "50",

        "max": "10000"

    },

    {

        "service": 2,

        "name": "Comments",

        "type": "Custom Comments",

        "category": "Second Category",

        "rate": "8",

        "min": "10",

        "max": "1500"

    }

]

</pre>

				</div>

			</div>

			<div class="mp-card">

				<div class="card-header">Add Order</div>

				<div class="card-body">

					<form class="form-inline mb-2">

							<div class="form-group">

								<select class="form-control form-control-sm" id="service_type">

									<option value="0">Default</option>

									<option value="1">Package</option>

									<option value="2">Custom Comments</option>

									<option value="3">Subscriptions</option>

								</select>

							</div>

						</form>

						<div id="type_0">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service 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 (optional)</td>

										<td>Runs to deliver</td>

									</tr>

									<tr>

										<td>interval (optional)</td>

										<td>Interval in minutes</td>

									</tr>

								</tbody>

							</table>

						</div>

						<div id="type_1" style="display: none;">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service ID</td>

									</tr>

									<tr>

										<td>link</td>

										<td>Link to page</td>

									</tr>

								</tbody>

							</table>

						</div>

						<div id="type_2" style="display: none;">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service ID</td>

									</tr>

									<tr>

										<td>link</td>

										<td>Link to page</td>

									</tr>

									<tr>

										<td>comments</td>

										<td>Comments list separated by \r\n or \n</td>

									</tr>

								</tbody>

							</table>

						</div>

						<div id="type_3" style="display: none;">

							<table class="table table-bordered">

								<thead>

									<tr>

										<th>Parameters</th>

										<th>Description</th>

									</tr>

								</thead>

								<tbody>

									<tr>

										<td>key</td>

										<td>Your API key</td>

									</tr>

									<tr>

										<td>action</td>

										<td>add</td>

									</tr>

									<tr>

										<td>service</td>

										<td>Service ID</td>

									</tr>

									<tr>

										<td>username</td>

										<td>Username</td>

									</tr>

									<tr>

										<td>quantity</td>

										<td>Needed quantity</td>

									</tr>

									<tr>

										<td>limit (optional)</td>

										<td>Post limit</td>

									</tr>

									<tr>

										<td>expiry (optional)</td>

										<td>Expiry date. Format d/m/Y</td>

									</tr>

								</tbody>

							</table>

						</div>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "order": 23501

}

</pre>

				</div>

			</div>

			<div class="mp-card">

				<div class="card-header">Order Status</div>

				<div class="card-body">

					<table class="table table-bordered">

							<thead>

								<tr>

									<th>Parameters</th>

									<th>Description</th>

								</tr>

							</thead>

							<tbody>

								<tr>

									<td>key</td>

									<td>Your API key</td>

								</tr>

								<tr>

									<td>action</td>

									<td>status</td>

								</tr>

								<tr>

									<td>order</td>

									<td>Order ID</td>

								</tr>

							</tbody>

						</table>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "charge": "0.27819",

    "start_count": "3572",

    "status": "Partial",

    "remains": "157",

    "currency": "USD"

}

</pre>

				</div>

			</div>

			<div class="mp-card">

				<div class="card-header">Multiple Order Status</div>

				<div class="card-body">

					<table class="table table-bordered">

							<thead>

								<tr>

									<th>Parameters</th>

									<th>Description</th>

								</tr>

							</thead>

							<tbody>

								<tr>

									<td>key</td>

									<td>Your API key</td>

								</tr>

								<tr>

									<td>action</td>

									<td>status</td>

								</tr>

								<tr>

									<td>orders</td>

									<td>Order IDs separated by comma</td>

								</tr>

							</tbody>

						</table>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "1": {

        "charge": "0.27819",

        "start_count": "3572",

        "status": "Partial",

        "remains": "157",

        "currency": "USD"

    },

    "10": {

        "error": "Incorrect order ID"

    },

    "100": {

        "charge": "1.44219",

        "start_count": "234",

        "status": "In progress",

        "remains": "10",

        "currency": "USD"

    }

}

</pre>

				</div>

			</div>

			<div class="mp-card">

				<div class="card-header">User Balance</div>

				<div class="card-body">

					<table class="table table-bordered">

							<thead>

								<tr>

									<th>Parameters</th>

									<th>Description</th>

								</tr>

							</thead>

							<tbody>

								<tr>

									<td>key</td>

									<td>Your API key</td>

								</tr>

								<tr>

									<td>action</td>

									<td>balance</td>

								</tr>

							</tbody>

						</table>

						<small><strong>Example response</strong></small>

<pre class="bg-dark text-white rounded p-2 small">

{

    "balance": "100.84292",

    "currency": "USD"

}

</pre>

</div>

				</div>

			</div>

		</div>

	</div>



	<div class="container">

		<div class="row">

			<section class="footerbefore">

				<h2><b>{SITE_TITLE} ile Yükselişe Geç!</b></h2>

				<a href="{LINK_REGISTER}" class="btn login-btn">{NAVBAR_REGISTER}</a>

			</section>

		</div>

	</div>



	<footer>

		<div class="container">

			<div class="row">

				<ul>

					<li><a href="{LINK_TERMS}">{NAVBAR_TERMS}</a></li>

					<li><a href="{LINK_CONTACT}">{NAVBAR_CONTACT}</a></li>

					<li><a href="{LINK_API}">{NAVBAR_API}</a></li>

					<li><a href="{LINK_BLOG}">{NAVBAR_BLOG}</a></li>

				</ul>

			</div>

		</div>

	</footer>



	<div class="modal fade" id="mobilemenu" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">

		<div class="modal-dialog">

			<div class="modal-content">

				<div class="modal-body">

					<ul>
						<?php foreach($mainmenus as $row): if($row['menu_type'] == 2):?>
							<li><a href="<?=isset($siteLinks[$row['menu_link']]['url']) ? $siteLinks[$row['menu_link']]['url'] : $row['menu_link'] ?>"><?=$row['menu_title']?></a></li>
						<?php endif; endforeach; ?>
						<!--<li><a href="{LINK_SERVICES}">{NAVBAR_SERVICES}</a></li>

						<li><a href="{LINK_LOGIN}">{NAVBAR_LOGIN}</a></li>

						<li><a href="{LINK_REGISTER}">{NAVBAR_REGISTER}</a></li>-->

					</ul>

				</div>

				<div class="modal-footer">

					<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>

				</div>

			</div>

		</div>

	</div>



	<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

	<script src="<?=theme("assets/js/bootstrap.min.js");?>?v=<?=time()?>"></script>

	<script src="<?=public_url("system/js/alertify.js");?>?v=<?=time()?>"></script>

	<script src="<?=public_url("system/js/main.js");?>?v=<?=time()?>"></script>

	<script src="<?=theme("assets/js/main.js");?>?v=<?=time()?>"></script>



	{INTEGRATIONS}

	<?= htmlspecialchars_decode($settings['footer_code']); ?>

	<script type="text/javascript">$("#phone").inputmask({"mask": "09999999999"});</script>



</body>

</html>

<?php endif; ?>