· 6 years ago · Aug 29, 2019, 08:18 AM
1<?php
2/*
3 * All requests (GET or POST) endpoint: https://likedrom.com/api/v2
4 *
5 * Creating orders:
6 * Required parameters:
7 * action: string - order.create
8 * key: string - Your API key.
9 * service: int - Service ID.
10 * link: string - Link or login.
11 * quantity: integer - Quantity.
12 * Optional parameters:
13 * posts: int - When service in auto mode.
14 * commentaries: string - When service has own commentaries mode (comments must be divided by ;), sample: <3;You looks good!;Love you!
15 * nickname: string - When service has likes on commentaries mode.
16 * Simple response:
17 * {
18 * "status": 201, <-- HTTP Status
19 * "data": 10 <-- Order ID
20 * }
21 * or error response:
22 * {
23 * "status": 422, <--- HTTP Status
24 * "error": {
25 * "message": "API key is not specified!", <-- Error message
26 * "code": 1001 <-- Error code
27 * }
28 * }
29 *
30 * Viewing orders:
31 * Required parameters:
32 * action: string - order.status
33 * key: string - Your API key.
34 * id: int - Order ID.
35 * Simple response:
36 * {
37 * "status": 200,
38 * "data": {
39 * "id": 10,
40 * "service": {
41 * "id": 158,
42 * "type": "auto" <-- default or auto or comments or mentions (likes on comments)
43 * },
44 * "link": "https://www.instagram.com/######",
45 * "quantity": 10,
46 * "price": 20.5,
47 * "start_count": 3,
48 * "remains_count": 2,
49 * "posts": 2,
50 * "status": "processing",
51 * "created_at": 1567064441
52 * }
53 * }
54 *
55 * Error Codes:
56 *
57 * 1-999 - Global error codes
58 * - 1 - Internal server error!
59 * - 2 - Incorrect API key!
60 * - 3 - Demo account is disabled!
61 *
62 * 1001-1999 - Validation error codes.
63 * - 1001 - API key is not specified!
64 * - 1002 - API action is not specified!
65 * - 1003 - Service ID is not specified
66 * - 1004 - Link is not specified!
67 * - 1005 - Quantity is not specified!
68 * - 1006 - Commentaries is not specified!
69 * - 1007 - Commentaries count must be greater than :min!
70 * - 1008 - User nickname is not specified!
71 * - 1009 - User nickname is invalid!
72 * - 1010 - Posts count is not specified
73 * - 1011 - Posts count must be greater than 1!
74 * - 1012 - Quantity must be equals to or greater than :min!
75 * - 1013 - Quantity must be equals to or less than :max!
76 * - 1014 - The specified link does not lead to a post!
77 * - 1015 - The specified link does not full!
78 * - 1016 - The specified link does not nickname!
79 * - 1017 - Order ID is not specified!
80 *
81 * 2001-2999 - Order creation error codes.
82 * - 2001 - Service not found!
83 * - 2002 - Insufficient funds (:price)!
84 * - 2003 - Service temporary unavailable!
85 * - 2004 - Already running!
86 * - 2005 - Account is private!
87 * - 2006 - Forbidden thematics!
88 * - 2007 - All bots is busy or unknown error occurred, please, try later!
89 * - 2008 - Failed to create order!
90 * - 2009 - Service is broken!
91 *
92 * 3001-3999 - Order status error codes.
93 * - 3001 - Order not found!
94 * - 3002 - Failed to fetch order, try later!
95 */