Download the PHP package albertcht/notion-ai without Composer
On this page you can find all versions of the php package albertcht/notion-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download albertcht/notion-ai
More information about albertcht/notion-ai
Files in albertcht/notion-ai
Package notion-ai
Short Description Api Client of Notion AI in PHP
License MIT
Homepage https://github.com/albertcht/notion-ai
Informations about the package notion-ai
Notion AI API Client for PHP
About this package
Notion AI is a powerful artificial intelligence feature based on GPT-3 that is part of the productivity app Notion. You can use Notion AI within Notion itself, but there is currently no official API available.
This is an unofficial PHP client for the Notion AI API that makes it easy to interact with Notion AI in your PHP projects.
Installation
You can install the package via composer:
Usage
-
Initialize a Notion AI instance
- Set options of Guzzle client in the third paramter
See: https://docs.guzzlephp.org/en/stable/request-options.html
-
Replace a PSR Http Client if needed
- Send a request with general
sendRequest
function
If some APIs are not wrapped in this package, you can interact with Notion AI by this function
-
Send a request with stream response
- Supported APIs
Enums
There are enums you can refer to when you call APIs:
- PromptTypes
- Topics
- Languages
- Tones
Testing
How to get token and space id from Notion?
- Get token from Notion
- Get space id from Notion
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Donation
You can support me by a cup of coffee. An open-source project also relies on community's contribution. Any PRs are welcome to help maintain this package.
Credits
- Albert Chen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of notion-ai with dependencies
ext-json Version *
guzzlehttp/guzzle Version ~7.0
ramsey/uuid Version ^4.2