Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Get first item from search

Nouvelle publication

Commentaires

1 commentaire

  • Lukasz Socha

    Hi!
    query() method returns BoxObjectCollection object, which inherits from Iterator. Therefore you can use either next() method exposed by BoxObjectCollection class or next() method inherited form Iterator class. To get first item you can do:

    item1 = items1.next() # recommended 

    or

    item1 = next(items1)

    Regards

    0
    Actions pour les commentaires Permalien

Cette publication n’accepte pas de commentaire.