Download data
Hosted
- Typescript
- Python
- Java
- PHP
- Golang
import { Bloock, HostedLoader, RecordClient } from '@bloock/sdk';
Bloock.setApiKey(process.env['API_KEY']);
const recordClient = new RecordClient();
const id = 'publish uuid result';
const _record = await recordClient.fromLoader(new HostedLoader(id)).build();
import os
from bloock import bloock
from bloock.client.record import RecordClient
from bloock.entity.availability.hosted_loader import HostedLoader
if __name__ == "__main__":
bloock.api_key = os.environ["API_KEY"]
record_client = RecordClient()
pid = "publish uuid result"
record = record_client.from_loader(HostedLoader(pid)).build()
import com.bloock.sdk.client.AvailabilityClient;
import com.bloock.sdk.client.RecordClient;
import com.bloock.sdk.entity.availability.HostedLoader;
import com.bloock.sdk.entity.record.Record;
public class RetrieveHosted {
public static void main(String[] args) throws Exception {
RecordClient recordClient = new RecordClient();
AvailabilityClient availabilityClient = new AvailabilityClient();
String id = "publish uuid result";
Record record = recordClient.fromLoader(new HostedLoader(id)).build();
}
}
<?php
require "./vendor/autoload.php";
use Bloock\Bloock;
use Bloock\Client\AvailabilityClient;
use Bloock\Client\RecordClient;
use Bloock\Entity\Availability\HostedLoader;
Bloock::$apiKey = getenv("API_KEY") ?: "";
$recordClient = new RecordClient();
$availabilityClient = new AvailabilityClient();
$id = "publish uuid result";
$record = $recordClient->fromLoader(new HostedLoader($id))->build();
package main
import (
"log"
"os"
bloock "github.com/bloock/bloock-sdk-go/v2"
"github.com/bloock/bloock-sdk-go/v2/client"
"github.com/bloock/bloock-sdk-go/v2/entity/availability"
)
func main() {
bloock.ApiKey = os.Getenv("API_KEY")
recordClient := client.NewRecordClient()
id := "publish uuid result"
_, err := recordClient.FromLoader(availability.NewHostedLoader(id)).Build()
if err != nil {
log.Println(err)
}
}
IPFS
- Typescript
- Python
- Java
- PHP
- Golang
import { Bloock, IpfsLoader, RecordClient } from '@bloock/sdk';
Bloock.setApiKey(process.env['API_KEY']);
const recordClient = new RecordClient();
const id = 'publish uuid result';
const _record = await recordClient.fromLoader(new IpfsLoader(id)).build();
import os
from bloock import bloock
from bloock.client.record import RecordClient
from bloock.entity.availability.ipfs_loader import IpfsLoader
if __name__ == "__main__":
bloock.api_key = os.environ["API_KEY"]
record_client = RecordClient()
pid = "publish uuid result"
record = record_client.from_loader(IpfsLoader(pid)).build()
import com.bloock.sdk.client.RecordClient;
import com.bloock.sdk.entity.availability.IpfsLoader;
import com.bloock.sdk.entity.record.Record;
public class RetrieveIpfs {
public static void main(String[] args) throws Exception {
RecordClient recordClient = new RecordClient();
String id = "publish uuid result";
Record record = recordClient.fromLoader(new IpfsLoader(id)).build();
}
}
<?php
require "./vendor/autoload.php";
use Bloock\Bloock;
use Bloock\Client\AvailabilityClient;
use Bloock\Client\RecordClient;
use Bloock\Entity\Availability\IpfsLoader;
Bloock::$apiKey = getenv("API_KEY") ?: "";
$recordClient = new RecordClient();
$availabilityClient = new AvailabilityClient();
$id = "publish uuid result";
$record = $recordClient->fromLoader(new IpfsLoader($id))->build();
package main
import (
"log"
"os"
bloock "github.com/bloock/bloock-sdk-go/v2"
"github.com/bloock/bloock-sdk-go/v2/client"
"github.com/bloock/bloock-sdk-go/v2/entity/availability"
)
func main() {
bloock.ApiKey = os.Getenv("API_KEY")
recordClient := client.NewRecordClient()
id := "publish uuid result"
_, err := recordClient.FromLoader(availability.NewIpfsLoader(id)).Build()
if err != nil {
log.Println(err)
}
}