kamandlou / instagram-private-api
Instagram私有API SDK
dev-master
2022-10-22 07:59 UTC
Requires
- php: ^7.4|^8.1
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^6.0|^7.0
- psr/http-message: ^1.0
- tebru/gson-php: ^0.7
- webmozart/assert: ^1.0
Requires (Dev)
- drenso/phan-extensions: ^3.2
- phan/phan: ^4.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-09-22 12:17:08 UTC
README
Instagram私有API库
要了解如何使用此库,请参阅源代码以及示例。
安装
您可以使用composer安装此库
composer require kamandlou/instagram-private-api
特性
- 支持异步和并行请求
- 易于通过新请求扩展
- 会话和设备管理
- 访问发现源(频道、探索、热门直播)
- 访问直接源(收件箱、线程)
- 更多
示例
<?php use Instagram\SDK\Instagram; require_once 'vendor/autoload.php'; $instagram = Instagram::builder()->build(); $instagram->login('INSERT_USERNAME', 'INSERT_PASSWORD'); $response = $instagram->inbox(); foreach ($response->getInbox()->getThreads() as $thread) { $thread->sendMessage("Hello"); }
变更日志
请参阅变更日志,了解发布历史以及如何升级到另一个版本。
贡献
如果您发现任何问题或对此crate有建议,请提交问题。此外,任何pull request、代码审查和反馈都欢迎。
代码指南
我们使用GitHub Actions确保代码库的一致性(composer run lint-fix && composer run code-analyze
)。我们尽量保持注释长度不超过160个字符,代码长度不超过120。