continue-custom/packages/continue-sdk/clients/php
2025-04-18 10:34:27 -07:00
..
.openapi-generator feat: continue sdk 2025-04-18 10:34:27 -07:00
docs feat: continue sdk 2025-04-18 10:34:27 -07:00
test feat: continue sdk 2025-04-18 10:34:27 -07:00
.gitignore feat: continue sdk 2025-04-18 10:34:27 -07:00
.openapi-generator-ignore feat: continue sdk 2025-04-18 10:34:27 -07:00
.php-cs-fixer.dist.php feat: continue sdk 2025-04-18 10:34:27 -07:00
.travis.yml feat: continue sdk 2025-04-18 10:34:27 -07:00
composer.json feat: continue sdk 2025-04-18 10:34:27 -07:00
git_push.sh feat: continue sdk 2025-04-18 10:34:27 -07:00
phpunit.xml.dist feat: continue sdk 2025-04-18 10:34:27 -07:00
README.md feat: continue sdk 2025-04-18 10:34:27 -07:00

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

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
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen