SimpleText.ws sharing documents

Document sharing between two or more accounts is built into the SimpleText.ws website, but I haven’t yet built a user inteface for it. At the moment I have other priorities, and so I’m not likely to build the UI soon.

But if you really want this feature now you can do it from the command line, though I would only recommend trying this if you are comfortable on the command line and a little familiar with Python. Here’s what you’ll need to do:

First log onto the website and note the id (displayed after the # in the URL) of the document that you want to share. Next tell the person that you wish to share with to log into their SimpleText.ws account and then type in the URL “http://www.simpletext.ws/v1/printuser”. They should then send you the number ID that’s listed on the page.

At this point you should have the ID of the document that you want to share, and the ID of the user that you want to share with. Now you need to use the SimpleText.ws Python client to share the document.

Download the SimpleText.ws python client

Next start the python interpurture from within that downloaded directory and load in documents_service_support, documents_service, and then create a new documents_service instance. And last add the user ID to the document that you want to share:

jesse$ python
Python 2.6 (trunk:66714:66715M, Oct  1 2008, 18:36:04) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import documents_service_support
>>> import documents_service
>>> service_instance = documents_service.DocumentsService("www.simpletext.ws", "mygoogleemail", "mypassword", "simpletextws")
>>> service_instance.PUT_document('document_id_from_above', 0, user_ids_added=['user_id_from_above'])

Once you are finished the document should be visible and editable in both user accounts.

Comments (View)
blog comments powered by Disqus