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:
UNSENTSTALEPENDING_INITIAL_ANALYSISPENDING_REANALYSISPENDING_TOKEN_AVAILABILITYPROCESSING_REANALYSISPROCESSING_INITIAL_ANALYSISANALYZED_CLEANANALYZED_FLAGGEDANALYZED_ERRORUNKNOWNAPI_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
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-01