| .. | ||
| .openapi-generator | ||
| docs | ||
| test | ||
| .gitignore | ||
| .openapi-generator-ignore | ||
| .php-cs-fixer.dist.php | ||
| .travis.yml | ||
| composer.json | ||
| git_push.sh | ||
| phpunit.xml.dist | ||
| README.md | ||
OpenAPIClient-php
API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains.
For more information, please visit https://continue.dev.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
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/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: apiKeyAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$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
);
$always_use_proxy = 'always_use_proxy_example'; // string | Whether to always use the Continue-managed proxy for model requests
$organization_id = 'organization_id_example'; // string | ID of the organization to scope assistants to. If not provided, personal assistants are returned.
try {
$result = $apiInstance->listAssistants($always_use_proxy, $organization_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listAssistants: ', $e->getMessage(), PHP_EOL;
}
API Endpoints
All URIs are relative to https://api.continue.dev
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | listAssistants | GET /ide/list-assistants | List assistants for IDE |
Models
- ListAssistants200ResponseInner
- ListAssistants200ResponseInnerConfigResult
- ListAssistants401Response
- ListAssistants404Response
Authorization
Authentication schemes defined for the API:
apiKeyAuth
- Type: Bearer authentication
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:
1.0.0- Generator version:
7.12.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen