I need you thoughts and advice on possible the solutions at the end of this post?
The addon
Flashcards uses a box of flashcards to learn languages. Two users "me" and "alien" are registered on different hubs. Both want to edit the content of the box and share (sync) changes forth and back.
The plan: Make a copy of a box and keep both original and copy in sync.User "me" creates a box "boxItalian" on https//my-hub.org.
The app in the browser accesses it like:
- Download GET: https//my-hub.org/flashcards/me/get/boxItalian
- Upload POST: https//my-hub.org/flashcards/me/update/boxItalian
A user "alien" downloads and stores a copy "boxItalianCopy" on his hub
https://alien-hub.org. Access is the same for user "alien":
Ok, both hubs must have the addon "flashcards" installed.
Why it is better two have a copy of the box for every learner?If user "alien" starts to learn on https//my-hub.org he has two problems:
- User "alien" looses his box and his learn progress if https//my-hub.org disappears or the channel "me" on https//my-hub.org disappears.
- User "alien" does not want to store his learn progress on https//my-hub.org because he wants to keep it private.
Is one of these solutions possible, or both?
- The app in the browser ( https://alien-hub.org) of user "alien" uploads (POST) "boxItalianCopy" to https//my-hub.org/flashcards/me/update/boxItalian Question: Will this post use magic auth automatically or do have to use additional parameters or other things?
- The hub https://alien-hub.org uploads (POST) "boxItalianCopy" to https//my-hub.org/flashcards/me/update/boxItalian What PHP function should be used for it.
What would be the preferred solution?
Do you any other ways?
In addion: How to keep the boxes in sync if user "me" clones his account (and box) and shuts down is channel (and box) at https//my-hub.org ?
#
synchronisation #
resources #
addon #
flashcards