Cloud Elements! Events Management BETA! API Version 2.0

Similar documents
Cloud Elements! Marketing Hub Provisioning and Usage Guide!

Cloud Elements ecommerce Hub Provisioning Guide API Version 2.0 BETA

Fairsail REST API: Guide for Developers

Traitware Authentication Service Integration Document

How To Use Kiteworks On A Microsoft Webmail Account On A Pc Or Macbook Or Ipad (For A Webmail Password) On A Webcomposer (For An Ipad) On An Ipa Or Ipa (For

Security and ArcGIS Web Development. Heather Gonzago and Jeremy Bartley

OAuth 2.0 Developers Guide. Ping Identity, Inc th Street, Suite 100, Denver, CO

Configuration Guide - OneDesk to SalesForce Connector

Office365Mon Developer API

Google Apps for Sharing Folders and Collecting Assignments

Social Application Guide

How to use Dropbox. What is Dropbox. Please read the University of Melbourne Guidelines on Dropbox and University Information prior to use.

Salesforce Files Connect Implementation Guide

Contents. 2 Alfresco API Version 1.0

Axway API Gateway. Version 7.4.1

ACR Connect Authentication Service Developers Guide

InsideView Lead Enrich Setup Guide for Marketo

Adeptia Suite 6.2. Application Services Guide. Release Date October 16, 2014

Oracle Fusion Middleware Oracle API Gateway OAuth User Guide 11g Release 2 ( )

How to pull content from the PMP into Core Publisher

Getting Started with the icontact API

From Delphi to the cloud

Salesforce Integration User Guide Version 1.1

EPB Managed Wi-Fi Creating Social Media Apps with AirTight Guest Manager

Salesforce Opportunities Portlet Documentation v2

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Copyright Pivotal Software Inc, of 10

DreamFactory on Microsoft SQL Azure

MICROSOFT OFFICE 365 EXCHANGE ONLINE CLOUD

A How To guide for integrating your application to the CRM Hub

IC L05: Security.cloud Configuring DLP on to your flow & Applying security to your Office 365 or Google Apps deployment Hands-On Lab

An Introduction to Box.com

Dell One Identity Cloud Access Manager How to Develop OpenID Connect Apps

INTEGRATION GUIDE. DIGIPASS Authentication for Google Apps using IDENTIKEY Federation Server

Qsync Install Qsync utility Login the NAS The address is :8080 bfsteelinc.info:8080

Force.com REST API Developer's Guide

User Guide. UserGuide_VersionCS8.1

Deer Park ISD Desktop Files & One Drive Cloud

How to configure the TopCloudXL WHMCS plugin (version 2+) Update: Version: 2.2

Using IBM dashdb With IBM Embeddable Reporting Service

Passcreator API Documentation

1 Overview Configuration on MACH Web Portal 1

Getting Started with your Chromebook

How to access and reply to an Egress Switch Secure free of charge. Opening a Switch Secure New User

Introduction to Cloud Storage GOOGLE DRIVE

Quick Start Guide Using OneDisk with the Tappin Service

Mini Project - Phase 3 Connexus Mobile App (Android)

STK Terrain Server Installation Guide

OneDrive for Business

Installation Guide. Research Computing Team V1.9 RESTRICTED

My Stuff Everywhere Your Content On Any Screen

SpringCM Integration Guide. for Salesforce

OAuth2lib. implementation

DirectSmile Cross Media and Salesforce

Hosted PBX. TelePacific Communicator User Guide. Desktop Edition

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Programming Autodesk PLM 360 Using REST. Doug Redmond Software Engineer, Autodesk

SAS Visual Analytics 7.2 for SAS Cloud: Quick-Start Guide

Wireless Security Camera with the Arduino Yun

Egnyte Single Sign-On (SSO) Installation for OneLogin

Cloud Backup for Joomla

SJRWMD Cloud-Based Quick-Start Guide

Hubcase for Salesforce Installation and Configuration Guide

Configuring Single Sign-on from the VMware Identity Manager Service to Dropbox

Using and Contributing Virtual Machines to VM Depot

Integration Overview. Web Services and Single Sign On

Administering Jive Mobile Apps

Login with Amazon. Developer Guide for Websites

Worksheet - Document management and Cloud Services on the ipad

OAuth 2.0. Weina Ma

PingFederate. Windows Live Cloud Identity Connector. User Guide. Version 1.0

Adobe Social Product Capabilities. Publish Anywhere

SpringCM Integration Guide. for Salesforce

SETTING UP YOUR JAVA DEVELOPER ENVIRONMENT

Technical Support Set-up Procedure

XXIntroduction. XXRequirements. XXInstallation. XXInterface. XXUsage Instructions

Installation and Configuration Manual

WatchDox Administrator's Guide. Application Version 3.7.5

Cofred Automated Payments Interface (API) Guide

Livezilla How to Install on Shared Hosting By: Jon Manning

cbox YOUR FILES GO MOBILE! FOR MAC OSX CLIENT USER MANUAL

Meeting Rooms User Manual

GoCoin: Merchant integration guide

Novell Filr. Mobile Client

Forumbee Single Sign- On

Store & Share Quick Start

Cloud Powered Mobile Apps with Microsoft Azure

itds OAuth Integration Paterva itds OAuth Integration Building and re-using OAuth providers within Maltego 2014/09/22

SmartSantander Open Data access using FI-WARE G.E. [ORION]

INTEGRATION GUIDE. DIGIPASS Authentication for Salesforce using IDENTIKEY Federation Server

Integrating Phone Validation into Marketo

SAP NetWeaver AS Java

Contents First Time Setup... 2 Setting up the Legal Vault Client (KiteDrive)... 3 Setting up the KiteDrive Outlook Plugin Using the Legal Vault

Google Integration Instructions

Novell Filr 1.0.x Mobile App Quick Start

Working with Indicee Elements

Connected Data. Connected Data requirements for SSO

Follow these easy instructions to list your business on the BEC Australia National Business Directory.

Module - Facebook PS Connect

Transcription:

Cloud Elements Events Management BETA API Version 2.0

Event Management Version 1.0 Event Management Cloud Elements Event Management provides a uniform mechanism for subscribing to events from Endpoints (e.g. Dropbox, Box). Our Event Management gives you the flexibility to receive notifications to your app regarding user activity by having our Elements subscribe to Endpoint Events. Endpoints publish changes to notify the elements that events have occurred. For example, a user uploads a file to her Dropbox account using the Dropbox user interface. This change would be published to our Dropbox Element. The Dropbox Element would then notify your app that a new file has been uploaded. Your app can then be updated with the most current data making it that much more cooperative and powerful. Our Event Management currently supports the following Endpoints: Dropbox, Box, and Google Drive.

Event Management Version 1.0 We provide two areas of event handling: unsolicited events and solicited asynchronous API requests. Implementing unsolicited events: Set up a new connected application and enable webhooks (NOTE: Dropbox and Box require some extra configurations - directions below) Create an Element Instance for one of the following Endpoints: Dropbox, Box, Google Drive Enable Event Management for that Instance Your app will receive events from that Endpoint via the Element Instance. Currently, Dropbox and Box require some configuration on their end. View the http://cloud-elements.com/create-dropbox/#events and http://cloud-elements.com/create-box/#events guides for directions and screenshots on how to integrate web hooks into your app. Create an Instance with Event Management Event Management can be configured for individual instances. You have the flexibility to provide a different callback URL for each instance of an element. Configuring an element instance to enable event management can be done via the Elements Manager or via the POST /instances API. An example of how to create an Instance via the Elements Manager will be shown first. Via a web browser go to: https://console.cloud-elements.com/elements/jsp/login.jsp and login to your Cloud Elements account.

Event Management Version 1.0 Click Create Instance for Dropbox Click the Plus

Event Management Version 1.0 Name your Instance Tagging is optional so You may leave it set to "No" Select "True" to enable Event Notifications Input the callback URL to your application Click Next Login to your Dropbox Account and click "Allow"

Event Management Version 1.0 Click Done Create an Instance with Event Management via API HTTP Headers: Authorization- User <user secret>, Organization <organization secret> HTTP Verb: POST Request URL: /instances Request Body: Required see below Query Parameters: None POST /instances

Event Management Version 1.0 curl -X POST -H \'Authorization: User <INSERT_USER_SECRET>, Organization <INSERT_ORGANIZATION_SECRET>' -H \'Content-Type: application/json' -d @create-instance.json 'https://api.cloud-elements.com/elements/api-v2/instances' Input JSON: This file must be included with your instance request "element": "key": "dropbox", "providerdata": "code": "Code on the Return URL", "configuration": "oauth.callback.url": "<SAMPLE_CALLLBACK_URL>", "oauth.api.key": "<SAMPLE_API_KEY>", "oauth.api.secret": "<SAMPLE_API_SECRET>", "event.notification.enabled": "true", "event.notification.callback.url": "https://console.cloud-elements.com/ elements/api-v2/events/dropbox" "document.tagging": false, "name": "<INSERT_INSTANCE_NAME>" Example of Successful Response from initial POST /instances call

Event Management Version 1.0 "id": 27, "name": "Event Management", "token": "<ELEMENT_TOKEN>", "element": "id": 14, "name": "Dropbox", "key": "dropbox", "description": "One place for all your stuff, wherever you are. Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Anything you add to Dropbox will automatically show up on all your computers, phones and even the Dropbox website.", "active": true, "deleted": false, "typeoauth": true, "eventmanagement": true, "trialaccount": false, "existingaccountdescription": "Give your application access to your existing Dropbox accountenter your credentials and details for your Dropbox Account", "configdescription": "If you do not have an Dropbox account, you can create one at Dropbox Signup", "signupurl": "http://www.dropbox.com", "elementprovisiontype": "OAUTH_TEMPLATE", "tags": [ "id": 12, "name": "Peter" ], "provisioninteractions": [], "valid": true, "disabled": false EXAMPLE POST /folder HTTP Headers: Authorization- User <user secret>, Organization <organization secret> HTTP Verb: POST Request URL: /instances Request Body: Required see below Query Parameters: None

Event Management Version 1.0 POST /folder curl -X POST -H 'Authorization: User <INSERT_USER_SECRET>, Element <INSERT_ELEMENT_SECRET>' -H 'Content-Type: application/json' -d @TestFolderCreate.json 'https://api.cloud-elements.com/elements/api-v2/hubs/documents/folders? path=/testfoldercreate' TestFolderCreate JSON needed to create the folder. "path": "/testfoldercreate", "tags": [ "TestFolderCreate" ], "createddate": "", "size": 0, "name": "TestFolderCreate", "directory": false Example of Webhook Callback "eventid": 1088, "instanceid": 31, "response": "events": [ "path": "/testfoldercreate", "metadata": "path": "/TestFolderCreate", "name": "TestFolderCreate", "type": "folder" ], "notificationid": 1047 A NOTE ABOUT WEBHOOKS When a change is made at Dropbox or other Endpoint, whether through the Cloud Elements API, via the Dropbox web app or Dropbox desktop app, a webhook call will be generated. In other words, it s not just calls made through our API that will generate webhooks.

Event Management Version 1.0 Asynchronous API Requests Asynchronous API Requests gives you the flexibility to start a job that may take some time to complete and be notified when it has completed. For example, a user makes a request to copy a folder to her account. This request may take some time to process. With an Asynchronous API Request, your app will receive a notification that job has started, as well as, a notification when the job has processed. Performing an Asynchronous API Request: Additional Required Header: Elements-Async-Request this must be set to True Optional Header: Elements-Async-Callback-URL if not included in request, then the app will use the callback URL associated with the instance. If you do not have a callback URL associated with the instance configuration or supply one in the request, then an error will be returned. POST /folders/copy curl -X POST -H 'Authorization: User <INSERT_USER_SECRET>, Element <INSERT_ELEMENT_SECRET>' -H 'Content-Type: application/json' -H 'Elements-Async-Request: True' -H 'Elements-Async-Callback-Url: <www.samplecallbackurl.com>' -d @copy-folder.json 'https://api.cloud-elements.com/elements/api-v2/hubs/documents/folders/copy? path=/testfoldercreate' Copy-folder JSON needed to copy the folder

Event Management Version 1.0 "path": "/testfoldercopy", "tags": [ "TestFolderCopy" ], "createddate": "", "size": 0, "name": "TestFolderCopy", "modifieddate": "", "directory": false Example Message stating the Asynchronous Call has started "eventid": 1028, "eventstatus": "dispatched" Example of Webhook Callback stating job has completed. "eventid": 1028, "instanceid": 30, "response": "events": [ "path": "/testfoldercopy", "metadata": "path": "/TestFolderCopy", "name": "TestFolderCopy", "type": "folder", "path": "/testfoldercopy/testuploadfile.txt", "metadata": "path": "/TestFolderCopy/testUploadFile.txt", "name": "testuploadfile.txt", "type": "file" ], "notificationid": 1084

Event Management Version 1.0 Application Setup for Event Management Integration with Box Follow these steps to set up a Box application with the endpoint. Via a web browser, go to https://app.box.com/developers/services/edit/. Enter the name of your application, select the appropriate options and click Create Application. For this example, let s assume that the URL for your application is https://www.demonstrab.ly After receiving confirmation that your application is created, click Configure your application.

Event Management Version 1.0 Please make a note of the client_id and client_secret assigned by Box for the Demonstrab.ly application. You will be required to enter a callback URL from the endpoint. Enter this URL: https:// console.cloud-elements.com/elements/jsp/home.jsp Scroll down and click Create a New Webhook

Event Management Version 1.0 On Create Webhook Screen 1. Fill out app information Directions continued on next page. 2. Select Event Types Events your app will be notified on

Event Management Version 1.0 3. Input this Endpoint URL: https://console.cloud-elements.com/elements/api-v2/events/box 4. Select Post 5. Input userid 6. Input #from_user_id# 7. Click Save Webhook Click Save Application at the bottom of the screen. Click Save application.

Event Management Version 1.0 Box requests you let them know you would like your app to allow webhooks Go to this URL: https://developers.box.com/view-webhooks/ Scroll to the bottom of the page and click Contact Us to submit a request. You will need your API Key. This can be found at the bottom of the app configuration screen.

Event Management Version 1.0 Application Setup for Event Management Integration with Dropbox Follow these steps to set up a Dropbox application with the endpoint. Via a web browser, go to https://www.dropbox.com/developers/apps/create and login to your account. Select the Dropbox API app option, select the appropriate options and enter a name for your application. For this example, let s assume that the URL for your application is https://www.demonstrab.ly. Click Create app.

Event Management Version 1.0 1. Please make a note of the App key and App secret assigned by Dropbox for the Demonstrab.ly 2. For the Redirect URI, please enter this URL: https://console.cloud-elements.com/elements/ jsp/home.jsp 3. For the Webhooks URI, please enter this URL: https://console.cloud-elements.com/elements/ api-v2/events/dropbox

Event Management Version 1.0 This concludes the documentation for Event Management. If you need any support integrating our APIs, please let us know. You can email or give us a call at +1.866.830.3456. If you are having a specific issue, please feel free to add it to our help desk support at support.cloud-elements.com. We will do our best to get back to you within 24 hours. Your success is our success. Thanks for reading The Cloud Elements Team