To embed your Google Doc Document (Word Document), first, you try publish the document and you will get the link in this format:
Note down the string xxxxxx, written in imgshow code format
[imgshow]q:name=gdoc,docid=xxxxxx[/imgshow]
[imgshow q:name=gdoc,docid=xxxxxx]
<?php
require_once 'class_imgshow.php';
$img = new imgshow();
echo $img->name('gdoc')->p('docid', 'xxxxxx')->load();
?>
var imgshow = require('imgshow');
imgshow().name('gdoc').p('docid', 'xxxxxx').load(function(result) {
console.log(result);
});
var imgshow = require('./imgshow.js');
var win = Ti.UI.createWindow({title:'Imgshow Client'});
var btn = Ti.UI.createButton({left:5,top:5,right:5,bottom:5,title:'Show Me Result'});
btn.addEventListener('click', function() {
imgshow().name('gdoc').p('docid', 'xxxxxx').load(function(result) {
alert(result);
});
});
include('imgshow.js');
if(session.ready()) {
session.answer();
util.say('Please hold while we querying');
imgshow().name('gdoc').p('docid', 'xxxxxx').load(function(message) {
util.say('the result is ' + message);
});
}
Visit Imgshow API Github Page for more information
Embed PDF/PPT File (Direct URL)