Likeable
收藏Likeable API 数据集概述
基本信息
- API名称: Likeable
- 类别: Social
- 提供商: Zaw
- 订阅人数: 1
- 版本: v1 (current)
- 订阅计划:
- BASIC: $0.00 / mo
- PRO: $5.00 / mo
- ULTRA: $100.00 / mo
功能概述
Likeable API 提供了一套工具,用于创建和管理内容互动平台,支持内容提交、检索、点赞和删除操作。
端点详情
1. 提交内容 (POST Create)
-
请求参数: json { "type": "image", // "image", "text", or "url" "value": "https://www.yourdomain.com/images/example.jpg", // Path, text, or URL value "secret": "mysecret123" // A unique secret for the content }
-
成功响应: json { "message": "Content submitted successfully.", "data": { "id": 1 } }
-
错误响应: json { "message": "All fields (type, value, secret) are required.", "data": null }
2. 请求内容 (GET Request)
-
请求参数: json { "id": 1 // ID of the content to retrieve }
-
成功响应: json { "message": "Content retrieved successfully.", "data": { "id": 1, "type": "image", "value": "https://www.yourdomain.com/images/example.jpg", "likes": 5, "created_at": "2025-01-20 12:00:00" } }
-
错误响应: json { "message": "Content not found.", "data": null }
3. 点赞内容 (POST Like)
-
请求参数:
-
使用用户IP(限制每个用户只能点赞一次): json { "id": 1, // Content ID "user_ip": "192.168.1.1" // User IP address }
-
不使用用户IP(允许无限点赞): json { "id": 1 // Content ID }
-
-
成功响应: json { "message": "Post liked successfully." }
-
错误响应:
-
已点赞: json { "message": "You have already liked this post." }
-
缺少ID: json { "message": "Content ID is required to like." }
-
4. 删除内容 (POST Delete)
-
请求参数: json { "id": 1, // Content ID "secret": "mysecret123" // Secret associated with the content }
-
成功响应: json { "message": "Content deleted successfully." }
-
错误响应:
-
无效密钥: json { "message": "Invalid secret." }
-
缺少字段: json { "message": "ID and secret are required to delete content." }
-



