SwiftagramCrypto Documentation

Extensions on Endpoint.Group.Saved

Properties

posts

var posts: Endpoint.Paginated<Swiftagram.Media.Collection, String?, Error>  

List all saved posts reguardless of their collection.

Returns

A valid Endpoint.Paginated.

collections

var collections: Endpoint.Paginated<SavedCollection.Collection, String?, Error>  

List all collections.

Returns

A valid Endpoint.Paginated.

Methods

collection(_:​)

func collection(_ identifier: String) -> Collection  

A wrapper for collection-related endpoints.

Parameters

identifier String

A valid String.

Returns

A valid Collection.

collection(_:​)

func collection(_ collection: SavedCollection) -> Collection  

A wrapper for collection-related endpoints.

Parameters

collection Saved​Collection

A valid SavedCollection.

Returns

A valid Collection.

collection(_:​)

func collection(_ identifier: String) -> Endpoint.Single<SavedCollection.Unit, Swift.Error>  

A summary of the collection.

Parameters

identifier String

A valid String.

Returns

A valid Endpoint.Paginated.

collection(_:​)

@available(*, deprecated, message: "paging summary is no longer supported (removing in 6.0)")
    func collection(_ identifier: String) -> Endpoint.Paginated<SavedCollection.Unit, String?, Swift.Error>  

A summary of the collection.

Parameters

identifier String

A valid String.

Returns

A valid Endpoint.Paginated.

collection(_:​)

func collection(_ collection: SavedCollection) -> Endpoint.Single<SavedCollection.Unit, Swift.Error>  

A summary of the collection.

Parameters

collection Saved​Collection

A valid SavedCollection.

Returns

A valid Endpoint.Paginated.

collection(_:​)

@available(*, deprecated, message: "paging summary is no longer supported (removing in 6.0)")
    func collection(_ collection: SavedCollection) -> Endpoint.Paginated<SavedCollection.Unit, String?, Swift.Error>  

A summary of the collection.

Parameters

collection Saved​Collection

A valid SavedCollection.

Returns

A valid Endpoint.Paginated.