Open craig552uk opened 11 years ago
Duplicating would be handled by a request like GET /<profile_slug>/<data_slug>?copy
.
As oAuth2 does not carry arbitrary query string parameters through the authentication handshake, it would probably be necessary to store a forwarding URL in the session. The oAuth2 callback handler would check for a forwarding URL and if present delete, then issue a redirect to it.
It should be possible to duplicate the data views from one account to another. This would create a Google spreadsheet in the users Drive with the necessary headings and data. A corresponding DataSource record would be created and the DataViews would be duplicated also.
The user would be prompted to authenticate/create account if necessary.