📘API Reference

Returns a website containing an image from the metamarket

GET https://business.dglive.org/api/tokenImage/Token ID/NFT Addr

Simply input the token ID and NFT Address of the NFT in the query params to get as a response the image that represents that token.

Query Parameters

Name
Type
Description

Token ID*

Varchar

The Token ID of the NFT you want to retrieve

NFT Addr*

Varchar

The address of the NFT you want to retrieve

Returns the requested image URL from the metamarket in json format

GET https://business.dglive.org/api/getSlotImageURL/Token ID/NFT Addr

curl https://business.dglive.org/api/getSlotImageURL/15/0x06bbacfa34951cc5f0f349d7769a24c02373ccfd -H "Accept: application/json"

Query Parameters

Name
Type
Description

Token ID*

Varchar

The Token ID of the NFT you want to retrieve

NFT Addr*

Varchar

The address of the NFT you want to retrieve

{"url":"https://ipfs.io/ipfs/QmZfyEpJtVV3EGCUQEv4j8GafwB3ZEjw7CahjJcZTgpVe6"}

getAllMarketSlots

GET https://business.dglive.org/api/getAllMarketSlots/User ID/Slot ID

Returns the slots from the specified user and specified scenes

Query Parameters

Name
Type
Description

User ID*

Int

The user ID of the slot you want to retrieve

Slot ID *

Int

The ID of the specific slot you want to retrieve

[{"id":"1","id_user":"1","id_zone":"1","name":"Example","status":"1","pos_x":"1","pos_y":"1","pos_z":"1","size_x":"1","size_y":"1","size_z":"1","rot_x":"1","rot_y":"1","rot_z":"1","token_id":"10","price":100,"resource_id":"99","wallet":"0xfollowWallet","address":"0xnftAddress"}]

GET https://business.dglive.org/api/getSlotsByZone/Scene ID

curl https://business.dglive.org/api/getSlotsByZone/1 -H "Accept: application/json"

Query Parameters

Name
Type
Description

Scene ID*

Int

The ID of the scene you want to retrieve the slots from

[{"id":"1","id_user":"1","id_zone":"1","name":"Example","status":"1","pos_x":"1","pos_y":"1","pos_z":"1","size_x":"1","size_y":"1","size_z":"1","rot_x":"1","rot_y":"1","rot_z":"1","token_id":"10","price":100,"resource_id":"99","wallet":"0xfollowWallet","address":"0xnftAddress"}]

updateSlot

POST https://business.dglive.org/api/updateSlot/Slot ID/API KEY

Updates the specified slot with the specified parameters.

Query Parameters

Name
Type
Description

Slot ID*

Int

The ID of the slot to be updated

API KEY*

Varchar

A valid API KEY

Request Body

Name
Type
Description

address

Varchar

The token address

resource_id

Varchar

The resource ID

token_id

Varchar

The Token ID

wallet

Varchar

The follow wallet address

name

Varchar

The name of the slot you are updating

pos_x

Int

The x position for this slot

pos_y

Int

The y position for this slot

pos_z

Int

The z position for this slot

rot_x

Int

The x rotation for this slot

rot_y

Int

The y rotation for this slot

rot_z

Int

The z rotation for this slot

size_x

Int

The y size for this slot

size_y

Int

The y size for this slot

size_z

Int

The z size for this slot

price

Double

The price for this slot

{}

deleteSlot

GET https://business.dglive.org/api/deleteSlot/Slot ID

Deletes the specified slot (This only works if you are logged into the DG Business platform, no api key access is allowed yet).

Query Parameters

Name
Type
Description

Slot ID*

Int

The ID of the slot to delete

{}

Last updated