All URIs are relative to https://localhost/learn/api/public/v1/
Method | HTTP request | Description |
---|---|---|
dataSourcesDataSourceIdDelete | DELETE dataSources/{dataSourceId} | Delete Data Source |
dataSourcesDataSourceIdGet | GET dataSources/{dataSourceId} | Get Data Source |
dataSourcesDataSourceIdPatch | PATCH dataSources/{dataSourceId} | Update Data Source |
dataSourcesGet | GET dataSources | Get Data Sources |
dataSourcesPost | POST dataSources | Create Data Source |
dataSourcesDataSourceIdDelete($data_source_id, $fields)
Delete Data Source
Deletes a data source. The 'system.datasource.manager.VIEW' entitlement is needed. Since: 2015.11.0
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearer
BlackboardRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// BlackboardRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new BlackboardRest\Api\DataSourcesApi();
$data_source_id = "data_source_id_example"; // string | The data source ID. This may be the primary ID, or the secondary ID prefixed with the ID type. | ID type | Example | |------------|--------------------| | primary | _123_1 | | externalId | externalId:math101 |
$fields = "fields_example"; // string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned.
try {
$api_instance->dataSourcesDataSourceIdDelete($data_source_id, $fields);
} catch (Exception $e) {
echo 'Exception when calling DataSourcesApi->dataSourcesDataSourceIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data_source_id | string | The data source ID. This may be the primary ID, or the secondary ID prefixed with the ID type. | ID type |
fields | string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned. | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\BlackboardRest\Model\DataSource dataSourcesDataSourceIdGet($data_source_id, $fields)
Get Data Source
Loads a data source. The 'system.datasource.manager.VIEW' entitlement is needed. Since: 2015.11.0
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearer
BlackboardRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// BlackboardRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new BlackboardRest\Api\DataSourcesApi();
$data_source_id = "data_source_id_example"; // string | The data source ID. This may be the primary ID, or the secondary ID prefixed with the ID type. | ID type | Example | |------------|--------------------| | primary | _123_1 | | externalId | externalId:math101 |
$fields = "fields_example"; // string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned.
try {
$result = $api_instance->dataSourcesDataSourceIdGet($data_source_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataSourcesApi->dataSourcesDataSourceIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data_source_id | string | The data source ID. This may be the primary ID, or the secondary ID prefixed with the ID type. | ID type |
fields | string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned. | [optional] |
\BlackboardRest\Model\DataSource
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\BlackboardRest\Model\DataSource dataSourcesDataSourceIdPatch($data_source_id, $input, $fields)
Update Data Source
Updates a data source. The 'system.datasource.manager.VIEW' entitlement is needed. Since: 2015.11.0
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearer
BlackboardRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// BlackboardRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new BlackboardRest\Api\DataSourcesApi();
$data_source_id = "data_source_id_example"; // string | The data source ID. This may be the primary ID, or the secondary ID prefixed with the ID type. | ID type | Example | |------------|--------------------| | primary | _123_1 | | externalId | externalId:math101 |
$input = new \BlackboardRest\Model\Input11(); // \BlackboardRest\Model\Input11 | JSON input object.
$fields = "fields_example"; // string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned.
try {
$result = $api_instance->dataSourcesDataSourceIdPatch($data_source_id, $input, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataSourcesApi->dataSourcesDataSourceIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data_source_id | string | The data source ID. This may be the primary ID, or the secondary ID prefixed with the ID type. | ID type |
input | \BlackboardRest\Model\Input11 | JSON input object. | |
fields | string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned. | [optional] |
\BlackboardRest\Model\DataSource
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\BlackboardRest\Model\InlineResponse2006 dataSourcesGet($offset, $limit, $external_id, $fields)
Get Data Sources
Returns a list of data sources. The 'system.datasource.manager.VIEW' entitlement is needed. Since: 3000.1.0
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearer
BlackboardRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// BlackboardRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new BlackboardRest\Api\DataSourcesApi();
$offset = 56; // int | The number of rows to skip before beginning to return rows. An offset of 0 is the same as omitting the offset parameter.
$limit = 56; // int | The maximum number of results to be returned. There may be less if the query returned less than the maximum.
$external_id = "external_id_example"; // string | The 'batchUid' value to use as search criteria. Currently only supports 'contains' searches.
$fields = "fields_example"; // string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned.
try {
$result = $api_instance->dataSourcesGet($offset, $limit, $external_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataSourcesApi->dataSourcesGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
offset | int | The number of rows to skip before beginning to return rows. An offset of 0 is the same as omitting the offset parameter. | [optional] |
limit | int | The maximum number of results to be returned. There may be less if the query returned less than the maximum. | [optional] |
external_id | string | The 'batchUid' value to use as search criteria. Currently only supports 'contains' searches. | [optional] |
fields | string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned. | [optional] |
\BlackboardRest\Model\InlineResponse2006
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\BlackboardRest\Model\DataSource dataSourcesPost($input, $fields)
Create Data Source
Creates a data source. The 'system.datasource.manager.VIEW' entitlement is needed. Since: 2015.11.0
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearer
BlackboardRest\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// BlackboardRest\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new BlackboardRest\Api\DataSourcesApi();
$input = new \BlackboardRest\Model\Input10(); // \BlackboardRest\Model\Input10 | JSON input object.
$fields = "fields_example"; // string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned.
try {
$result = $api_instance->dataSourcesPost($input, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataSourcesApi->dataSourcesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
input | \BlackboardRest\Model\Input10 | JSON input object. | |
fields | string | A comma-delimited list of fields to include in the response. If not specified, all fields will be returned. | [optional] |
\BlackboardRest\Model\DataSource
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]