type
status
date
slug
summary
tags
category
icon
url
sync
This website introduces a PHP library called notion-sdk-php, which is the PHP version of the Notion official API, allowing users to choose different HTTP clients to send HTTP messages through the PSR-18 client abstraction. The article provides installation instructions, usage examples, error handling methods, client option configurations, as well as how to contribute code and project license information.
- Project Introduction: Notion SDK for PHP is a PHP version of the Notion official API, allowing users to operate Notion's features using the PHP language.
- Installation Method: Installed via Composer, it is not limited to specific HTTP message sending libraries and supports PSR-18 client abstraction.
- Quick Start: Provides a quick start guide using the Symfony HTTP client, including installation commands and example code for initializing the client.
- Usage Examples: Demonstrates how to use the client to request Notion API endpoints, with examples of requests and responses.
- Error Handling: Describes the ApiResponseException that is thrown when the API returns an unsuccessful response, and how to handle errors.
- Client Options: The client supports various initialization options, including authentication, timeout settings, base URL, and HTTP client.
- 作者:notion2go
- 链接:https://notion2go.com/article/notion-sdk-php
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。