five

Likeable

收藏
RapidAPI2025-10-27 更新2025-07-05 收录
下载链接:
https://rapidapi.com/zaw-Sp-4cO-9c/api/likeable
下载链接
链接失效反馈
官方服务:
资源简介:
Everyting can likeable
创建时间:
2025-10-27
原始信息汇总

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." }

5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作