File size: 10,593 Bytes
c46f0fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API Documentation - SMM Panel</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .endpoint {
            border-left: 4px solid #4f46e5;
        }
        pre {
            background-color: #f3f4f6;
            border-radius: 6px;
            padding: 12px;
            overflow-x: auto;
        }
        code {
            font-family: monospace;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- Navigation -->
    <nav class="bg-indigo-700 text-white p-4 shadow-lg">
        <div class="container mx-auto flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fas fa-rocket text-2xl"></i>
                <h1 class="text-2xl font-bold">SMM Panel</h1>
            </div>
            <div class="hidden md:flex space-x-6">
                <a href="index.html" class="hover:text-indigo-200 font-medium">Home</a>
                <a href="services.html" class="hover:text-indigo-200 font-medium">Services</a>
                <a href="pricing.html" class="hover:text-indigo-200 font-medium">Pricing</a>
                <a href="#" class="hover:text-indigo-200 font-medium">API</a>
                <a href="contact.html" class="hover:text-indigo-200 font-medium">Contact</a>
            </div>
            <div class="flex items-center space-x-4">
                <a href="login.html" class="bg-white text-indigo-700 px-4 py-2 rounded font-medium hover:bg-indigo-100 transition">Login</a>
                <a href="register.html" class="bg-indigo-600 text-white px-4 py-2 rounded font-medium hover:bg-indigo-800 transition">Register</a>
            </div>
        </div>
    </nav>

    <!-- API Header -->
    <section class="bg-gradient-to-r from-indigo-700 to-purple-600 text-white py-16">
        <div class="container mx-auto px-4 text-center">
            <h1 class="text-4xl font-bold mb-4">API Documentation</h1>
            <p class="text-xl max-w-3xl mx-auto">Integrate our SMM services directly into your application using our powerful API</p>
        </div>
    </section>

    <!-- API Content -->
    <section class="container mx-auto px-4 py-16">
        <div class="grid md:grid-cols-4 gap-8">
            <!-- Sidebar -->
            <div class="md:col-span-1 bg-white p-6 rounded-lg shadow-sm sticky top-4 h-fit">
                <h3 class="text-lg font-semibold mb-4">API Endpoints</h3>
                <ul class="space-y-2">
                    <li><a href="#authentication" class="text-indigo-600 hover:text-indigo-800">Authentication</a></li>
                    <li><a href="#services" class="text-indigo-600 hover:text-indigo-800">Get Services</a></li>
                    <li><a href="#place-order" class="text-indigo-600 hover:text-indigo-800">Place Order</a></li>
                    <li><a href="#order-status" class="text-indigo-600 hover:text-indigo-800">Check Order Status</a></li>
                    <li><a href="#balance" class="text-indigo-600 hover:text-indigo-800">Check Balance</a></li>
                </ul>
                <div class="mt-8">
                    <h3 class="text-lg font-semibold mb-4">API Key</h3>
                    <p class="text-gray-600 text-sm mb-4">You can find your API key in your account dashboard after purchasing an API plan.</p>
                    <a href="register.html" class="inline-block bg-indigo-700 text-white px-4 py-2 rounded text-sm font-medium hover:bg-indigo-800 transition">Get API Access</a>
                </div>
            </div>

            <!-- Main Content -->
            <div class="md:col-span-3 space-y-12">
                <!-- Authentication -->
                <div id="authentication" class="bg-white p-6 rounded-lg shadow-sm endpoint">
                    <h2 class="text-2xl font-bold mb-4">Authentication</h2>
                    <p class="text-gray-600 mb-4">All API requests require authentication using your API key. Include your key in the headers of each request.</p>
                    <div class="mb-6">
                        <pre><code>Headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json</code></pre>
                    </div>
                </div>

                <!-- Get Services -->
                <div id="services" class="bg-white p-6 rounded-lg shadow-sm endpoint">
                    <h2 class="text-2xl font-bold mb-4">Get Services</h2>
                    <p class="text-gray-600 mb-4">Retrieve a list of all available services with their current prices.</p>
                    <div class="mb-4">
                        <h3 class="font-semibold mb-2">Request</h3>
                        <pre><code>GET https://api.smmpanel.com/v1/services</code></pre>
                    </div>
                    <div class="mb-4">
                        <h3 class="font-semibold mb-2">Response Example</h3>
                        <pre><code>{
  "status": "success",
  "data": [
    {
      "id": 101,
      "name": "Instagram Followers",
      "category": "Instagram",
      "rate": "2.99",
      "min": "100",
      "max": "10000",
      "description": "High quality real Instagram followers"
    },
    {
      "id": 201,
      "name": "YouTube Views",
      "category": "YouTube",
      "rate": "1.99",
      "min": "500",
      "max": "50000",
      "description": "High retention YouTube views"
    }
  ]
}</code></pre>
                    </div>
                </div>

                <!-- Place Order -->
                <div id="place-order" class="bg-white p-6 rounded-lg shadow-sm endpoint">
                    <h2 class="text-2xl font-bold mb-4">Place Order</h2>
                    <p class="text-gray-600 mb-4">Submit a new order for a service.</p>
                    <div class="mb-4">
                        <h3 class="font-semibold mb-2">Request</h3>
                        <pre><code>POST https://api.smmpanel.com/v1/order
Headers:
Content-Type: application/json

Body:
{
  "service_id": 101,
  "link": "https://instagram.com/username",
  "quantity": 1000,
  "runs": 1, // optional
  "interval": 60 // optional (minutes)
}</code></pre>
                    </div>
                    <div class="mb-4">
                        <h3 class="font-semibold mb-2">Response Example</h3>
                        <pre><code>{
  "status": "success",
  "data": {
    "order_id": 123456,
    "service": "Instagram Followers",
    "link": "https://instagram.com/username",
    "quantity": 1000,
    "charge": 2.99,
    "start_count": 0, // current follower count
    "status": "Pending",
    "created_at": "2023-06-15 14:30:22"
  }
}</code></pre>
                    </div>
                </div>

                <!-- More API endpoints would be documented here -->
            </div>
        </div>
    </section>

    <!-- Try It Out -->
    <section class="bg-gray-50 py-16">
        <div class="container mx-auto px-4 text-center">
            <h2 class="text-3xl font-bold text-gray-800 mb-4">Ready to Integrate?</h2>
            <p class="text-gray-600 max-w-2xl mx-auto mb-8">Start using our API to automate your social media marketing</p>
            <div class="flex flex-col sm:flex-row justify-center gap-4">
                <a href="register.html" class="bg-indigo-700 text-white px-8 py-3 rounded-full font-bold hover:bg-indigo-800 transition">Get API Access</a>
                <a href="contact.html" class="bg-white border-2 border-indigo-700 text-indigo-700 px-8 py-3 rounded-full font-bold hover:bg-indigo-50 transition">Contact Support</a>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-xl font-bold mb-4">SMM Panel</h3>
                    <p class="text-gray-400">The best social media marketing services for growing your online presence.</p>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">Quick Links</h4>
                    <ul class="space-y-2">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition">Home</a></li>
                        <li><a href="services.html" class="text-gray-400 hover:text-white transition">Services</a></li>
                        <li><a href="pricing.html" class="text-gray-400 hover:text-white transition">Pricing</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">API</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">Legal</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">API Terms</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">Contact Us</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center"><i class="fas fa-envelope mr-2 text-gray-400"></i> api@smmpanel.com</li>
                        <li class="flex items-center"><i class="fas fa-globe mr-2 text-gray-400"></i> api.smmpanel.com</li>
                    </ul>
                    <div class="flex space-x-4 mt-4">
                        <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-github"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-telegram"></i></a>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
                <p>&copy; 2023 SMM Panel. All rights reserved.</p>
            </div>
        </div>
    </footer>
</body>
</html>