Newbie trying PKTItem.fetchItemsInAppWithID using Swift

Comments

1 comment

  • Romain Briche

    On the top of my head it would be something like:

    PKTItem.fetchItemsInAppWithID(1234, offset: 0, limit: 30).onComplete { (result, error) in
        guard let items = result as? [PKTItem] else {
            // handle error
        }
    
        for item in items {
            // do something with item
        }
    }
    
    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk