Closed tmladek closed 1 year ago
Known issues: attachments
is at the moment always presumed to be a list of Video IDs, triggering special handling (updating the video with published=true
instead of creating an actual post). There's nothing about the ID that could be used to tell whether it's a video or potentially a photo.
type
param to MediaAttachment
?attachments
to videos
(as that's the only use right now anyway?)GET
various endpoints to see which one returns without error, giving info about the type of the item?However, I am not sure how it will affect usage with Twitter (for images) and LinkedIn (for documents).
Right - well, I suppose we'd have to add (yet) another attribute for that (documents
, images
)... So I'd rather vote for adding a type
field?
Right - well, I suppose we'd have to add (yet) another attribute for that (documents, images)... So I'd rather vote for adding a type field?
That'd make it harder to use. I vote for videos
with type of [string]
and if we need to support more types, backward compat would be trivial.
Okay, one last thing I noticed that I want to point out before I change it - we already use attachment
s with type
s in station, even in the same category of profiles: https://github.com/superfaceai/station/blob/main/grid/social-media/posts/profile.supr#L78
Okay, one last thing I noticed that I want to point out before I change it - we already use
attachment
s withtype
s in station, even in the same category of profiles: https://github.com/superfaceai/station/blob/main/grid/social-media/posts/profile.supr#L78
That's good point, but I think it's a different use case (heh). That structure is for reading the data, here we optimize for writing / input. And you won't be feeding that structure from one profile to the other. In fact, having a similar structure under the same field name can be confusing.
Description
Adds support for Facebook video uploads
Types of changes
Checklist: