承接 neverstale/api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

neverstale/api

Composer 安装命令:

composer require neverstale/api

包简介

PHP wrapper for the Neverstale API

README 文档

README

Wraps the Neverstale API for use in PHP applications.

Classes

Client

The main class for interacting with the Neverstale API. Uses Guzzle to make HTTP requests.

Methods

Mutating methods return a TransactionResult model. Non-mutating methods return a model representing the response from the API, or a simple boolean in the case of health().

  • health(): bool - Pings the Neverstale API to check if it is available and the API key is valid.
  • ingest(array $data, array $callbackConfig = []): TransactionResult - Ingests content to Neverstale.
  • batchDelete(array $ids): TransactionResult - Deletes content from Neverstale by content ID or custom ID.
  • retrieve(string $id): Content - Retrieves content from Neverstale by content ID or custom ID.
  • ignoreFlag(string $flagId): TransactionResult - Ignores a flag in Neverstale.
  • rescheduleFlag(string $flagId, DateTime $expiredAt): TransactionResult - Reschedules a flag in Neverstale.

Analysis Status

Represents the status of content analysis in Neverstale

Cases:

  • UNSENT
  • STALE
  • PENDING_INITIAL_ANALYSIS
  • PENDING_REANALYSIS
  • PENDING_TOKEN_AVAILABILITY
  • PROCESSING_REANALYSIS
  • PROCESSING_INITIAL_ANALYSIS
  • ANALYZED_CLEAN
  • ANALYZED_FLAGGED
  • ANALYZED_ERROR
  • UNKNOWN
  • API_ERROR

Methods:

  • label(): string - Returns the human readable English language label for the status.

Models

  • [TransactionResult](./src/models/TransactionResult.php) Represents the result of a transaction with Neverstale.
  • [Content](./src/models/Content.php) Represents content in Neverstale. See the docs for more details
  • [Flag](./src/models/Flag.php) Represents a flag in Neverstale. See the docs for more details

统计信息

  • 总下载量: 180
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-01