How to get the embed url for google docs presentation? -
it looks there has been slight change on embedding published google docs presentation.
the url iframe embed changed from:
https://docs.google.com/present/embed?id=[doc_id] to:
https://docs.google.com/presentation/embed?id=[doc_id] looks old documents still require old embed url, , new documents require new url. given doc_id there way (using api) embed url should using?
update:
after poking around, looks revision, old doc has link tag rel=http://schemas.google.com/docs/2007#publish, contains https://docs.google.com/present/embed?id=[doc_id], on new doc value https://docs.google.com/feeds?xoauth_requestor_id=[user_email].
so question can assume if link rel=http://schemas.google.com/docs/2007#publish contains https://docs.google.com/feeds?xoauth_requestor_id=[user_email] need use url https://docs.google.com/presentation/embed?id=[doc_id]?
or api didn't include correct value in revision? (because think happened quite recently).
the embed link has rel="http://schemas.google.com/docs/2007#embed" , urls might https://docs.google.com/presentation/d/presentation_id/preview. however, shouldn't manually build urls instead use value of link rel="http://schemas.google.com/docs/2007#embed".
the xoauth_requestor_id parameter won't included in embed link required when using 2-legged oauth , impersonating different user. if authorization mechanism of choice, have add parameters when adding auth token.
Comments
Post a Comment