buena/sdk
Composer 安装命令:
composer require buena/sdk
包简介
Official PHP SDK for Buena.ai API v2 - LinkedIn automation and lead management
README 文档
README
The most powerful LinkedIn automation and lead management API for modern sales teams and developers.
Installation & Usage
Requirements
PHP 8.1 and later.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/BuenaSDK/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: ApiKeyAuth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer'); $apiInstance = new OpenAPI\Client\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $create_api_key_request = new \OpenAPI\Client\Model\CreateApiKeyRequest(); // \OpenAPI\Client\Model\CreateApiKeyRequest try { $result = $apiInstance->createApiKey($create_api_key_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createApiKey: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api.buena.ai/api/v2
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | createApiKey | POST /keys | Create API Key |
| DefaultApi | createLead | POST /leads | Create Lead |
| DefaultApi | healthCheck | GET /health | Health Check |
| DefaultApi | listApiKeys | GET /keys | List API Keys |
| DefaultApi | listLeads | GET /leads | List Leads |
Models
Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
2.0.0- Generator version:
7.14.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-29