File "api.twig"

Full Path: /home/cananyalcin/public_html/core/temp/client/smmgenie/api.twig
File size: 36.22 KB
MIME-type: text/html
Charset: utf-8

{% include 'header.twig' %}



{% if user['auth'] %}

{% else %}
	<style>
		@media (max-width: 991.98px) {
			.main-top {padding: 70px 0 40px 0!important}
		}
        .lgn-btn {display: none!important}
      
      	@media (min-width: 1199.98px) {
      		.main-top { padding: 400px 0 40px 0}
      		.app-content { margin-top: -300px }
      	}
	</style>
	
    <div class="main-top">
        <div class="main-top-bg"></div>
	</div>
{% endif %}


<div class="app-content">
	<div class="container-fluid">

		<div class="d-card dc-dash">
			<div class="row">
				<div class="col-lg-6 col-md-8 col-12">
					<div class="py-3 px-5">
						<div class="dch-title">
							API Documentations
						</div>
						<div class="dch-text">
							You can use our api and connect with your script. We have added Below api codes.
						</div>
					</div>
				</div>
			</div>
		</div>

		<section class="neworder">
			<div class="row">
				<div class="col-lg-12 col-12 mb-5 mb-lg-0">
					<div class="d-card">
						<div class="d-card-body" id="dc-body">
							<div class="table-responsive">
								<div class="center-big-content-block">
                                    <h2 class="m-b-md">API</h2>
                                    <table class="table table-bordered">
                                        <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>API Key</td>
                                            <td>Get an API key on the <a href="/account">Account</a> page</td>
                                        </tr>
                                                                                <tr>
                                        <td>Response format</td>
                                        <td>JSON</td>
                                        </tr>
                                        </tbody>
                                    </table>

                                                                            <h4 class="m-t-md"><strong>Service list</strong></h4>
                                                                                <table class="table table-bordered">
                                            <thead class="white">
                                            <tr>
                                            <th class="width-40">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>
                                        
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        [
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "First Category",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true,
        "cancel": true
    },
    {
        "service": 2,
        "name": "Comments",
        "type": "Custom Comments",
        "category": "Second Category",
        "rate": "8",
        "min": "10",
        "max": "1500",
        "refill": false,
        "cancel": true
    }
]
                                        </pre>
                                                                            <h4 class="m-t-md"><strong>Add order</strong></h4>
                                                                                                                            <p>
                                            <form class="form-inline">
                                                <div class="form-group">
                                                <select class="form-control input-sm" id="service_type">
                                                                                                        <option value="0">Default</option>
                                                                                                        <option value="10">Package</option>
                                                                                                        <option value="2">Custom Comments</option>
                                                                                                        <option value="9">Mentions</option>
                                                                                                        <option value="6">Mentions Hashtag</option>
                                                                                                        <option value="15">Comment Likes</option>
                                                                                                        <option value="100">Subscriptions</option>
                                                                                                    </select>
                                                </div>
                                            </form>
                                            </p>
                                                                                                                                <div id="type_0" style="display:none;">
                                            <table class="table table-bordered">
                                                <thead class="white">
                                                <tr>
                                                <th class="width-40">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_10" style="display:none;">
                                            <table class="table table-bordered">
                                                <thead class="white">
                                                <tr>
                                                <th class="width-40">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 class="white">
                                                <tr>
                                                <th class="width-40">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_9" style="display:none;">
                                            <table class="table table-bordered">
                                                <thead class="white">
                                                <tr>
                                                <th class="width-40">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>usernames</td>
                                                    <td>Usernames list separated by \r\n or \n</td>
                                                </tr>
                                                                                                </tbody>
                                            </table>
                                            </div>
                                                                                    <div id="type_6" style="display:none;">
                                            <table class="table table-bordered">
                                                <thead class="white">
                                                <tr>
                                                <th class="width-40">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>hashtag</td>
                                                    <td>Hashtag to scrape usernames from</td>
                                                </tr>
                                                                                                </tbody>
                                            </table>
                                            </div>
                                                                                    <div id="type_100" style="display:none;">
                                            <table class="table table-bordered">
                                                <thead class="white">
                                                <tr>
                                                <th class="width-40">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>min</td>
                                                    <td>Quantity min</td>
                                                </tr>
                                                                                                <tr>
                                                    <td>max</td>
                                                    <td>Quantity max</td>
                                                </tr>
                                                                                                <tr>
                                                    <td>posts (optional)</td>
                                                    <td>Use this parameter if you want to limit the number of new (future) posts that will be parsed and for which orders will be created. If posts parameter is not set, the subscription will be created for an unlimited number of posts.</td>
                                                </tr>
                                                                                                <tr>
                                                    <td>old_posts (optional)</td>
                                                    <td>Number of existing posts that will be parsed and for which orders will be created, can be used if this option is available for the service.</td>
                                                </tr>
                                                                                                <tr>
                                                    <td>delay</td>
                                                    <td>Delay in minutes. Possible values: 0, 5, 10, 15, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 360, 420, 480, 540, 600</td>
                                                </tr>
                                                                                                <tr>
                                                    <td>expiry (optional)</td>
                                                    <td>Expiry date. Format d/m/Y</td>
                                                </tr>
                                                                                                </tbody>
                                            </table>
                                            </div>
                                                                                    <div id="type_15" style="display:none;">
                                            <table class="table table-bordered">
                                                <thead class="white">
                                                <tr>
                                                <th class="width-40">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>username</td>
                                                    <td>Username of the comment owner</td>
                                                </tr>
                                                                                                </tbody>
                                            </table>
                                            </div>
                                                                                
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        {
    "order": 23501
}
                                        </pre>
                                                                            <h4 class="m-t-md"><strong>Order status</strong></h4>
                                                                                <table class="table table-bordered">
                                            <thead class="white">
                                            <tr>
                                            <th class="width-40">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>
                                        
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        {
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}
                                        </pre>
                                                                            <h4 class="m-t-md"><strong>Multiple orders status</strong></h4>
                                                                                <table class="table table-bordered">
                                            <thead class="white">
                                            <tr>
                                            <th class="width-40">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>
                                        
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        {
    "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>
                                                                            <h4 class="m-t-md"><strong>Create refill</strong></h4>
                                                                                <table class="table table-bordered">
                                            <thead class="white">
                                            <tr>
                                            <th class="width-40">Parameters</th>
                                            <th>Description</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                                                                        <tr>
                                                <td>key</td>
                                                <td>Your API key</td>
                                            </tr>
                                                                                        <tr>
                                                <td>action</td>
                                                <td>refill</td>
                                            </tr>
                                                                                        <tr>
                                                <td>order</td>
                                                <td>Order ID</td>
                                            </tr>
                                                                                        </tbody>
                                        </table>
                                        
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        {
    "refill": "1"
}
                                        </pre>
                                                                            <h4 class="m-t-md"><strong>Get refill status</strong></h4>
                                                                                <table class="table table-bordered">
                                            <thead class="white">
                                            <tr>
                                            <th class="width-40">Parameters</th>
                                            <th>Description</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                                                                        <tr>
                                                <td>key</td>
                                                <td>Your API key</td>
                                            </tr>
                                                                                        <tr>
                                                <td>action</td>
                                                <td>refill_status</td>
                                            </tr>
                                                                                        <tr>
                                                <td>refill</td>
                                                <td>Refill ID</td>
                                            </tr>
                                                                                        </tbody>
                                        </table>
                                        
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        {
    "status": "Completed"
}
                                        </pre>
                                                                            <h4 class="m-t-md"><strong>User balance</strong></h4>
                                                                                <table class="table table-bordered">
                                            <thead class="white">
                                            <tr>
                                            <th class="width-40">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>
                                        
                                        <p><strong>Example response</strong></p>
                                        <pre class="code">
                                        {
    "balance": "100.84292",
    "currency": "USD"
}
                                        </pre>
                                                                        <a href="/example.txt" class="btn btn-default m-t" target="_blank">Example of PHP code</a>
                                </div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
	</div>
</div>

{% include 'footer.twig' %}