Fetch One
/api/v2/collection/fetch/one
Post
profiles
jwt
Purpose
To allow a user to fetch one of his/her collections.
Body Content [input]
{
uid: string,
collectionID: string
}
Returns if valid [output]
{
collection: {
collectionID: string,
name: string,
posts: string[]
},
error: 0
}
What the API does
- Finds a
profilefrom theprofilescollection corresponding to the value of theuidfield passed [404]. - Finds a
collectionfrom thecollectionsfield of theprofilecorresponding to the value of thecollectionIDfield passed [404]. - Returns the found
collection.