最近看起來,嵌入已發佈的Google文檔演示文稿時發生了輕微變化。如何獲取谷歌文檔演示文稿的嵌入網址?
的iframe嵌入的URL從:更改
https://docs.google.com/present/embed?id=[doc_id]
要:
https://docs.google.com/presentation/embed?id=[doc_id]
看起來有些舊文件仍然需要老嵌入網址,以及新的文件要求新的URL。所以給一個doc_id是否有一種方法(使用API)來獲取您應該使用的嵌入url?
更新:
閒逛之後,它看起來像修改,舊文檔具有鏈接標記與rel=http://schemas.google.com/docs/2007#publish
,其中包含https://docs.google.com/present/embed?id=[doc_id]
,但在新文檔中該值是https://docs.google.com/feeds?xoauth_requestor_id=[user_email]
。
所以問題是我可以假設,如果與rel=http://schemas.google.com/docs/2007#publish
的鏈接包含https://docs.google.com/feeds?xoauth_requestor_id=[user_email]
那麼我需要使用這個網址https://docs.google.com/presentation/embed?id=[doc_id]
?
還是隻是說API沒有在修訂中包含正確的值? (因爲我認爲這恰好發生在最近)。
謝謝克勞迪奧!我應該補充說rel =「http://schemas.google.com/docs/2007#embed」應該是doc條目中的一個,而不是修訂版。 – Reynard