Delay in Endpoint request #114
Answered
by
sbertix
mehroozkhan
asked this question in
Q&A
-
Hello, like its in SWiftyInsta library, and I can change it like handler.settings.delay = 1 Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
sbertix
Dec 17, 2020
Replies: 2 comments 7 replies
This comment has been hidden.
This comment has been hidden.
-
Hey @mehroozkhan, Starting with Swiftagram Here's an example. var bin: Set<AnyCancellable> = []
let secret: Secret = /* some `Secret` */
Endpoint.user(secret.identifier)
.posts
.unlock(with: secret)
.session(.instagram)
.pages(.max, delay: 1)
.catch { _ in Empty() }
.sink { print($0) }
.store(in: &bin) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure. You can create custom
Requester
s and pass them when calling.task(by: requester)
or apply a default one…We also provide an ad-hoc
Requester
for the Instagram Private API called.instagram
.Just call this line as soon as the app launches.
Check out the
README.md
and the example for more.Please also keep in mind issues are now only used for ACTUAL issues. As this is just a question on the library you should ask it on the new Discussions section. I've moved it automatically for now, but non-bug issues will be automatically closed in the future.