This client was generated via the OpenAPI schema and is experimental, unsupported, and may not work at all!
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Hello from NFT.Storage!
As of June 30, 2024, we have officially decommissioned NFT.Storage Classic uploads. This means that NFT.Storage Classic, including NFTUp, the Classic web app, Classic APIs, Classic SDK, and Pinning API, will no longer accept new uploads/pins.
Service Termination: NFT.Storage Classic will no longer accept new uploads. However, retrieval of existing data remains operational.
Data Access: Don't forget, we're still keeping a copy of your NFT.Storage Classic data available in the NFT.Storage Gateway and in the decentralized Filecoin Network. However, over time, latency and availability may degrade.
Support: We’ll be working with the newly formed NFT.Storage community to determine what changes, if any, will impact NFT.Storage Classic data latency and availability in the future. Join the community Join the community to have your say. We will keep you informed by email and on Twitter/X.
For the new version of NFT.Storage, first mint your NFTs, then send us the NFT data—metadata and imagery CIDs, blockchain(s) minted on, contract address, and token IDs. We will preserve these in long-term Filecoin storage. Note that you need to upload the data to IPFS separately. Your NFTs will also be included in the NFT Token Checker, a tool for block explorers, marketplaces, and wallets to show verification that NFT collections, tokens, and CIDs are preserved by NFT.Storage.
We’re excited to announce our partnerships with Pinata and Lighthouse for hot storage solutions. As an NFT.Storage user, you support our platform when you choose Pinata and Lighthouse and use our referral links, helping to sustain our valuable public goods. Learn more here.
Pinata: Offers flexible plans and powerful, easy-to-use tools for managing your data on IPFS. Use code NFTSTORAGE50 at checkout to enjoy 50% off your first month. Sign up today.
Lighthouse: An IPFS provider with unique payment options for NFT longevity. They offer affordability and flexibility for all your IPFS needs, including a pay-once and store-forever option. Sign up today.
For any questions or assistance, contact us contact us. Together, we look forward to a promising future for NFT.Storage and the broader NFT ecosystem.
Best regards,
The NFT.Storage Team
PHP 7.2 and later.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/nftstorage/php-client.git"
}
],
"require": {
"nftstorage/php-client": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/NFTStorage/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = NFTStorage\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new NFTStorage\Api\NFTStorageAPI(
// 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
);
$before = 2020-07-27T17:32:28Z; // \DateTime | Return results created before provided timestamp
$limit = 10; // int | Max records to return
try {
$result = $apiInstance->callList($before, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NFTStorageAPI->callList: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://api.nft.storage
Class | Method | HTTP request | Description |
---|---|---|---|
NFTStorageAPI | callList | GET / | List all stored files |
NFTStorageAPI | delete | DELETE /{cid} | Stop storing the content with the passed CID |
NFTStorageAPI | status | GET /{cid} | Get information for the stored file CID |
NFTStorageAPI | store | POST /upload | Store a file |
- Deal
- DeleteResponse
- ErrorResponse
- ErrorResponseError
- ForbiddenErrorResponse
- ForbiddenErrorResponseError
- GetResponse
- Links
- LinksFile
- ListResponse
- NFT
- Pin
- PinStatus
- UnauthorizedErrorResponse
- UnauthorizedErrorResponseError
- UploadResponse
- Type: Bearer authentication (JWT)
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen