Comment Comment by fmontesi I can give you one by reusing a bit the Telegraph example I have in the Jo tutorial: http://fmontesi.github.io/2018/08/16/jo.htmlTo create an account:Jo.createAccount( { shortName: "Homer" } ) .then( response => { alert( response.result.accessToken ); } );To create a page:Jo.createPage( { accessToken: token, title: "Title", content: "Content" } ) .then( response => { alert( response.result.url ); } );This assume that those operations are available at the originating web server. If instead you're offering "Telegraph" as a subservice, then instead of Jo you have to write Jo("Telegraph"), the rest is the same.I hope this clarifies things a bit. parent fmontesi 8 years ago
To create an account:
Jo.createAccount( { shortName: "Homer" } ) .then( response => { alert( response.result.accessToken ); } );
To create a page:
Jo.createPage( { accessToken: token, title: "Title", content: "Content" } ) .then( response => { alert( response.result.url ); } );
This assume that those operations are available at the originating web server. If instead you're offering "Telegraph" as a subservice, then instead of Jo you have to write Jo("Telegraph"), the rest is the same.
I hope this clarifies things a bit.