SwaggerClient-php
This is the API for the Estuary application.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 0.0.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen For more information, please visit https://docs.estuary.tech/feedback
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"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
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\AdminApi(
// 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
);
$body = array(new \Swagger\Client\Model\string[]()); // string[] | Peer ids
try {
$apiInstance->adminPeeringPeersDelete($body);
} catch (Exception $e) {
echo 'Exception when calling AdminApi->adminPeeringPeersDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to https://api.estuary.tech
Class | Method | HTTP request | Description |
---|---|---|---|
AdminApi | adminPeeringPeersDelete | DELETE /admin/peering/peers | Remove peers on Peering Service |
AdminApi | adminPeeringPeersGet | GET /admin/peering/peers | List all Peering peers |
AdminApi | adminPeeringPeersPost | POST /admin/peering/peers | Add peers on Peering Service |
AdminApi | adminPeeringStartPost | POST /admin/peering/start | Start Peering |
AdminApi | adminPeeringStatusGet | GET /admin/peering/status | Check Peering Status |
AdminApi | adminPeeringStopPost | POST /admin/peering/stop | Stop Peering |
AdminApi | adminSystemConfigGet | GET /admin/system/config | Get systems(estuary/shuttle) config |
AdminApi | adminUsersGet | GET /admin/users | Get all users |
AutoretrieveApi | adminAutoretrieveInitPost | POST /admin/autoretrieve/init | Register autoretrieve server |
AutoretrieveApi | adminAutoretrieveListGet | GET /admin/autoretrieve/list | List autoretrieve servers |
AutoretrieveApi | autoretrieveHeartbeatPost | POST /autoretrieve/heartbeat | Marks autoretrieve server as up |
CollectionsApi | collectionsColuuidCommitPost | POST /collections/{coluuid}/commit | Produce a CID of the collection contents |
CollectionsApi | collectionsColuuidContentsDelete | DELETE /collections/{coluuid}/contents | Deletes a content from a collection |
CollectionsApi | collectionsColuuidDelete | DELETE /collections/{coluuid} | Deletes a collection |
CollectionsApi | collectionsColuuidGet | GET /collections/{coluuid} | Get contents in a collection |
CollectionsApi | collectionsColuuidPost | POST /collections/{coluuid} | Add contents to a collection |
CollectionsApi | collectionsFsAddPost | POST /collections/fs/add | Add a file to a collection |
CollectionsApi | collectionsGet | GET /collections/ | List all collections |
CollectionsApi | collectionsPost | POST /collections/ | Create a new collection |
ContentApi | contentAddCarPost | POST /content/add-car | Add Car object |
ContentApi | contentAddIpfsPost | POST /content/add-ipfs | Add IPFS object |
ContentApi | contentAddPost | POST /content/add | Add new content |
ContentApi | contentAggregatedContentGet | GET /content/aggregated/{content} | Get aggregated content stats |
ContentApi | contentAllDealsGet | GET /content/all-deals | Get all deals for a user |
ContentApi | contentBwUsageContentGet | GET /content/bw-usage/{content} | Get content bandwidth |
ContentApi | contentCreatePost | POST /content/create | Add a new content |
ContentApi | contentDealsGet | GET /content/deals | Content with deals |
ContentApi | contentEnsureReplicationDatacidGet | GET /content/ensure-replication/{datacid} | Ensure Replication |
ContentApi | contentFailuresContentGet | GET /content/failures/{content} | List all failures for a content |
ContentApi | contentIdGet | GET /content/{id} | Content |
ContentApi | contentImportdealPost | POST /content/importdeal | Import a deal |
ContentApi | contentListGet | GET /content/list | List all pinned content |
ContentApi | contentReadContGet | GET /content/read/{cont} | Read content |
ContentApi | contentStagingZonesGet | GET /content/staging-zones | Get staging zone for user |
ContentApi | contentStatsGet | GET /content/stats | Get content statistics |
ContentApi | contentStatusIdGet | GET /content/status/{id} | Content Status |
DealsApi | dealEstimatePost | POST /deal/estimate | Estimate the cost of a deal |
DealsApi | dealInfoDealidGet | GET /deal/info/{dealid} | Get Deal Info |
DealsApi | dealProposalPropcidGet | GET /deal/proposal/{propcid} | Get Proposal |
DealsApi | dealQueryMinerGet | GET /deal/query/{miner} | Query Ask |
DealsApi | dealStatusByProposalPropcidGet | GET /deal/status-by-proposal/{propcid} | Get Deal Status by PropCid |
DealsApi | dealStatusMinerPropcidGet | GET /deal/status/{miner}/{propcid} | Deal Status |
DealsApi | dealTransferInProgressGet | GET /deal/transfer/in-progress | Transfer In Progress |
DealsApi | dealsFailuresGet | GET /deals/failures | Get storage failures for user |
DealsApi | dealsMakeMinerPost | POST /deals/make/{miner} | Make Deal |
DealsApi | dealsStatusDealGet | GET /deals/status/{deal} | Get Deal Status |
DealsApi | publicDealsFailuresGet | GET /public/deals/failures | Get storage failures |
DealsApi | publicMinersStorageQueryMinerGet | GET /public/miners/storage/query/{miner} | Query Ask |
DefaultApi | dealTransferStatusPost | POST /deal/transfer/status | |
MetricsApi | publicMetricsDealsOnChainGet | GET /public/metrics/deals-on-chain | Get deal metrics |
MinerApi | publicMinersDealsMinerGet | GET /public/miners/deals/{miner} | Get all miners deals |
MinerApi | publicMinersStatsMinerGet | GET /public/miners/stats/{miner} | Get miner stats |
NetApi | netAddrsGet | GET /net/addrs | Net Addrs |
NetApi | publicMinersFailuresMinerGet | GET /public/miners/failures/{miner} | Get all miners |
NetApi | publicMinersGet | GET /public/miners | Get all miners |
NetApi | publicNetAddrsGet | GET /public/net/addrs | Net Addrs |
NetApi | publicNetPeersGet | GET /public/net/peers | Net Peers |
PeeringApi | adminPeeringPeersDelete | DELETE /admin/peering/peers | Remove peers on Peering Service |
PeeringApi | adminPeeringPeersGet | GET /admin/peering/peers | List all Peering peers |
PeeringApi | adminPeeringPeersPost | POST /admin/peering/peers | Add peers on Peering Service |
PeeringApi | adminPeeringStartPost | POST /admin/peering/start | Start Peering |
PeeringApi | adminPeeringStatusGet | GET /admin/peering/status | Check Peering Status |
PeeringApi | adminPeeringStopPost | POST /admin/peering/stop | Stop Peering |
PeersApi | adminPeeringPeersDelete | DELETE /admin/peering/peers | Remove peers on Peering Service |
PeersApi | adminPeeringPeersGet | GET /admin/peering/peers | List all Peering peers |
PeersApi | adminPeeringPeersPost | POST /admin/peering/peers | Add peers on Peering Service |
PeersApi | adminPeeringStartPost | POST /admin/peering/start | Start Peering |
PeersApi | adminPeeringStatusGet | GET /admin/peering/status | Check Peering Status |
PeersApi | adminPeeringStopPost | POST /admin/peering/stop | Stop Peering |
PinningApi | pinningPinsGet | GET /pinning/pins | List all pin status objects |
PinningApi | pinningPinsPinidDelete | DELETE /pinning/pins/{pinid} | Delete a pinned object |
PinningApi | pinningPinsPinidGet | GET /pinning/pins/{pinid} | Get a pin status object |
PinningApi | pinningPinsPinidPost | POST /pinning/pins/{pinid} | Replace a pinned object |
PinningApi | pinningPinsPost | POST /pinning/pins | Add and pin object |
PublicApi | publicByCidCidGet | GET /public/by-cid/{cid} | Get Content by Cid |
PublicApi | publicInfoGet | GET /public/info | Get public node info |
PublicApi | publicMetricsDealsOnChainGet | GET /public/metrics/deals-on-chain | Get deal metrics |
PublicApi | publicMinersDealsMinerGet | GET /public/miners/deals/{miner} | Get all miners deals |
PublicApi | publicMinersFailuresMinerGet | GET /public/miners/failures/{miner} | Get all miners |
PublicApi | publicMinersGet | GET /public/miners | Get all miners |
PublicApi | publicMinersStatsMinerGet | GET /public/miners/stats/{miner} | Get miner stats |
PublicApi | publicNetAddrsGet | GET /public/net/addrs | Net Addrs |
PublicApi | publicNetPeersGet | GET /public/net/peers | Net Peers |
PublicApi | publicStatsGet | GET /public/stats | Public stats |
UserApi | userApiKeysGet | GET /user/api-keys | Get API keys for a user |
UserApi | userApiKeysKeyDelete | DELETE /user/api-keys/{key} | Revoke a User API Key. |
UserApi | userApiKeysPost | POST /user/api-keys | Create API keys for a user |
UserApi | userExportGet | GET /user/export | Export user data |
UserApi | userStatsGet | GET /user/stats | Create API keys for a user |
Documentation For Models
- CollectionsCollection
- MainCreateCollectionBody
- MainDeleteContentFromCollectionBody
- MainEstimateDealBody
- MainGetApiKeysResp
- MainImportDealBody
- MainUserStatsResponse
- UtilContentAddIpfsBody
- UtilContentAddResponse
- UtilContentCreateBody
- UtilHttpError
Documentation For Authorization
bearerAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header