Code Monkey home page Code Monkey logo

Comments (7)

TheM4hd1 avatar TheM4hd1 commented on June 4, 2024

make sure update to version 1.1

try! handler.markStoriesAsSeen(items: items, sourceId: nil, completion: { (result) in
    if result.value {
        //...
    } else {
        // ..
    }
})

from swiftyinsta.

iSlou1 avatar iSlou1 commented on June 4, 2024

from swiftyinsta.

TheM4hd1 avatar TheM4hd1 commented on June 4, 2024
try! handler.getUserStory(userId: user.value!.pk!, completion: { (result) in
    
    let items = result.value!.items!
    try! handler.markStoriesAsSeen(items: items, sourceId: nil, completion: { (result) in
        
    })
//....

from swiftyinsta.

iSlou1 avatar iSlou1 commented on June 4, 2024

from swiftyinsta.

TheM4hd1 avatar TheM4hd1 commented on June 4, 2024

Describe what you doing
Describe steps
Attach your code
Attach screenshot

from swiftyinsta.

iSlou1 avatar iSlou1 commented on June 4, 2024

from swiftyinsta.

TheM4hd1 avatar TheM4hd1 commented on June 4, 2024

you didn't attached the info I requested. I can't help you when I don't know what your error is.

  1. try to find userId of the user you want receive stories from.
  2. call handler.getUserStories function
  3. extract Items: [TrayItems] from result you receive in step 2
  4. call handler.markStoriesAsSeen function to mark stories as seen.

If you had any error, please attach the code + screenshots and error.

from swiftyinsta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.