Extensions on
Endpoint.Group.Media
Properties
comments
var comments: Endpoint.Paginated < Swiftagram.Comment.Collection,
RankedOffset<String?, String?>,
Swift.Error>
A list of comments for the current media.
likers
var likers: Endpoint.Paginated < Swiftagram.User.Collection,
RankedOffset<String?, String?>,
Swift.Error>
A list of likers for the current media.
link
Fetch the permalink for the current media.
Methods
comment(with:under:)
func comment(with text: String,
under parentCommentIdentifier: String? = nil)
-> Endpoint.Single<Swiftagram.Comment.Unit, Swift.Error>
Post a comment under the current post, and optionally under a given comment.
Parameters
| Name | Type | Description |
|---|---|---|
| text | String |
A valid |
| parentCommentIdentifier | String? |
An optional |
Returns
A valid Endpoint.Single.
save(in:)
Save in a specific collection.
Parameters
| Name | Type | Description |
|---|---|---|
| collectionIdentifier | String |
A valid |
Returns
A valid Endpoint.Single.
comments(_:)
func comments<C: Collection>(_ identifiers: C) -> ManyComments where C.Element == String
A wrapper for comments-specific endpoints.
Parameters
| Name | Type | Description |
|---|---|---|
| identifiers | C |
A collection of |
Returns
A valid Endpoint.ManyComments.
comment(_:)
func comment(_ identifier: String) -> Comment
A wrapper for comments endpoints.
Parameters
| Name | Type | Description |
|---|---|---|
| identifier | String |
A valid |
Returns
A valid Endpoint.Comment.