zenbe / pyshareflow
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README.md | ||
| |
google_docs_example.py |
Google Docs Example with Shareflow
This example uses the Google Docs (gdata) API to search for a document with a given name, then upload the matching document to Shareflow, along with a link to edit the document online.
Documents will be uploaded in the MS Office equivalent format, i.e. documents are uploads as '.doc' files, Spreadsheets as '.xls' files and Presentations as '.ppt' files.
Usage
Make sure pyshareflow.py can be found in a directory in your
PYTHONPATH.
Edit the variables at the top of google_docs_example.py to reflect your Google and your Shareflow credentials. In particular, edit:
- GOOGLE_LOGIN: Your Google Docs login
- GOOGLE_PWD: Your Google Docs password
- GOOGLE_ACT_TYPE: The account type: 'HOSTED'(Google Apps for your Domain) or 'GOOGLE' for regular accounts
- SHAREFLOW_LOGIN: Your Shareflow login email
- SHAREFLOW_PWD: Your Shareflow password
- SHAREFLOW_DOMAIN: Your login domain (i.e 'mycompany.zenbe.com')
Running the example
After customizing as shown above, run the command as follows:
python google_docs_example.py -f 'My Flow' -d 'My Google Doc'
This will search for a Google Doc called 'My Google Doc' and upload it to a flow called 'My Flow'.
If the the flow or document does not exist, nothing will be uploaded.

