-
Hello, I started to make a few tests on the story endpoints and I was wondering if they are "complicated" as they seems to be, or if I'm just missing something. I'm trying to get the stories of people I'm following as they appear in the Instagram app, so I'm calling Endpoint.recent.stories. Every item can have its own items parameter ( basically an array of Media objects ) that seems to be just the unwatched stories. At the moment I'm interested in the second one because I'm trying to display all the available stories. With those ids I can now call the Endpoint.media(#media_id) endpoint to get the real story medias. Now, do I really have to do this nested endpoint calls and work on the Wrappers to get all the available story medias or did I just missed some endpoint call or parameter? I hope to have written in an understandable way, If I haven't been clear ( or grammatically correct ) enough, just let me know and I'll try my best to explain myself better. ...and thanks in advance for any clarification or confirmation of the process to get the stories! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @biox86, yep, you're definitely overcomplicating things 😊 Do not rely on |
Beta Was this translation helpful? Give feedback.
-
Hey! |
Beta Was this translation helpful? Give feedback.
Hey @biox86,
yep, you're definitely overcomplicating things 😊
All you need to do is check for available stories with
Endpoint.recent.stories
and then load them withEndpoint.user(_:).stories
one by one, as you actually want to load them, passing theTrayElement
identifier
as theEndpoint.user(_:).stories
argument.Do not rely on
Endpoint.users(_:).stories
with allidentifier
s at once as it only loads media for the first one (just likeEndpoint.recent.stories
). Again:Endpoint.user(_:).stories
one at a time, notEndpoint.users(_:).stories
.