Get Items

Use this method to get metadata of multiple Items at the same time.

Usage in your script

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

Member Functions

.Initialize()

.SetParameters()

.filter()

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returnsItems_model type.

.Run()

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

Last updated