--- En date de : Mer 2.3.16, [email protected] <[email protected]> a écrit :

> De: [email protected] <[email protected]>
> Objet: Re: [xwiki-users] How to disable versionning for a document
> À: "XWiki Users" <[email protected]>
> Date: Mercredi 2 mars 2016, 12h19
>  
> 
> On 2 Mar 2016 at 11:50:30, Pascal BASTIEN 
> ([email protected](mailto:[email protected]))
> wrote:
> 
> > Hi,
> >  
> > I have a page
> cronly updated with RESTful API and I want disable document
> versionning for this page only.
> 
> I’m interested in knowing more about the use
> case to see if there’s a generic need.

Sure :-) I must read json data from another web site to display it on 
myxwiki.org web site.
This one: 
https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanDetails&clanTag=%23L9CGQYC
but myxwiki.org log show a certificate problem when i use $xwiki.getURLContent 
API
(In fact https://api.clashofclans.com/v1/clans/%23L9CGQYC?Authorization=Bearer 
xxxxxx  with Bearer authentication) 

Then my solution, is to add a local cron to:
- wget my json data from https://set7z18fgf.execute-api.us-east-1.amazonaws.com/
- use curl to upload json data in a page of myxwiki.org with RESTful api
This page will be update periodicaly (1 or 2 time per week or less), then I 
need to wipe history of this updated page.

...

> 
> I’ve added this snippet not long ago that you
> could find useful for this:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Delete+Revisions+From+Author

It is usefull :-)

Thxs

Pascal B
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to