Search

Mobile tag

About Me

I am the "IBM Collaboration & Productivity Advisor" for IBM Asia Pacific. I'm based in Singapore.
Reach out to me via:
Follow notessensei on Twitter
(posts)
Skype
Sametime
IBM
Facebook
LinkedIn
XING
Amazon Store
Amazon Kindle

Twitter

Domino Upgrade

VersionSupport end
5.0
6.0
6.5
7.0
Upgrade to 8.5x now!
(see the full Lotus lifcyle) To make your upgrade a success use the Upgrade Cheat Sheet.
Contemplating to replace Notes? You have to read this! (also available on Slideshare)

Languages

Other languages on request.

Visitors

Useful Tools

Get Firefox
Use OpenDNS
The support for Windows XP is coming to an end and has . Time to consider an alternative to move on. sounds like a lot of time, but, like an object in a mirror, it is closer than you think.

11/11/2010

Fun with LotusLive, cURL and Lotus Activities

Category
Lets have some fun in six easy steps:
  1. Download and install cURL (for Ubuntu users:sudo apt-get install curl)
  2. Create one text file activity.xml with this content:
    <?xml version="1.0" encoding="utf-8"?>
    <entry xmlns="http://www.w3.org/2005/Atom">
    <category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="activity" label="Activity"/>
    <title type="text">One activity to go</title>
    <content type="html">
    This is an &lt;b&gt;activity&lt;/b&gt; that has been automatically uploaded from the cURL command line
    </content>
    </entry>
  3. Create another text file todo.xml with this content:
    <?xml version="1.0" encoding="utf-8"?>
    <entry xmlns="http://www.w3.org/2005/Atom" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
    <category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="todo"/>
    <category term="Connection3.0"/>
    <category term="POT"/>
    <category term="NotesSensei"/>
    <title type="text">Some things that need to be done</title>
    <content type="html">
        This is an &lt;action&gt; in an activity that has been automatically uploaded from the cURL command line. You can happily ignore it.             
    </content>
    <snx:assignedto>put_your_eMail_here@and_your_domain.com</snx:assignedto>
    </entry>
  4. Open a command prompt and type:
    curl https://apps.lotuslive.com/activities/service/atom2/activities -X POST --user [username:password] --post301 --post302 --basic -k -L -H 'Content-type: application/atom+xml' --data @activity.xml -o result.xml
  5. Edit the result.xml and look for the href attribute of the <app:collection> element. Copy that URL.
  6. In your command prompt now type:
    curl [The_URL_You_Just_Copied] -X POST --user [username:password] --post301 --post302 --basic -k -L -H 'Content-type: application/atom+xml' --data @todo.xml
Congratulations! Just just created your first LotusLive Activity via the REST API. Works with Lotus Greenhouse too. cURL is also available for PHP developers.

Disclaimer

This site is in no way affiliated, endorsed, sanctioned, supported, nor enlightened by Lotus Software nor IBM Corporation. I may be an employee, but the opinions, theories, facts, etc. presented here are my own and are in now way given in any official capacity. In short, these are my words and this is my site, not IBM's - and don't even begin to think otherwise. (Disclaimer shamelessly plugged from Rocky Oliver)
© 2003 - 2013 Stephan H. Wissel - some rights reserved as listed here: Creative Commons License
Unless otherwise labeled by its originating author, the content found on this site is made available under the terms of an Attribution/NonCommercial/ShareAlike Creative Commons License, with the exception that no rights are granted -- since they are not mine to grant -- in any logo, graphic design, trademarks or trade names of any type. Code samples and code downloads on this site are, unless otherwise labeled, made available under an Apache 2.0 license. Other license models are available on written request and written confirmation.