SlideShare a Scribd company logo
Make
Every
Moment
Count
2016ConnectThe Premier Social Business and Digital Experience Conference
#ibmconnect
1317 - Rock the Activity Stream APIs
Stefano Pogliani, Wannes Rams
Tuesday, February 2nd 2016
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Please Note:
• IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s
sole discretion.
• Information regarding potential future products is intended to outline our general product direction and it should not be
relied on in making a purchasing decision.
• The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver
any material, code or functionality. Information about potential future products may not be incorporated into any contract.
• The development, release, and timing of any future features or functionality described for our products remains at our sole
discretion.
• Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment.
The actual throughput or performance that any user will experience will vary depending upon many factors, including
considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage
configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve
results similar to those stated here.
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
About us
twitter.com/stefanopog linkedin.com/in/stefanopog
Tech.poglianis.net
linkedin.com/in/wannesrams
www.ramsit.com
twitter.com/wannesrams
www.ramsit.com/blog
http://www.slideshare.net/palmke
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Overview
This is a Technical Session !
• Introduction
• Architecture
• Demo
• Q & A
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Introduction : Functional goal
Why we did …
• Integration between enterprise business processes and
Collaborative tools
• Using new technologies
• ActivityStream = Cockpit
• In context
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Introduction : Functional View
What we did …
• Scenario of the Demo
§ Post a tweet to the IC Activity Stream
§ Use an embedded experience to retweet or reply from within
Connections
§ No re-authentication
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Introduction : Technology View
How we did …
• The Demo was built on the following technology
§ Activity Stream / OS Gadgets / OAuth
• Using the following languages:
§ PHP and Javascript
§ Node-RED on BlueMix
• Targetting both:
§ IBM Connections Cloud and
§ IBM Connections On Premises
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Technical goal
What we demonstrated…
• Interact with the “Connections” ActivityStream API
§ Use API’s to send and pull information to and from IC
§ Send an event with its associated Embedded Experience to the
ActivityStream
• Manage the interaction with an external application from within
the Embedded Experience
• Interact with “Connections” using OAuth 2.0 or Basic Auth
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Important !
All the APIs we have been using are the same, whether we talk to
an IBM Connections On Premises instance or to an IBM
Connections Cloud instance !
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
The only significant differences are….
1. IBM Connections Cloud uses an HTML file rendered from a
« default » gadget
1. IBM Connections On Premises uses a « custom » OS Gadget
2. We used standard « XHR » from the HTML file in order to
interact with Twitter
1. The IBM Connections On Premises OS Gadget uses the
« environment » provided by the gadget container
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
This is all explained here (simple, after all)
http://ibm.co/1NE7vXm
See also the screenshots in the appendix
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Authorizing the custom « gadget » (Cloud)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Defining the OAuth keys (Cloud)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Defining the OAuth Key (On Prem)
• Setting the WasAdmin right
§ cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
§ ./wasadmin.sh -lang jython -username wpadmin -password Ond3mand
• execfile('oauthAdmin.py')
• Register a new OAuth key
§ OAuthApplicationRegistrationService.addApplication(‘s1', 'Sample Twitter
Application', 'http://localhost/t2c/callbackC.php')
• Review the list of registered applications
§ OAuthApplicationRegistrationService.browseApplications()
§ a=OAuthApplicationRegistrationService.getApplicationById(‘s1').get('client_secret')
§ print a
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Defining the OAuth Key (On Prem)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Registering an Application (On Prem)
• Setting the WasAdmin right
§ cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
§ ./wasadmin.sh -lang jython -username wpadmin -password Ond3mand
• execfile(‘newsAdmin.py')
• Register a new Application
§ NewsActivityStreamService.registerApplication(appId, displayName, url,
secureUrl, imageUrl, secureImageUrl, summary, isEnabled)
• Review the list of registered applications
§ NewsActivityStreamService.listApplicationRegistrations()
§ a = NewsActivityStreamService.getApplicationRegistration("applicationId")
§ print a
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Registering an Application (On Prem)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Authorizing the custom « gadget » (OnPrem)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Authorizing the custom « gadget » (OnPrem)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Authorizing the custom « gadget » (OnPrem)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Authorizing the custom « gadget » (OnPrem)
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Architecture – Posting to Connections
Client Program
Save
Session
Get from Twitter1. Post to Connections2.
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Architecture – Posting to Connections
Client Program
Saved
Session
Post to « my program »1. Post to Twitter3.
2.
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
The « flow » using Node-RED
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
The new IBM Connections « node »
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Building the Payload
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
By the way, the EE is « mobile friendly »
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
By the way, the EE is « mobile friendly »
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Demo
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Questions ?
Make
Every
Moment
Count
2016ConnectThe Premier Social Business and Digital Experience Conference
#ibmconnect
The Flow
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Configuring the Access
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Starting the Oauth dances….
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Oauth with Twitter
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
OAuth with IBM Connections Cloud
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
The initial screen
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Showing the Streams
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Selecting an event from Twitter
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Sending the Twitter event to IBM Connections
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Yes, indeed, it was delivered !
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Retwitting from the Activity Stream
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Yes, it was retwetted !
Make
Every
Moment
Count
2016ConnectThe Premier Social Business and Digital Experience Conference
#ibmconnect
Programming Differences
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
In PHP, we build a different payload…
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
This is the « On Premises » payload
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
This is the « Cloud » payload
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Some configurations used in the code
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
How Twitter is invoked from « On Prem » gadget
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
How Twitter is invoked from « Cloud» HTML
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
NODE-RED : the « On Prem » payload
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
NODE-RED: the « Cloud » payload
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Notices and Disclaimers
Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without
written permission from IBM.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM.
Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of
the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS
DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR ANY
DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION, LOSS OF
PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements under which they
are provided.
Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice.
Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how
those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating
environments may vary.
References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in
all countries in which IBM operates or does business.
Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All
materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any
individual participant or their specific situation.
It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification
and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to
comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance
with any law
2016ConnectThe Premier Social Business and Digital Experience Conference
MakeEveryMomentCount
Notices and Disclaimers cont.
Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources.
IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related
to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the
quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY DISCLAIMS ALL
WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE.
The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBMpatents, copyrights, trademarks or
other intellectual property right.
•IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management
System™, FASP®, FileNet®, Global Business Services ®, Global Technology Services ®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®,
Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®,
pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®,
Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli®, Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®,
X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and
service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark
information" at: www.ibm.com/legal/copytrade.shtml.
Make
Every
Moment
Count
2016ConnectThe Premier Social Business and Digital Experience Conference
#ibmconnect
Thank you

More Related Content

PDF
Enrich your IBM Connections profiles by extending the profiles data model
PDF
Connect 2013 - Infrastructure Fitness and Design Simplicity for IBM Mobile Co...
PDF
Connect 2016 - Going Mobile With IBM Verse
PDF
IBM Connect 2016 - Logging Wars: A Cross Product Tech Clash Between Experts -...
PDF
Microservices at NewStore
PPTX
IBM Mobile foundation overview
PDF
Microservices Architecture for e-Commerce
PDF
Weightless Digital Experience - Delivering IBM Digital Experience in the cloud
Enrich your IBM Connections profiles by extending the profiles data model
Connect 2013 - Infrastructure Fitness and Design Simplicity for IBM Mobile Co...
Connect 2016 - Going Mobile With IBM Verse
IBM Connect 2016 - Logging Wars: A Cross Product Tech Clash Between Experts -...
Microservices at NewStore
IBM Mobile foundation overview
Microservices Architecture for e-Commerce
Weightless Digital Experience - Delivering IBM Digital Experience in the cloud

What's hot (20)

PDF
Ti 1217 extend and surround your Adobe DX solutions with IBM Software
PDF
Introducing IBM Digital Experience on Cloud
PDF
Social Connections 9 - Enrich your customer experience by socialising it usin...
PDF
Social Connections 9 - how to extend Adobe Digital Marketing Solutions with I...
PDF
Taking connections to the cloud
PDF
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
PPTX
Customizing the Mobile Connections App
PDF
BP102 Build Your Free Admin Toolkit
PDF
Growing Interest in Cloud Based Digital Experiences -- An IDC and IBM Digital...
PDF
Tip from IBM Connect 2014: IBM Notes Goes Cloud: How GAD Created an Integrate...
PPT
Ambujex Capability Presentation Final
PDF
Splicecom Maximiser Vision
ODP
The IBM Social Business Toolkit
PDF
Introduction to IBM Worklight: Building and connecting cross-platform mobile ...
PDF
Ben Gracewood Mobility: The changing face of business
PDF
IBM MobileFirst - Hybrid Application Development with Worklight
PPTX
IBM Worklight-Overview
PDF
Impact 2014 The Mobile Enterprise
PPTX
Mobile and IBM Worklight Best Practices
PDF
IBM Worklight - Technical Overview
Ti 1217 extend and surround your Adobe DX solutions with IBM Software
Introducing IBM Digital Experience on Cloud
Social Connections 9 - Enrich your customer experience by socialising it usin...
Social Connections 9 - how to extend Adobe Digital Marketing Solutions with I...
Taking connections to the cloud
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
Customizing the Mobile Connections App
BP102 Build Your Free Admin Toolkit
Growing Interest in Cloud Based Digital Experiences -- An IDC and IBM Digital...
Tip from IBM Connect 2014: IBM Notes Goes Cloud: How GAD Created an Integrate...
Ambujex Capability Presentation Final
Splicecom Maximiser Vision
The IBM Social Business Toolkit
Introduction to IBM Worklight: Building and connecting cross-platform mobile ...
Ben Gracewood Mobility: The changing face of business
IBM MobileFirst - Hybrid Application Development with Worklight
IBM Worklight-Overview
Impact 2014 The Mobile Enterprise
Mobile and IBM Worklight Best Practices
IBM Worklight - Technical Overview
Ad

Viewers also liked (6)

PDF
Goldsmiths
ODP
IBM Connections Activity Stream 3rd Party Integration - Social Connect VI - P...
PDF
How to access the Activity Stream in IBM Connections
ODP
AD104 - IBM Connections ActivityStream Integration - IBM Connect 2013
PDF
How to add your own OpenSocial Gadgets to IBM Connections
PDF
Open social gadgets in ibm connections
Goldsmiths
IBM Connections Activity Stream 3rd Party Integration - Social Connect VI - P...
How to access the Activity Stream in IBM Connections
AD104 - IBM Connections ActivityStream Integration - IBM Connect 2013
How to add your own OpenSocial Gadgets to IBM Connections
Open social gadgets in ibm connections
Ad

Similar to Rock the activity stream api (20)

PDF
Connect 2016 - IBM Mobile Connect - Real World Usage Scenarios
PDF
1812 icap-v1.3 0430
PDF
OpenNTF - From Donation to Contribution - ICS.UG 2016
PPT
IBM Hybrid Integration Platform
PPT
OpenWhisk Introduction
PDF
bccon-2014 key01 ibm_collaboration_solutions_connect_2014
PDF
Design - Start Your API Journey Today
PDF
Design - Start Your API Journey Today
PPT
ConnectED2015: IBM Domino Applications in Bluemix
PDF
UrbanCode Deploy DevOps Best Practices
PDF
Introduction to IBM UrbanCode Deploy and Release
PDF
Dmeeker Finala
PPTX
Platform Showcase: Making the Ultimate Live Demo, by Gabriel Michaud
PDF
How to Balance System Speed and Risk for Multi-Platform Innovation
PPT
2109 mobile cloud integrating your mobile workloads with the enterprise
PDF
IBM Connect 2014 SHOW501 Mastering Social Development Using the IBM Collabora...
PDF
IBM Connect 2014 - SHOW501: Mastering Social Development Using the IBM Collab...
PDF
Id113 what’s new in ibm notes®, smart cloud notes web® and inotes®
PDF
Logging Wars: A Cross-Product Tech Clash Between Experts
Connect 2016 - IBM Mobile Connect - Real World Usage Scenarios
1812 icap-v1.3 0430
OpenNTF - From Donation to Contribution - ICS.UG 2016
IBM Hybrid Integration Platform
OpenWhisk Introduction
bccon-2014 key01 ibm_collaboration_solutions_connect_2014
Design - Start Your API Journey Today
Design - Start Your API Journey Today
ConnectED2015: IBM Domino Applications in Bluemix
UrbanCode Deploy DevOps Best Practices
Introduction to IBM UrbanCode Deploy and Release
Dmeeker Finala
Platform Showcase: Making the Ultimate Live Demo, by Gabriel Michaud
How to Balance System Speed and Risk for Multi-Platform Innovation
2109 mobile cloud integrating your mobile workloads with the enterprise
IBM Connect 2014 SHOW501 Mastering Social Development Using the IBM Collabora...
IBM Connect 2014 - SHOW501: Mastering Social Development Using the IBM Collab...
Id113 what’s new in ibm notes®, smart cloud notes web® and inotes®
Logging Wars: A Cross-Product Tech Clash Between Experts

More from Wannes Rams (12)

PDF
History of Connections
PDF
Touchpoint and Userinvite
PDF
Think why we should all be using watson workspace
PPTX
How to be a lion tamer
PDF
Managing ldap changes in connections
PDF
Managing ldap changes in connections
PDF
The lazy administrator, how to make your life easier by using tdi to automate...
PDF
Make your ibm connections deployment your own, customize it!
PDF
Make your ibm connections deployment your own customize it
PDF
Show301 make your ibm® connections deployment your own customize it!
PDF
Profile types and locking profile features
PDF
Blug connections
History of Connections
Touchpoint and Userinvite
Think why we should all be using watson workspace
How to be a lion tamer
Managing ldap changes in connections
Managing ldap changes in connections
The lazy administrator, how to make your life easier by using tdi to automate...
Make your ibm connections deployment your own, customize it!
Make your ibm connections deployment your own customize it
Show301 make your ibm® connections deployment your own customize it!
Profile types and locking profile features
Blug connections

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction

Rock the activity stream api

  • 1. Make Every Moment Count 2016ConnectThe Premier Social Business and Digital Experience Conference #ibmconnect 1317 - Rock the Activity Stream APIs Stefano Pogliani, Wannes Rams Tuesday, February 2nd 2016
  • 2. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Please Note: • IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. • Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. • The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. • The development, release, and timing of any future features or functionality described for our products remains at our sole discretion. • Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.
  • 3. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount About us twitter.com/stefanopog linkedin.com/in/stefanopog Tech.poglianis.net linkedin.com/in/wannesrams www.ramsit.com twitter.com/wannesrams www.ramsit.com/blog http://www.slideshare.net/palmke
  • 4. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Overview This is a Technical Session ! • Introduction • Architecture • Demo • Q & A
  • 5. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Introduction : Functional goal Why we did … • Integration between enterprise business processes and Collaborative tools • Using new technologies • ActivityStream = Cockpit • In context
  • 6. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Introduction : Functional View What we did … • Scenario of the Demo § Post a tweet to the IC Activity Stream § Use an embedded experience to retweet or reply from within Connections § No re-authentication
  • 7. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Introduction : Technology View How we did … • The Demo was built on the following technology § Activity Stream / OS Gadgets / OAuth • Using the following languages: § PHP and Javascript § Node-RED on BlueMix • Targetting both: § IBM Connections Cloud and § IBM Connections On Premises
  • 8. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Technical goal What we demonstrated… • Interact with the “Connections” ActivityStream API § Use API’s to send and pull information to and from IC § Send an event with its associated Embedded Experience to the ActivityStream • Manage the interaction with an external application from within the Embedded Experience • Interact with “Connections” using OAuth 2.0 or Basic Auth
  • 9. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Important ! All the APIs we have been using are the same, whether we talk to an IBM Connections On Premises instance or to an IBM Connections Cloud instance !
  • 10. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount The only significant differences are…. 1. IBM Connections Cloud uses an HTML file rendered from a « default » gadget 1. IBM Connections On Premises uses a « custom » OS Gadget 2. We used standard « XHR » from the HTML file in order to interact with Twitter 1. The IBM Connections On Premises OS Gadget uses the « environment » provided by the gadget container
  • 11. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount This is all explained here (simple, after all) http://ibm.co/1NE7vXm See also the screenshots in the appendix
  • 12. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Authorizing the custom « gadget » (Cloud)
  • 13. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Defining the OAuth keys (Cloud)
  • 14. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Defining the OAuth Key (On Prem) • Setting the WasAdmin right § cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin § ./wasadmin.sh -lang jython -username wpadmin -password Ond3mand • execfile('oauthAdmin.py') • Register a new OAuth key § OAuthApplicationRegistrationService.addApplication(‘s1', 'Sample Twitter Application', 'http://localhost/t2c/callbackC.php') • Review the list of registered applications § OAuthApplicationRegistrationService.browseApplications() § a=OAuthApplicationRegistrationService.getApplicationById(‘s1').get('client_secret') § print a
  • 15. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Defining the OAuth Key (On Prem)
  • 16. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Registering an Application (On Prem) • Setting the WasAdmin right § cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin § ./wasadmin.sh -lang jython -username wpadmin -password Ond3mand • execfile(‘newsAdmin.py') • Register a new Application § NewsActivityStreamService.registerApplication(appId, displayName, url, secureUrl, imageUrl, secureImageUrl, summary, isEnabled) • Review the list of registered applications § NewsActivityStreamService.listApplicationRegistrations() § a = NewsActivityStreamService.getApplicationRegistration("applicationId") § print a
  • 17. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Registering an Application (On Prem)
  • 18. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Authorizing the custom « gadget » (OnPrem)
  • 19. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Authorizing the custom « gadget » (OnPrem)
  • 20. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Authorizing the custom « gadget » (OnPrem)
  • 21. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Authorizing the custom « gadget » (OnPrem)
  • 22. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Architecture – Posting to Connections Client Program Save Session Get from Twitter1. Post to Connections2.
  • 23. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Architecture – Posting to Connections Client Program Saved Session Post to « my program »1. Post to Twitter3. 2.
  • 24. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount The « flow » using Node-RED
  • 25. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount The new IBM Connections « node »
  • 26. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Building the Payload
  • 27. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount By the way, the EE is « mobile friendly »
  • 28. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount By the way, the EE is « mobile friendly »
  • 29. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Demo
  • 30. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Questions ?
  • 31. Make Every Moment Count 2016ConnectThe Premier Social Business and Digital Experience Conference #ibmconnect The Flow
  • 32. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Configuring the Access
  • 33. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Starting the Oauth dances….
  • 34. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Oauth with Twitter
  • 35. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount OAuth with IBM Connections Cloud
  • 36. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount The initial screen
  • 37. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Showing the Streams
  • 38. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Selecting an event from Twitter
  • 39. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Sending the Twitter event to IBM Connections
  • 40. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Yes, indeed, it was delivered !
  • 41. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Retwitting from the Activity Stream
  • 42. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Yes, it was retwetted !
  • 43. Make Every Moment Count 2016ConnectThe Premier Social Business and Digital Experience Conference #ibmconnect Programming Differences
  • 44. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount In PHP, we build a different payload…
  • 45. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount This is the « On Premises » payload
  • 46. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount This is the « Cloud » payload
  • 47. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Some configurations used in the code
  • 48. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount How Twitter is invoked from « On Prem » gadget
  • 49. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount How Twitter is invoked from « Cloud» HTML
  • 50. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount NODE-RED : the « On Prem » payload
  • 51. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount NODE-RED: the « Cloud » payload
  • 52. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Notices and Disclaimers Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM. Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR ANY DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION, LOSS OF PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided. Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice. Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary. References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business. Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation. It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law
  • 53. 2016ConnectThe Premier Social Business and Digital Experience Conference MakeEveryMomentCount Notices and Disclaimers cont. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBMpatents, copyrights, trademarks or other intellectual property right. •IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management System™, FASP®, FileNet®, Global Business Services ®, Global Technology Services ®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli®, Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.
  • 54. Make Every Moment Count 2016ConnectThe Premier Social Business and Digital Experience Conference #ibmconnect Thank you