SwiftagramCrypto Documentation

Extensions on Endpoint.Group.Direct

Properties

activity

var activity: Endpoint.Single<Wrapper, Error>  

Get the user presence.

conversations

var conversations: Endpoint.Paginated<Swiftagram.Conversation.Collection, String?, Error>  

Paginate all approved conversations in your inbox.

recipients

var recipients: Endpoint.Single<Recipient.Collection, Error>  

Fetch all suggested recipients.

requests

var requests: Endpoint.Paginated<Swiftagram.Conversation.Collection, String?, Error>  

Paginate the pending requests inbox.

Methods

recipients(matching:​)

func recipients(matching query: String) -> Endpoint.Single<Recipient.Collection, Error>  

Fetch all recipients, optinally matching a given query.

Parameters

query String

A valid String.

Returns

An Endpoint.Single.

conversation(_:​)

func conversation(_ identifier: String) -> Conversation  

A wrapper for conversation endpoints.

Parameters

identifier String

A valid String.

Returns

A valid Conversation.

conversation(_:​)

func conversation(_ identifier: String) -> Endpoint.Single<Swiftagram.Conversation.Unit, Error>  

A summary for the current conversation.

Parameters

identifier String

A valid String.

Returns

A valid Endpoint.Single.