linuzilla / ncucc-coreapi
NCUCC CoreAPI Client
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/linuzilla/ncucc-coreapi
Requires
- guzzlehttp/guzzle: ^6.2
This package is not auto-updated.
Last update: 2025-10-21 21:59:00 UTC
README
ncucc-coreapi is a PHP HTTP client
php composer.phar require linuzilla/ncucc-coreapi
<?php require __DIR__ . '/vendor/autoload.php'; use NCUCC\CoreAPI\Client; use NCUCC\CoreAPI\APIException; $config_file = "config.json"; $config = json_decode(file_get_contents($config_file)); $coreapi = new Client($config); try { $coreapi->some_api_function(); } catch (NCUCC\CoreAPI\APIException $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; }
{
"base": "// API base URL",
"appkey": "your app key",
"magickey": "your magic key",
"secret": "secret",
"publicKey": "public key in pem format",
"token": "access token",
"apiMetaFile": "api meta file"
}