queryDrafts

fun queryDrafts(filter: FilterObject, limit: Int, next: String? = null, sort: QuerySorter<DraftsSort> = QuerySortByField.descByName("created_at")): Call<QueryDraftsResult>

Query draft messages for the current user.

Parameters

filter

The filter to apply to the query.

limit

The number of draft messages to return.

next

The pagination token for the next page of results.

sort

The sorting criteria for the results. Possible only the 'created_at' field. By default, draft messages are returned with the newest first.