You are here


Code Example: Adding A User To A Team

You have a user who's login is "fred" and you wish to add them to the team name "User Support".

A Logic Example: Linking Documents To A Task

Most operations are performed by clients using some protocol over HTTP: XML-RPC, JSONRPC, REST, WebDAV, etc... It is also possible to utilize Python on any OpenGroupware Coils node to perform operations to use the Logic commands directly. The following example demonstrates how to create an object link from the specified task, OGo#318084549, to all the documents in folder OGo#231408659, setting the label of the link to the document's display name.

Python XML-RPC Calls Via "requests"

requests is the latest and greatest Python module for performing HTTP requests. This new module cleans up a great deal of the mechanics required for network requests as well as streamling the often combersome syntax used by urlib2 and the httplib modules. Requests can easily be used for making XML-RPC requests, to the zOGI API for example. Using requests avoids the need for transport objects in order to work with proxy servers and more advanced authentication methods.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer