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
profile
from theprofiles
collection corresponding to the value of theuid
field passed [404]. - Finds a
collection
from thecollections
field of theprofile
corresponding to the value of thecollectionID
field passed [404]. - Returns the found
collection
.