{% include 'header.twig' %}
<style>
/* Import Google Fonts */
{{ settings.user_font_import|raw }}



/* Column 6/12 */
.block-api .col-lg-6{
 font-family: '{{ settings.user_font }}', {{ settings.user_font_type }}  ;
}

/* Heading */
.table-bg h4{
 font-family: '{{ settings.user_font }}', {{ settings.user_font_type }}  ;
 text-transform:capitalize;
}


/* Header divider */
.header-divider{
 height:37px !important;
 transform: rotateX(180deg);
 
}

/* Block api */
#block_api{
 padding-top:20px !important;
}
{% if user["auth"] == 1 %}
@media (min-width:1316px){

.wrapper-sidebar-navbar .wrapper-content__body{
 margin-top:80px;
}


 
}
{% endif %}
{% if user['auth'] == 0 %}


/* Wrapper content */
.wrapper-content{
 margin-top:-15px;
}
.pt-5, .py-5 {
    padding-top: unset !important;
}
/* Block api */
#block_api{
 padding-top:unset !important;
}
{% endif %}
</style>

<div
	class="wrapper-content__body">
          <!-- Main variables *content* -->
      <div id="block_api" class="pt-5 pb-5">
  <div class="block-api">
    <div class="bg"></div>
		
    <div class="container-fluid">
      <div class="row justify-content-center">
        <div class="col-lg-6">
{% if contentText %}
<div class="card mt-2 mb-3">
{{ contentText }}
</div>
{% endif %}
          <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>
									{% if user['auth'] %}
                     <tr>
                        <td>API Key</td>
                        <td>Get an API key on the <a href="account">Account</a> page</td>
                      
                     </tr>
                     {% endif %}
                                            <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>Your API key</td>
                          </tr>
                                                  <tr>
                            <td>action</td>
                            <td>services</td>
                          </tr>
                                                </tbody>
                      </table>
                                        <div>
                      <h4>Example response</h4>
                    </div>
                    <pre>
[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "First Category",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true
    },
    {
        "service": 2,
        "name": "Comments",
        "type": "Custom Comments",
        "category": "Second Category",
        "rate": "8",
        "min": "10",
        "max": "1500",
        "refill": false
    }
]
</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="10">Package</option>
                                                              <option value="2">Custom Comments</option>
                                                              <option value="9">Mentions</option>
                                                              <option value="3">Mentions with Hashtags</option>
                                                              <option value="4">Mentions Custom List</option>
                                                              <option value="6">Mentions Hashtag</option>
                                                              <option value="7">Mentions User Followers</option>
                                                              <option value="8">Mentions Media Likers</option>
                                                              <option value="17">Poll</option>
                                                              <option value="18">Comment Replies</option>
                                                              <option value="100">Subscriptions</option>
                                                          </select>
                          </div>
                        </form>
                                                                    <div id="type_0" 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>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 ">
                            <thead>
                            <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 ">
                            <thead>
                            <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 ">
                            <thead>
                            <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_3" 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>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>
                                                          <tr>
                                <td>hashtags</td>
                                <td>Hashtags list separated by \r\n or \n</td>
                              </tr>
                                                        </tbody>
                          </table>
                        </div>
                                              <div id="type_4" 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>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>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 ">
                            <thead>
                            <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_7" 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>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>URL to scrape followers from</td>
                              </tr>
                                                        </tbody>
                          </table>
                        </div>
                                              <div id="type_8" 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>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>media</td>
                                <td>Media URL to scrape likers from</td>
                              </tr>
                                                        </tbody>
                          </table>
                        </div>
                                              <div id="type_100" 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>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</td>
                                <td>New posts count</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_17" 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>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>answer_number</td>
                                <td>Answer number of the poll</td>
                              </tr>
                                                        </tbody>
                          </table>
                        </div>
                                              <div id="type_18" 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>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>username</td>
                                <td>Username</td>
                              </tr>
                                                          <tr>
                                <td>comments</td>
                                <td>Comments list separated by \r\n or \n</td>
                              </tr>
                                                        </tbody>
                          </table>
                        </div>
                                                              <div>
                      <h4>Example response</h4>
                    </div>
                    <pre>
{
    "order": 23501
}
</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>Your API key</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</h4>
                    </div>
                    <pre>
{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}
</pre>
                                      <h4 class="mb-3">Multiple orders 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>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>
                                        <div>
                      <h4>Example response</h4>
                    </div>
                    <pre>
{
    "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="mb-3">Create 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>Your API key</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</h4>
                    </div>
                    <pre>
{
    "refill": "1"
}
</pre>
                                      <h4 class="mb-3">Get 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>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>
                                        <div>
                      <h4>Example response</h4>
                    </div>
                    <pre>
{
    "status": "Completed"
}
</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>Your API key</td>
                          </tr>
                                                  <tr>
                            <td>action</td>
                            <td>balance</td>
                          </tr>
                                                </tbody>
                      </table>
                                        <div>
                      <h4>Example response</h4>
                    </div>
                    <pre>
{
    "balance": "100.84292",
    "currency": "USD"
}
</pre>
                                    <a href="/example.txt" class="btn btn-secondary" target="_blank">Example of PHP code</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{% include 'new-footer.twig' %}
