LogoLogo
Landing PageMarketplaceDeveloper PortalDeveloper Discord
  • 👋Welcome to Altura
  • Getting started
    • 🚀Altura NFTs
    • đŸ›ī¸The Altura Marketplace
    • đŸĒ…Minting & Importing NFTs
    • 👔Users & Authentication
    • 🔑Altura Guard
  • đŸ’ģDeveloper Portal
    • 🧰The Developer Wallet
  • 🌐REST API
    • 🎴Get Your API Key
    • 🔧Methods
      • đŸ›Ąī¸Authenticate User
      • 👤Get User
      • đŸ‘ĨGet Users
      • đŸ–ŧī¸Get a User's Items
      • đŸ–ŧī¸Get Item
      • 🌈Get Items
      • 👾Get an Item's Holders
      • 📜Get an Item's History
      • 💠Transfer ERC1155
      • 💠Transfer ERC721
      • 💠Bulk Transfer ERC1155
      • 🔮Update an Item's Properties
      • âœī¸Update an Item's data
      • đŸ§ŦBulk Update an Item's Properties
      • đŸĒ„Update an Item's Image
      • 📸Add a New Image
      • đŸĒŸMint Additional Supply
      • 📁Get Collection
      • đŸ—‚ī¸Get Collections
      • đŸĒ„Update Collection
      • đŸĒ™Transfer ERC20
      • â˜‘ī¸Verify item Ownership
      • đŸĒ™Check User's ERC20 Balance
      • 💰Check User's Balance
  • 🔆JavaScript SDK
    • đŸ› ī¸Installation
    • 🔧Methods
      • đŸ›Ąī¸Authenticate User
      • 👤Get User
      • đŸ‘ĨGet Users
      • đŸ–ŧī¸Get User's Items
      • đŸ–ŧī¸Get Item
      • 🌈Get Items
      • 👾Get an Item's Holders
      • 📜Get an Item's History
      • 💠Transfer ERC1155
      • 💠Transfer ERC721
      • 💠Bulk Transfer ERC1155
      • đŸĒŸMint Additional Supply
      • 🔮Update Property
      • đŸĒ„Update Primary Image
      • 🆕Add a New Image
      • 📁Get Collection
      • đŸ—‚ī¸Get Collections
      • đŸĒ„Update Collection
      • đŸĒ™Transfer ERC20
    • đŸŽ›ī¸Schemas
    • âŒ¨ī¸Connector API
  • đŸ•šī¸Unity SDK
    • đŸ› ī¸Installation
    • 🔧Methods
      • đŸ›Ąī¸Authenticate User
      • 👤Get User
      • đŸ‘ĨGet Users
      • đŸ–ŧī¸Get User's Items
      • đŸ–ŧī¸Get Item
      • 🌈Get Items
      • 👾Get an Item Holders
      • 📜Get an Item's History
      • 💠Transfer ERC1155
      • 💠Transfer ERC721
      • 💠Bulk Transfer ERC1155
      • đŸĒŸMint Additional Supply
      • 🔮Update Property
      • đŸĒ„Update Primary Image
      • 📁Get Collection
      • đŸ—‚ī¸Get Collections
      • đŸĒ„Update Collection
      • đŸĒ™Transfer ERC20
    • đŸŽ›ī¸Schema
  • More
    • đŸˇī¸White Label Marketplaces
    • 🛒List Your Game on the Altura Marketplace
    • â˜‘ī¸Get Your Collection Verified
    • 🎁Create a Loot Box
  • 🎮Unreal SDK (ALPHA)
    • đŸ› ī¸Installation (Alpha)
    • đŸ›Ąī¸Authenticate User
    • 👤Get User
    • đŸ‘ĨGet Users
    • đŸ–ŧī¸Get Item
    • 🌈Get Items
    • 👾Get an Item's Holders
    • 📜Get an Item's History
    • 📁Get Collection
    • 📂Get Collections
    • đŸĒ™Get User ERC20 balance
Powered by GitBook
On this page
  • Usage in your script

Was this helpful?

  1. Unity SDK
  2. Methods

Get Users

Use this method to get information of multiple users at same time such as Name, Bio, social etc. etc. On success, the data is returned as JSON.

Usage in your script

GetUsers
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    perPage: "20",
    page: "1",
    sortBy: "name",
    sortDir: "asc"
  )
  .filter(//optional
  name: "Altura",
  )
  .OnError(error => Debug.Log(error))
  .OnComplete(result => Debug.Log(result))
  .Run();

Member Functions

.Initialize()

Parameter
Type
Required
Description

destroyAtEnd

bool

Optional

defines if this component will be destroyed after .Run()

.SetParameters()

Parameter
Type
Required
Description

perPage

String

Yes

Amount of users per page.

page

String

Yes

Amount of pages

sortBy

String

Yes

The field to sort the users by (any field in the user schema may be used)

sortDir

String

Yes

Choose to sort in ascending (asc) or descending (desc) order

.filter()

Parameter
Type
Required
Description

address

String

Optional

filter by user address

name

String

Optional

filter by user Name

bio

String

Optional

filter by user Bio

.onError()

Action on Error: returns error information.

.onComplete()

.Run()

Runs the API call and fills the corresponding model in the component on success.

PreviousGet UserNextGet User's Items

Last updated 2 years ago

Was this helpful?

Action on successful: returnstype.

đŸ•šī¸
🔧
đŸ‘Ĩ
User_model