Skip to content

How can I get the total following count of a user? #175

Answered by sbertix
emreond asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @emreond,

If counter is nil it means the data you're looking for is not populated in the response.

It shouldn't be nil when calling Endpoint.User.summary(for:), though.
Do you mind sending me the console log for the response?
Assuming you're calling it like this, add the logging call.

Endpoint.User.summary(for: identifier)
   .unlocking(with: secret)
   .task { _ in }
   .logging(level: .responseBody)
   .resume()

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@emreond
Comment options

@sbertix
Comment options

@emreond
Comment options

@sbertix
Comment options

Answer selected by sbertix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants