A Quick Base RESTful API implementation of their OpenAPI spec.
PHP 7.2 and later.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/rossity/php-quickbase.git"
}
],
"require": {
"rossity/php-quickbase": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/Rossity/PhpQuickbase/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Rossity\PhpQuickbase\Api\AppsApi(
// 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()
);
$appId = 'appId_example'; // string | The unique identifier of an app
$qBRealmHostname = 'qBRealmHostname_example'; // string | Your Quick Base domain, for example demo.quickbase.com
$authorization = 'authorization_example'; // string | The Quick Base authentication scheme you are using to authenticate the request, as described on the [authorization page](../auth).
$userAgent = 'userAgent_example'; // string | Information is entered by the person or utility invoking the API. Choose between the default in your toolkit or custom create it. Being as descriptive as possible will help in identification and troubleshooting.
$generated = new \Rossity\PhpQuickbase\Model\InlineObject3(); // \Rossity\PhpQuickbase\Model\InlineObject3
try {
$result = $apiInstance->copyApp($appId, $qBRealmHostname, $authorization, $userAgent, $generated);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AppsApi->copyApp: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://api.quickbase.com/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AppsApi | copyApp | POST /apps/{appId}/copy | Copy an app |
AppsApi | createApp | POST /apps | Create an app |
AppsApi | deleteApp | DELETE /apps/{appId} | Delete an app |
AppsApi | getApp | GET /apps/{appId} | Get an app |
AppsApi | getAppEvents | GET /apps/{appId}/events | Get app events |
AppsApi | updateApp | POST /apps/{appId} | Update an app |
AuthApi | getTempTokenDBID | GET /auth/temporary/{dbid} | Get a temporary token for a dbid |
FieldsApi | createField | POST /fields | Create a field |
FieldsApi | deleteFields | DELETE /fields | Delete field(s) |
FieldsApi | getField | GET /fields/{fieldId} | Get field |
FieldsApi | getFieldUsage | GET /fields/usage/{fieldId} | Get usage for a field |
FieldsApi | getFields | GET /fields | Get fields for a table |
FieldsApi | getFieldsUsage | GET /fields/usage | Get usage for all fields |
FieldsApi | updateField | POST /fields/{fieldId} | Update a field |
FilesApi | deleteFile | DELETE /files/{tableId}/{recordId}/{fieldId}/{versionNumber} | Delete file |
FilesApi | downloadFile | GET /files/{tableId}/{recordId}/{fieldId}/{versionNumber} | Download file |
RecordsApi | deleteRecords | DELETE /records | Delete record(s) |
RecordsApi | runQuery | POST /records/query | Query for data |
RecordsApi | upsert | POST /records | Insert/Update record(s) |
ReportsApi | getReport | GET /reports/{reportId} | Get a report |
ReportsApi | getTableReports | GET /reports | Get reports for a table |
ReportsApi | runReport | POST /reports/{reportId}/run | Run a report |
TablesApi | createRelationship | POST /tables/{tableId}/relationship | Create a relationship |
TablesApi | createTable | POST /tables | Create a table |
TablesApi | deleteRelationship | DELETE /tables/{tableId}/relationship/{relationshipId} | Delete a relationship |
TablesApi | deleteTable | DELETE /tables/{tableId} | Delete a table |
TablesApi | getAppTables | GET /tables | Get tables for an app |
TablesApi | getRelationships | GET /tables/{tableId}/relationships | Get all relationships |
TablesApi | getTable | GET /tables/{tableId} | Get a table |
TablesApi | updateRelationship | POST /tables/{tableId}/relationship/{relationshipId} | Update a relationship |
TablesApi | updateTable | POST /tables/{tableId} | Update a table |
UserTokenApi | cloneUserToken | POST /usertoken/clone | Clone a user token |
UserTokenApi | deactivateUserToken | POST /usertoken/deactivate | Deactivate a user token |
UserTokenApi | deleteUserToken | DELETE /usertoken | Delete a user token |
- AppsAppIdCopyProperties
- AppsAppIdEventsOwner
- AppsVariables
- FieldsFieldIdProperties
- FieldsPermissions
- FieldsProperties
- FieldsUsageField
- FieldsUsageUsage
- FieldsUsageUsageActions
- FieldsUsageUsageAppHomePages
- FieldsUsageUsageDefaultReports
- FieldsUsageUsageExactForms
- FieldsUsageUsageFields
- FieldsUsageUsageForms
- FieldsUsageUsageNotifications
- FieldsUsageUsagePersonalReports
- FieldsUsageUsageRelationships
- FieldsUsageUsageReminders
- FieldsUsageUsageReports
- FieldsUsageUsageRoles
- FieldsUsageUsageWebhooks
- InlineObject
- InlineObject1
- InlineObject10
- InlineObject11
- InlineObject12
- InlineObject13
- InlineObject14
- InlineObject2
- InlineObject3
- InlineObject4
- InlineObject5
- InlineObject6
- InlineObject7
- InlineObject8
- InlineObject9
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- RecordsQueryGroupBy
- RecordsQueryOptions
- ReportsQuery
- ReportsQueryFormulaFields
- TablesTableIdRelationshipForeignKeyField
- TablesTableIdRelationshipSummaryFields
All endpoints do not require authorization.
To run the tests, use:
composer install
vendor/bin/phpunit
- API version:
1.0.0
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen