All URIs are relative to http://obs.node.obada.io, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
batchMint() | POST /nft/batch-mint | Mints batches of NFT |
batchSend() | POST /nft/batch-send | Send a batch of NFTs to another address |
mint() | POST /nft/{key}/mint | Mints NFT |
nft() | GET /nft/{key} | Fetch NFT from OBADA blockchain Node |
send() | POST /nft/{key}/send | Send NFT to another address |
updateMetadata() | POST /nft/{key}/metadata | Update NFT metadata |
batchMint($batchMintNFTRequest)
Mints batches of NFT
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Obada\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Obada\Api\NFTApi(
// 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
);
$batchMintNFTRequest = new \Obada\ClientHelper\BatchMintNFTRequest(); // \Obada\ClientHelper\BatchMintNFTRequest
try {
$apiInstance->batchMint($batchMintNFTRequest);
} catch (Exception $e) {
echo 'Exception when calling NFTApi->batchMint: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
batchMintNFTRequest | \Obada\ClientHelper\BatchMintNFTRequest | [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]
batchSend($batchSendNFTRequest)
Send a batch of NFTs to another address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Obada\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Obada\Api\NFTApi(
// 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
);
$batchSendNFTRequest = new \Obada\ClientHelper\BatchSendNFTRequest(); // \Obada\ClientHelper\BatchSendNFTRequest
try {
$apiInstance->batchSend($batchSendNFTRequest);
} catch (Exception $e) {
echo 'Exception when calling NFTApi->batchSend: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
batchSendNFTRequest | \Obada\ClientHelper\BatchSendNFTRequest | [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]
mint($key)
Mints NFT
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Obada\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Obada\Api\NFTApi(
// 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
);
$key = did:obada:fe096095-e0f0-4918-9607-6567bd5756b5; // string | The given ObitDID or USN argument
try {
$apiInstance->mint($key);
} catch (Exception $e) {
echo 'Exception when calling NFTApi->mint: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
key | string | The given ObitDID or USN argument |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
nft($key): \Obada\ClientHelper\NFT
Fetch NFT from OBADA blockchain Node
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Obada\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Obada\Api\NFTApi(
// 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
);
$key = did:obada:fe096095-e0f0-4918-9607-6567bd5756b5; // string | The given ObitDID or USN argument
try {
$result = $apiInstance->nft($key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NFTApi->nft: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
key | string | The given ObitDID or USN argument |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
send($key, $sendNFTRequest)
Send NFT to another address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Obada\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Obada\Api\NFTApi(
// 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
);
$key = did:obada:fe096095-e0f0-4918-9607-6567bd5756b5; // string | The given ObitDID or USN argument
$sendNFTRequest = new \Obada\ClientHelper\SendNFTRequest(); // \Obada\ClientHelper\SendNFTRequest
try {
$apiInstance->send($key, $sendNFTRequest);
} catch (Exception $e) {
echo 'Exception when calling NFTApi->send: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
key | string | The given ObitDID or USN argument | |
sendNFTRequest | \Obada\ClientHelper\SendNFTRequest | [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]
updateMetadata($key)
Update NFT metadata
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Obada\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Obada\Api\NFTApi(
// 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
);
$key = did:obada:fe096095-e0f0-4918-9607-6567bd5756b5; // string | The given ObitDID or USN argument
try {
$apiInstance->updateMetadata($key);
} catch (Exception $e) {
echo 'Exception when calling NFTApi->updateMetadata: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
key | string | The given ObitDID or USN argument |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]