+ Reply to Thread
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 36

Thread: ThinkFree API

  1. #11
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    The viewer is intentionally limited not to provide write capabilities. I do have their API docs and they provide information how to create a custom Java class to read and write to any data store. However, it requires a commercial license of ThinkFree as you need to run their server edition.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  2. #12
    Join Date
    Mar 2008
    Posts
    47

    Default

    Quote Originally Posted by SteveB View Post
    The viewer is intentionally limited not to provide write capabilities. I do have their API docs and they provide information how to create a custom Java class to read and write to any data store. However, it requires a commercial license of ThinkFree as you need to run their server edition.
    Right, we are working with them demoing their editors on one of our servers that we are trying to integrate with deki wiki, and I have it all working except for giving deki wiki the address of where the document is located. Again I know thats a think free thing, cause as far as I know from whats public info in their api, there isn't any real return as to where that file was saved. I was wondering if they dropped any hints to you guys as of some string you can pull that has that path in it?

  3. #13
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Ah, thanks for clarifying.

    I never dover too deep into it since it was Java (which I'm rather rusty in).

    The docs that I got were for creating a custom protocol handler and the admin user guide.

    Let me know if you need any help on the Deki Wiki API side. I'd love to see ThinkFree and Deki Wiki workig in harmony.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  4. #14
    Join Date
    Mar 2008
    Posts
    47

    Default

    Is the api documentation the same that they have available on their site?

  5. #15
    Join Date
    Mar 2008
    Posts
    47

    Default

    So I got an interesting responce back from Thinkfree, They gave me some uncompiled java files for their ftp extension. I can probably use that to ftp into my deki server, drop the files on our share there, format and feed a put string back through the deki api to update the file revision in the wiki and all should be good. Only question is I've been having a little trouble with your guy's api. Is the string needed for changing an attachment only :

    http://<server>/@api/deki/files/109/=linkwindow.jpg

  6. #16
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    You would need to take the file, and PUT it against a known pageid:

    PUT: http://server/@api/deki/pages/{pageid}/files/={filename}

    I would avoid the FTP method, as when you try to hit the file against the API, it will try to store it again. You can store it locally, then send that over the "wire" with your PUT request...

  7. #17
    Join Date
    Mar 2008
    Posts
    47

    Default

    Problem is pulling that address from thinkfree, thats why I was going to ftp it to a common location.

  8. #18
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    I understand that you're using code from ThinkFree, but just FTPing it into Deki Wiki won't trigger the revisions or indexing of the file, which is why I'm suggesting using the the API. You can manually trigger the reindexing, but you cannot force it to re-revision; revisioning only triggers when it goes through the PUT file codepath.

    It's a little more pain now for much more payoff.

  9. #19
    Join Date
    Mar 2008
    Posts
    47

    Default

    I absolutely agree. We want to see the revisions go through the wiki api so that we can keep a log of what goes on. Now....how to connect to the api to input that Put command... I notice that the examples in the api documentation are all in csharp, is there a way to make calls in php?


    N/m I just found dream.php.
    Last edited by jwoodford; 03-10-2008 at 06:41 PM.

  10. #20
    Join Date
    Feb 2007
    Posts
    1,871

    Default

    Quote Originally Posted by jwoodford View Post
    I notice that the examples in the api documentation are all in csharp, is there a way to make calls in php?
    You can also search for the upload function in includes/Attach.php to see how the PHP uses curl to PUT the file.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts