All URIs are relative to https://api.beget.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| projectServiceChangePinned() | PUT /v1/cloud/projects/{project_id}/pin | |
| projectServiceCreate() | POST /v1/cloud/projects | |
| projectServiceGetList() | GET /v1/cloud/projects/list | |
| projectServiceRemove() | DELETE /v1/cloud/projects/{project_id} | |
| projectServiceUpdate() | PUT /v1/cloud/projects/{project_id} |
projectServiceChangePinned($project_id, $project_change_pinned_request): \OpenAPI\Client\Model\ProjectChangePinnedResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ProjectServiceApi(
// 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
);
$project_id = 'project_id_example'; // string
$project_change_pinned_request = new \OpenAPI\Client\Model\ProjectChangePinnedRequest(); // \OpenAPI\Client\Model\ProjectChangePinnedRequest
try {
$result = $apiInstance->projectServiceChangePinned($project_id, $project_change_pinned_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectServiceApi->projectServiceChangePinned: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | string | ||
| project_change_pinned_request | \OpenAPI\Client\Model\ProjectChangePinnedRequest |
\OpenAPI\Client\Model\ProjectChangePinnedResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectServiceCreate($project_create_project_request): \OpenAPI\Client\Model\ProjectCreateProjectResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ProjectServiceApi(
// 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
);
$project_create_project_request = new \OpenAPI\Client\Model\ProjectCreateProjectRequest(); // \OpenAPI\Client\Model\ProjectCreateProjectRequest
try {
$result = $apiInstance->projectServiceCreate($project_create_project_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectServiceApi->projectServiceCreate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| project_create_project_request | \OpenAPI\Client\Model\ProjectCreateProjectRequest |
\OpenAPI\Client\Model\ProjectCreateProjectResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectServiceGetList($offset, $limit, $filter, $sort): \OpenAPI\Client\Model\ProjectGetProjectListResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ProjectServiceApi(
// 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
);
$offset = 56; // int
$limit = 56; // int
$filter = 'filter_example'; // string
$sort = 'sort_example'; // string
try {
$result = $apiInstance->projectServiceGetList($offset, $limit, $filter, $sort);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectServiceApi->projectServiceGetList: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| offset | int | [optional] | |
| limit | int | [optional] | |
| filter | string | [optional] | |
| sort | string | [optional] |
\OpenAPI\Client\Model\ProjectGetProjectListResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectServiceRemove($project_id): \OpenAPI\Client\Model\ProjectRemoveProjectResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ProjectServiceApi(
// 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
);
$project_id = 'project_id_example'; // string
try {
$result = $apiInstance->projectServiceRemove($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectServiceApi->projectServiceRemove: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | string |
\OpenAPI\Client\Model\ProjectRemoveProjectResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectServiceUpdate($project_id, $project_update_project_request): \OpenAPI\Client\Model\ProjectUpdateProjectResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ProjectServiceApi(
// 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
);
$project_id = 'project_id_example'; // string
$project_update_project_request = new \OpenAPI\Client\Model\ProjectUpdateProjectRequest(); // \OpenAPI\Client\Model\ProjectUpdateProjectRequest
try {
$result = $apiInstance->projectServiceUpdate($project_id, $project_update_project_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectServiceApi->projectServiceUpdate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | string | ||
| project_update_project_request | \OpenAPI\Client\Model\ProjectUpdateProjectRequest |
\OpenAPI\Client\Model\ProjectUpdateProjectResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]