### Create Get Card Order Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example POST request to create an order for obtaining a card. Similar to purchasing a card, it requires AppId, API name, card class ID, payment type, timestamp, and status. Token is required in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "PayGetKa", "KaClassId":3, "PayType": "小叮当", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Get User Cloud Configuration Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example shows a POST request to retrieve a user's cloud configuration. It specifies the AppId in the URL and includes the API details, name, time, and status in the request body. The 'Api' field is fixed to 'GetUserConfig'. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetUserConfig", "Name": "配置名称", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Get Login Short URL Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This HTTP request example shows how to obtain a short login URL. It requires an AppId in the URL and specifies the API endpoint, a timestamp, and an optional `JumpUrl` in the request body. A `Token` is also required in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "LoginShortUrl", "Time": 1688551155, "Status": 13013, "JumpUrl": "pages/user/home" } ``` -------------------------------- ### Get User Class Response Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is an example of a successful response when retrieving user class information. It includes user's mark, name, and weight, along with timestamp and status codes. ```json { "Data": [ { "Mark": 1, "Name": "vip1", "Weight": 1 }, { "Mark": 2, "Name": "Vip2", "Weight": 2 } ], "Time": 1684376878, "Status": 87701, "Msg": "" } ``` -------------------------------- ### Get Task List Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet demonstrates a POST request to fetch a list of tasks from the task pool. It specifies parameters for pagination (Page, Size), ordering (Order), task type (Tid), and filtering (isSimple). ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolGetDataList", "Page":1, "Size":1, "Order":1, "Tid":1, "isSimple":0, "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### User Registration API Request and Response Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Provides an example of a POST request for user registration, including necessary fields like User, PassWord, and contact information. It also shows successful and various failure response examples. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "NewUserInfo", "User": "aaaaaa", "PassWord": "aaaaaa", "Key": "绑定信息", "SuperPassWord": "qqqqqqq", "Qq": "1056795985", "Email": "1056795985@qq.com", "Phone": "13166666666", "Time": 1688118838, "Status": 87701 } ``` ```json { "Time": 1688135604, "Status": 87701, "Msg": "注册成功" } ``` ```json { "Time": 1684034845, "Status": 200, "Msg": "email邮箱格式不正确" } ``` ```json { "Time": 1684034898, "Status": 200, "Msg": "超级密码以字母开头,长度在6-18之间,只能包含字符、数字和下划线" } ``` ```json { "Time": 1684035056, "Status": 200, "Msg": "超级密码不能和密码相同" } ``` ```json { "Time": 1684035081, "Status": 200, "Msg": "用户已存在" } ``` -------------------------------- ### Get Task Data Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet shows an example of a POST request to retrieve specific task data from the task pool. It includes the endpoint, headers, and a JSON body with parameters like Api, TaskTypeId, TaskUuid, Time, and Status. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolGetData", "TaskTypeId":1, "TaskUuid": "1a6547d1-269d-4ca4-b1b8-b86fb6d41287", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Get JWT Token Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example demonstrates how to request a JWT token from the API. It requires an AppId in the URL and specific fields like Api, Time, and Status in the JSON body. The `Token` must be provided in the header, obtained from a separate token retrieval interface. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetJwtToken", "Time": 1688551155, "Status": 13013, "aaa":"aaa" } ``` -------------------------------- ### Get Agent Cloud Configuration Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example shows a POST request to retrieve agent cloud configuration. It requires the AppId in the URL and includes the API details, name, time, and status in the request body. The 'Api' field is fixed to 'GetAgentConfig'. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetAgentConfig", "Name": "配置1", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Success Response Example with VipTime Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is a general successful response example, particularly relevant for endpoints that return user-specific data like VipTime. It includes Data, Time, Status, and Msg. ```JSON { "Data": { "VipTime": 1714919820 }, "Time": 1688118575, "Status": 87701, "Msg": "" } ``` -------------------------------- ### Server Link Status Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example shows how to check the server's connection status. The request only requires the API name, timestamp, and a status code. It is used to determine if the server is running and accessible. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "IsServerLink", "Time": 1688118838, "Status": 35445 } ``` -------------------------------- ### Create Purchase Card Order Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example POST request to create an order for purchasing a card. It includes AppId, API name, user identifier, card class ID, payment type, timestamp, and status. Token is required in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "PayKaUsa", "User": "aaaaaa", "KaClassId":3, "PayType": "小叮当", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Get User Info API Request Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example request to retrieve user information. It requires AppId in the URL and a JSON payload containing Api, Time, and Status. Authentication is handled via a Token in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetUserInfo", "Time": 1688118838, "Status": 87701 } ``` -------------------------------- ### Task Pool Task Creation Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example illustrates how to create a task in the task pool for asynchronous processing. It requires an AppId, a `TaskTypeId`, and `Parameter` for the task, along with Time and Status. The `Token` must be provided in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolNewData", "TaskTypeId":1, "Parameter": "{'a':-1.11}", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Set User Class Response Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example of a successful response after setting a user's class. It confirms the updated user class mark and name, along with a timestamp for the VIP status. ```json { "Data": { "UserClassMark": 2, "UserClassName": "Vip2", "VipTime": 1699911226 }, "Time": 1684376878, "Status": 87701, "Msg": "" } ``` -------------------------------- ### Set User Class Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example of a POST request to set a user's class. Requires AppId, Api name, timestamp, status, and the desired user class mark. Token is expected in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "SetUserClass", "Mark": 2, "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Request Example - TaskPoolGetData API Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is an example HTTP POST request for the TaskPoolGetData API. It requires an 'AppId' in the URL and a JSON body with API details, task identifiers, and timestamps. A 'Token' is also required in the HTTP header for authentication. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolGetData", "TaskTypeId":1, "TaskUuid": "1a6547d1-269d-4ca4-b1b8-b86fb6d41287", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Request Example - TaskPoolSetTask API Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is an example HTTP POST request to the TaskPoolSetTask API endpoint. It includes query parameters like 'AppId' and a JSON body containing API details, task information, and timestamps. The 'TaskReturnData' is expected to be a JSON formatted string. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolSetTask", "TaskUuid": "1a6547d1-269d-4ca4-b1b8-b86fb6d41287", "TaskStatus":3, "TaskReturnData": "{\"a\":666}", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### User Reduce Vip Time (Points) Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example demonstrates how to reduce a user's 'VipTime' which represents points in a counting system. It requires an integer value for VipTime and includes standard request parameters. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "UserReduceVipTime", "VipTime": 1, "Log": "看你长得帅,减些点数", "Time": 1688118838, "Status": 35445 } ``` -------------------------------- ### Get User Class List Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet demonstrates a request to retrieve the list of user types available for the current application. It requires the AppId, Api name, Time, and Status in the request body, along with a Token in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetUserClassList", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Successful API Response Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is an example of a successful response from the API. It includes data about an application, a timestamp, and a status code. The 'Data' object contains specific details relevant to the application. ```json { "Data": { "AppId": 10001, "AppType": 1, "AppName": "演示对接账号限时RSA混合通讯", "AppWeb": "www.baidu.com", "Status": 1, "AppStatusMessage": "提示信息" }, "Time": 1688118575, "Status": 72085, "Msg": "" } ``` -------------------------------- ### Get Payment Card List Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet demonstrates how to make a POST request to the /Api endpoint to retrieve a list of available payment cards. It requires the AppId, Api name, Time, and Status in the request body, along with a Token in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetPayKaList", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Request Example - TaskPoolGetTypeStatus API Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is an example HTTP POST request for the TaskPoolGetTypeStatus API. It requires an 'AppId' in the URL and a JSON body specifying the API call, current time, and a status code. Authentication requires a 'Token' in the HTTP header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolGetTypeStatus", "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### Heartbeat API Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example shows a POST request to the HeartBeat API. It's used to update the heartbeat and retrieve the current user status. The request includes AppId, Token (in header), and API details in the body. ```HTTP POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "HeartBeat", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Password Reset (Old Password) API Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example demonstrates the request for resetting a password using the old password. It requires the old password, new password, and user identification. Successful modification logs out all online accounts. ```HTTP POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "OldPassWordSetPassWord", "User": "aaaaaa", "NewPassWord": "qqqqqq", "OldPassWord": "wwwwww", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Get App Info API Request Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Demonstrates the POST request to retrieve basic application information, available from version 1.0.42 onwards. This allows for dynamic program names and other settings. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetAppInfo", "Time": 1688007304, "Status": 78453 } ``` -------------------------------- ### Get App User VIP Time/Points API Request Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example request to get the user's VIP expiration timestamp or remaining points. It requires AppId in the URL and a JSON payload with Api, Time, and Status. Token is needed for authentication. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetAppUserVipTime", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### POST /Api - User Registration Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Handles new user registration. It requires user account details, password, and optional contact information. ```APIDOC ## POST /Api ### Description Handles new user registration. It requires user account details, password, and optional contact information. ### Method POST ### Endpoint http://127.0.0.1:18888/Api?AppId={AppId} ### Parameters #### Path Parameters - **AppId** (int) - Required - Application AppId. #### Query Parameters None #### Request Body - **Api** (string) - Required - Fixed interface name: "NewUserInfo". - **Time** (int) - Required - 10-digit current timestamp. - **Status** (int) - Required - Success code, locally generated random integer > 10000; the same code will be returned on success. - **User** (string) - Required - Username to register. - **PassWord** (string) - Required - Password for the new user. - **Key** (string) - Required - Binding information. - **SuperPassWord** (string) - Required - Super password, or can be extended to security question-related fields. - **Qq** (string) - Optional - QQ contact number. - **Email** (string) - Optional - Email address. - **Phone** (string) - Optional - Phone number. ### Request Example ```json { "Api": "NewUserInfo", "User": "aaaaaa", "PassWord": "aaaaaa", "Key": "绑定信息", "SuperPassWord": "qqqqqqq", "Qq": "1056795985", "Email": "1056795985@qq.com", "Phone": "13166666666", "Time": 1688118838, "Status": 87701 } ``` ### Response #### Success Response (200) - **Time** (int) - 10-digit server current timestamp. - **Status** (int) - Response status code. Same as the submitted Status for successful operations. - **Msg** (string) - Response status code prompt message. #### Response Example (Success) ```json { "Time": 1688135604, "Status": 87701, "Msg": "注册成功" } ``` #### Response Example (Failure) ```json { "Time": 1684034845, "Status": 200, "Msg": "email邮箱格式不正确" } ``` #### Response Example (Failure) ```json { "Time": 1684034898, "Status": 200, "Msg": "超级密码以字母开头,长度在6-18之间,只能包含字符、数字和下划线" } ``` #### Response Example (Failure) ```json { "Time": 1684035056, "Status": 200, "Msg": "超级密码不能和密码相同" } ``` #### Response Example (Failure) ```json { "Time": 1684035081, "Status": 200, "Msg": "用户已存在" } ``` ``` -------------------------------- ### Task Pool Get Task Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet provides an example of a POST request to retrieve tasks for processing from the task pool. It includes parameters like GetTaskNumber to specify the maximum number of tasks and GetTaskTypeId to filter by task type. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "TaskPoolGetTask", "GetTaskNumber": 3, "GetTaskTypeId": [1,2], "Time": 1688551155, "Status": 13013 } ``` -------------------------------- ### User Reduce Money Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example demonstrates how to make a request to reduce a user's balance. It includes the API endpoint, required headers (Token), and a JSON body with details like the API name, amount to reduce, a log message, timestamp, and status code. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "UserReduceMoney", "Money": 0.01, "Log": "看你长得帅,减些钱", "Time": 1688118838, "Status": 35445 } ``` -------------------------------- ### C/C++ SDK示例 Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api 提供了使用C/C++对接用户API的示例。该示例由社区用户提供,适用于需要原生代码集成的场景。 ```cpp // C/C++对接例子,感谢群友`E7` 提供,非常感谢 // 请下载示例代码进行查看 ``` -------------------------------- ### Balance to Points Purchase API Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example demonstrates a POST request to convert balance to points. It requires the application ID in the URL and specifies the API name ('PayMoneyToVipNumber'), the amount of money to spend, timestamp, and status in the request body. A token is necessary in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "PayMoneyToVipNumber", "Money": 1.35, "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Get Dynamic Tag API Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example shows a POST request to retrieve dynamic tag information. It requires the application ID in the URL and specific parameters like API name ('GetTab') and timestamp in the JSON body. A token is also required in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetTab", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Go SDK示例 Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api 提供了使用Go语言(版本1.20)对接用户API的示例。该示例展示了如何在Go项目中集成和使用用户API。 ```go // go语言对接例子使用版本为1.20 // 请下载示例代码进行查看 ``` -------------------------------- ### Get Binding Information API Request (HTTP) Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This example shows a POST request to the GetAppUserKey API endpoint to retrieve binding information. It requires the AppId and includes an Api name, timestamp, and status code in the JSON body. A 'Token' is also required in the header, obtained from a separate 'Get Token' interface. ```HTTP POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetAppUserKey", "Time": 1688118838, "Status": 87701 } ``` -------------------------------- ### Get App User Note API Response Success Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example of a successful response when retrieving a user's note. The Data object contains the 'Note' field with the associated remark. ```json { "Data": { "Note": "#调试权限#" }, "Time": 1688118575, "Status": 87701, "Msg": "" } ``` -------------------------------- ### Get User Info Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Retrieves user information including ID, email, login details, phone number, QQ, balance, real name status, registration details, and username. ```APIDOC ## POST /Api ### Description Retrieves user information including ID, email, login details, phone number, QQ, balance, real name status, registration details, and username. ### Method POST ### Endpoint `http://127.0.0.1:18888/Api?AppId={AppId}` ### Parameters #### Path Parameters - **AppId** (int) - Required - Application AppId #### Query Parameters None #### Header Parameters - **Token** (string) - Required - Obtained via the `Get Token` interface #### Request Body - **Api** (string) - Required - Fixed interface name: `GetUserInfo` - **Time** (int) - Required - 10-digit current timestamp - **Status** (int) - Required - Success code, randomly generated locally > 10000 integer, returns the same code on success ### Request Example ```json { "Api": "GetUserInfo", "Time": 1688118838, "Status": 87701 } ``` ### Response #### Success Response (200) - **Status** (int) - Response status code, same as submitted Status for successful operations, refer to the status code list for specific failures. - **Msg** (string) - Response status code, prompt message. - **Time** (int) - 10-digit current server timestamp, can be used to determine packet time. - **Data** (Object) - Interface return information. - **Id** (int) - Application account ID. - **Email** (string) - Email. - **LoginAppid** (int) - Last login APPID. - **LoginIp** (string) - Last login IP. - **LoginTime** (int) - Last login 10-digit timestamp. - **Phone** (string) - Phone number. - **Qq** (string) - Contact QQ. - **RMB** (string) - Account balance. - **RealNameAttestation** (bool) - Whether real-name authentication is completed. - **RegisterIp** (string) - Registration IP. - **RegisterTime** (int) - Registration time 10-digit timestamp. - **User** (string) - Account username. #### Response Example ```json { "Data": { "Id": 21, "Email": "1056795985@qq.com", "LoginAppid": 10001, "LoginIp": "127.0.0.1", "LoginTime": 1688435963, "Phone": "1388888888", "Qq": "1059795985", "RMB": 0.9, "RealNameAttestation": false, "RegisterIp": "113.235.144.55", "RegisterTime": 1519454315, "User": "aaaaaa" }, "Time": 1688135604, "Status": 87701, "Msg": "" } ``` ``` -------------------------------- ### Get System Time API Response Success Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example of a successful response containing the server's current timestamp. The Data object includes a 'Time' field with the timestamp value. ```json { "Data": { "Time": 1684036534 }, "Time": 1688118575, "Status": 87701, "Msg": "" } ``` -------------------------------- ### Get System Time API Request Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example request to retrieve the current server timestamp. It requires AppId in the URL and a JSON payload with Api, Time, and Status. Token is required for authentication. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetSystemTime", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### 按键精灵手机版AES通讯示例 Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api 提供了按键精灵手机版使用AES加密模式对接用户API的示例。该示例由社区用户提供,适用于移动端自动化。 ```script // 按键精灵手机版AES通讯模式例子 感谢群友`四只松鼠` 提供,非常感谢 // 请下载示例代码进行查看 ``` -------------------------------- ### JSON Response Example for Get User Cloud Configuration Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This JSON structure represents a successful response when retrieving user cloud configuration. The 'Data' object contains the configuration name as the key and its corresponding value. ```json { "Data": { "配置名称": "配置值" }, "Time": 1688535190, "Status": 13013, "Msg": "" } ``` -------------------------------- ### Get Captcha API List Request Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet provides an example HTTP POST request to the GetCaptchaApiList API. This API is used to retrieve a list of available captcha functionalities, allowing for dynamic captcha management. ```HTTP POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetCaptchaApiList", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Get User Info API Response Success Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example of a successful response when retrieving user information. It includes user details such as ID, email, login information, and personal data, along with status and timestamp. ```json { "Data": { "Id": 21, "Email": "1056795985@qq.com", "LoginAppid": 10001, "LoginIp": "127.0.0.1", "LoginTime": 1688435963, "Phone": "1388888888", "Qq": "1059795985", "RMB": 0.9, "RealNameAttestation": false, "RegisterIp": "113.235.144.55", "RegisterTime": 1519454315, "User": "aaaaaa" }, "Time": 1688135604, "Status": 87701, "Msg": "" } ``` -------------------------------- ### JSON Response Example for Get Agent Cloud Configuration Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This JSON structure represents a successful response when retrieving agent cloud configuration. The 'Data' object contains the configuration name as the key and its corresponding value, which can be dynamic. ```json { "Data": { "配置1": "我是一代理云配置1" }, "Time": 1688535190, "Status": 13013, "Msg": "" } ``` -------------------------------- ### Get App User Note API Request Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Example request to retrieve a specific user's note or remark. It requires AppId in the URL and a JSON payload with Api, Time, and Status. Authentication is done via Token. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetAppUserNote", "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Rust SDK示例 Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api 提供了使用Rust对接用户API的示例。该示例由社区用户提供,适用于需要高性能和安全性的场景。 ```rust // rust对接例子,感谢群友`4f5759` 提供,非常感谢 // 请下载示例代码进行查看 ``` -------------------------------- ### Get SMS Captcha API Response Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This is a successful response example for the GetSMSCaptcha API. It includes data such as CaptchaId and CaptchaType, along with standard response fields like Status, Msg, and Time. The CaptchaType is 3 for SMS verification. ```JSON { "Data": { "CaptchaId": "4T7fSxvHV75tfgg", "CaptchaType": 3 }, "Time": 1688135604, "Status": 87701, "Msg": "" } ``` -------------------------------- ### POST /Api - Get App Info Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Retrieves basic application information. This endpoint is available from version 1.0.42 onwards and can be used for dynamic application naming or other configurations. ```APIDOC ## POST /Api ### Description Retrieves basic application information. This endpoint is available from version 1.0.42 onwards and can be used for dynamic application naming or other configurations. ### Method POST ### Endpoint http://127.0.0.1:18888/Api?AppId={AppId} ### Parameters #### Path Parameters - **AppId** (int) - Required - Application AppId. #### Query Parameters None #### Request Body - **Api** (string) - Required - Fixed interface name: "GetAppInfo". - **Time** (int) - Required - 10-digit current timestamp. - **Status** (int) - Required - Success code, locally generated random integer > 10000; the same code will be returned on success. ### Request Example ```json { "Api": "GetAppInfo", "Time": 1688007304, "Status": 78453 } ``` ### Response #### Success Response (200) - **Status** (int) - Response status code. Same as the submitted Status for successful operations. - **Msg** (string) - Response status code prompt message. - **Time** (int) - 10-digit server current timestamp. - **Data** (Object) - Interface return information (structure depends on specific app info returned). #### Response Example (Response structure for GetAppInfo is not provided in the input, but would typically include application name, version, configuration details, etc.) ``` -------------------------------- ### Get Purchased Card List Request Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api This snippet illustrates how to request a list of historically purchased cards. The request includes the AppId, Api name, Number of cards to retrieve, Time, and Status in the body, along with a Token in the header. ```http POST http://127.0.0.1:18888/Api?AppId=10001 HTTP/1.1 { "Api": "GetPurchasedKaList", "Number": 18, "Time": 1688007304, "Status": 87701 } ``` -------------------------------- ### Set User Basic Info Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api Sets user basic information such as email, phone number, and QQ. This is only available in account login mode. ```APIDOC ## POST /Api ### Description Sets user basic information such as email, phone number, and QQ. This is only available in account login mode. ### Method POST ### Endpoint `http://127.0.0.1:18888/Api?AppId={AppId}` ### Parameters #### Path Parameters - **AppId** (int) - Required - Application AppId #### Query Parameters None #### Header Parameters - **Token** (string) - Required - Obtained via the `Get Token` interface #### Request Body - **Api** (string) - Required - Fixed interface name: `SetUserQqEmailPhone` - **Qq** (string) - Optional - Contact QQ. Pass an empty string to not modify. - **Email** (string) - Optional - Email. Pass an empty string to not modify. - **Phone** (string) - Optional - Phone number. Pass an empty string to not modify. - **Time** (int) - Required - 10-digit current timestamp - **Status** (int) - Required - Success code, randomly generated locally > 10000 integer, returns the same code on success ### Request Example ```json { "Api": "SetUserQqEmailPhone", "Qq": "1056795985", "Email": "1056795985@qq.com", "Phone": "13166666666", "Time": 1688118838, "Status": 87701 } ``` ### Response #### Success Response (200) - **Status** (int) - Response status code, same as submitted Status for successful operations, refer to the status code list for specific failures. - **Msg** (string) - Response status code, prompt message. - **Time** (int) - 10-digit current server timestamp, can be used to determine packet time. - **Data** (Object) - Interface return information. #### Response Example ```json { "Data": {}, "Time": 1688135604, "Status": 87701, "Msg": "" } ``` ``` -------------------------------- ### Get Dynamic Tag API Successful Response Example Source: https://www.fnkuaiyan.cn/%E7%94%A8%E6%88%B7Api/%E7%94%A8%E6%88%B7Api A successful response from the 'GetTab' API. It includes the standard timestamp, status, and message fields, along with a 'Data' object containing the 'Tab' field, which holds the dynamic tag content. ```json { "Data": { "Tab": "test测试中英文" }, "Time": 1688118575, "Status": 87701, "Msg": "" } ```