OrangeCRM Business Intelligence API IMPLEMENTATION GUIDE

Similar documents
NTP Software VFM Administration Web Site

API Spec Sheet For HLR v1.4

API Spec Sheet For Version 2.5

HTTPS File Transfer. Specification

NTP Software VFM. Administration Web Site for EMC Atmos User Manual. Version 6.1

CSCE 548 Building Secure Software SQL Injection Attack

Guide for Administrators

NTP Software VFM Administration Web Site For Microsoft Azure

Configuring User Defined Patterns

TACACS Support APIs. curl -k -v -u "admin:cisco123" -H Accept:application/vnd.yang.data+xml -H ContentType:application/vnd.yang.

SOAP API. The correct URL has been hidden. Please contact your account manager for the full URL information.

Agenda. Page. IDD Mobile User Guide Version 1.0

Crystal Enterprise. Overview. Contents. Web Server Overview - Internet Information System (IIS)

COSC 2206 Internet Tools. The HTTP Protocol

NTP Software VFM. Administration Web Site for NetAppS3. User Manual. Version 5.1

NTP Software VFM. Administration Web Site for Atmos. User Manual. Version 5.1

The HTTP Protocol HTTP

Creating Data Driven Websites with Dreamweaver CS4: Using ColdFusion, PHP or ASP

Combating Common Web App Authentication Threats

HTTP Console Documentation

text2reach2 SMS API Sep 5, 2013 v1.1 This document describes application interface (API) between SMS service provider (SP) and SMS gateway (SMSGW).

Black Box DCX3000 / DCX1000 Using the API

Dynamic Documents. Kent State University Dept. of Math & Computer Science. CS 4/55231 Internet Engineering. What is a Script?

PHPKB API Reference Guide

ForeScout CounterACT. Configuration Guide. Version 3.4

ForeScout Open Integration Module: Data Exchange Plugin

Lecture 7b: HTTP. Feb. 24, Internet and Intranet Protocols and Applications

NAB TRANSACT. Direct Post v2.1.2 Integration Guide

All requests must be authenticated using the login and password you use to access your account.

Slybroadcast Global API Documentation Version 3.0 June 2018

WWW. HTTP, Ajax, APIs, REST

Web Security. Jace Baker, Nick Ramos, Hugo Espiritu, Andrew Le

USER MANUAL TABLE OF CONTENTS. Store Error Log Manager. Version: 0.1.1

CGI / HTTP(s) GET NETIO M2M API protocols docs

HTTP Authentication API

Lecture 9a: Sessions and Cookies

RESTFUL WEB SERVICES - INTERVIEW QUESTIONS

Direct Post Integration Guide

ANZ EGATE MERCHANT ADMINISTRATION QUICK REFERENCE GUIDE

PHP by Pearson Education, Inc. All Rights Reserved.

Web Security Service. Near Real-Time Log Sync Solution Brief. Version /OCT

IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3.1 April 07, Integration Guide IBM

AppSpider Enterprise. Getting Started Guide

SpeedChex EasyLink API

In order to install mypos Checkout plugin please follow the steps below:

RAP as a Service for. Team Foundation Server. Prerequisites

CORS Attacks. Author: Milad Khoshdel Blog: P a g e. CORS Attacks

HOW ADMINISTRATORS WITH ALLOWABLE RIGHTS CAN SETUP, ASSIGN, EDIT OR DELETE ASSIGNMENTS OF CONTRACTORS IN LCPTRACKER

Using the vrealize Orchestrator Operations Client. vrealize Orchestrator 7.5

Note: Any references in the documentation to the Hyperion Download Center pertain if your site has access.

StorageGRID Webscale NAS Bridge Management API Guide

IBM Campaign Version-independent Integration with IBM Watson Campaign Automation Version 1 Release 1.5 February, Integration Guide IBM

Real Application Security Administration

Cisco Encryption

EPHP a tool for learning the basics of PHP development. Nick Whitelegg School of Media Arts and Technology Southampton Solent University

Guide for Administrators. Updated November 12, Page 1 of 31

Way2mint SMS Mobile Terminate (MT) API Guide for HTTP / HTTPS

Web Development. With PHP. Web Development With PHP

AIM Application v. 2.4 User Manual

CNIT 129S: Securing Web Applications. Ch 10: Attacking Back-End Components

CS 161 Computer Security

OTP Issuance/Use Manual

LMEdprs Operating & Technical Guide

Use a class C setting for maximum security. The class C setting is Click RoomWizard Setup.

Oracle Database. Installation and Configuration of Real Application Security Administration (RASADM) Prerequisites

CA Nimsoft Monitor. Implementing CA Nimsoft Monitor for Citrix CloudPlatform powered by Apache CloudStack

vfire 9.8 Release Notes Version 1.5

Protocols. Application Layer FTP, HTTP, SSH, IMAP. Transport Layer TCP, UDP. Internet Layer IP. Link Layer Ethernet, WiFi

Server-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University

A10 Thunder ADC with Oracle E-Business Suite 12.2 DEPLOYMENT GUIDE

John Coggeshall Copyright 2006, Zend Technologies Inc.

Guest Book. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Nasuni Data API Nasuni Corporation Boston, MA

Web Technology. COMP476 Networked Computer Systems. Hypertext and Hypermedia. Document Representation. Client-Server Paradigm.

Avoiding Web Application Flaws In Embedded Devices. Jake Edge LWN.net URL for slides:

Introduction to Cisco TV CDS Software APIs

We currently are able to offer three different action types:

Web logs (blogs. blogs) Feed support BLOGS) WEB LOGS (BLOGS

Backend Development. SWE 432, Fall 2017 Design and Implementation of Software for the Web

CMPE 151: Network Administration. Servers

Comprehensive Spam Quarantine Setup Guide on Security Appliance (ESA) and Security Management Appliance (SMA)

How to Integrate. REVE Secure 2FA App. with Dashboard.

Front Office for NetBackup Guide Self-service backup & restore

PROCE55 Mobile: Web API App. Web API.

RESTful Application Protocols

SECURE CODING ESSENTIALS

Create and Apply Clientless SSL VPN Policies for Accessing. Connection Profile Attributes for Clientless SSL VPN

Nasuni Data API Nasuni Corporation Boston, MA

Alpha College of Engineering and Technology. Question Bank

BulkSMS Marketo Gateway

Deployment Guide AX Series with Oracle E-Business Suite 12

TWO-FACTOR AUTHENTICATION Version 1.1.0

Application Security through a Hacker s Eyes James Walden Northern Kentucky University

TABLE OF CONTENTS. ICANN Pre- Delegation Testing System. A User s Guide. Release version May- 03

Master Calendar Integrated Authentication Configuration Instructions. Dean Evans & Associates, Inc.

Creating a Reimbursement Request

Technical Note. Isilon OneFS. Isilon Swift Technical Note. Release number July, 2015

GET /index.php HTTP/1.1 Host: User- agent: Mozilla/4.0

OCLQS Portal ODJFS Add/Remove a System User

FortiBalancer 8.4 Web UI Handbook

Transcription:

OrangeCRM Business Intelligence API IMPLEMENTATION GUIDE VERSION 1.01 October 17, 2016

API UPDATES V1.01 Implementation 2 P age www.orangecrm.com

API ACTIONS The following actions can be performed by the Business Intelligence API: SQL_QRY_URL Sends Business Intelligence a request for a URL to be generated and handed back. This URL will then be able to execute a pre-built stored procedure from MS-SQL and hand back a file with the information. REPORT_URL (TO BE IMPLEMENTED IN VERSION 1.02) 3 P age www.orangecrm.com

DEVELOPERS To access the Business Intelligence gateway, developers would design a script that does the following: 1. Securely obtains all of the information needed to process the request 2. Initiates an HTTPS form POST from your server to: https://[your_business INTELLIGENCE_URL]/rptbiapi 3. Receives the response from Business Intelligence and processes the response to display the appropriate result to the end user. REQUEST FORMAT To send a request to Business Intelligence, you must first initiate a secure socket connection via the URL above. Using port 443 (HTTPS), establish a socket connection to your Business Intelligence server cluster. You are now ready to transmit the request information. Example Post String: &q_system_key=yn12qa&q_action=sql_qry_url&q_rpt_begindate=20101201&q_rpt_enddate=20101231 ANSWER FORMAT After a request is submitted, the gateway server will respond with the results in a few seconds. It is up to your program to interpret the results and route the customer accordingly. Here are some sample responses: <html> <head> </head> <body text="#000000"> &code=1&result=complete&reason=url returned&answer=https://atlrpt.orangecrm.com/ocrm/sqlphpcsv.php?qry=sp_apicustsumbydate&su= crmdemocrm&sp=510041f572&parm=63f4351ed62b11f785256fef0053884c~066bb6a4ff6d6b4e85257b0800521ffd~20 16/01/01~2016/12/12&PARMCNT=4 </body> </html> Note: If the gateway is down and unable to process requests, the answer response may be as below. If this occurs please contact customer service for assistance. HTTP/1.1 200 OK Server: Lotus-Domino Date: Thu, 05 Jun 2003 10:25:39 GMT Content-Type: text/html Content-Length: 158 <html><head></head><body text= #000000 ><h2>agent done</h2></body></html> See Appendix for Sample Code 4 Page www.orangecrm.com

STANDARD REQUEST SUBMISSION API The Standard Request Submission API defines the information that can be submitted to the gateway. The API consists of a set of fields that are required for every request and a set of fields that are optional. Under the API, the gateway accepts a NAME/VALUE pair. The NAME is the field name and indicates to the gateway what information is being submitted. VALUE contains the contents of the field. API ACCOUNT INFORMATION The following fields in the API allow the system to identify the application submitting the request and the state of the application s account on the gateway. Field Used For Value Size Description q_system_key All Requests Token assigned in the application by the Business Intelligence Admin. 32 Pass the system key (token) obtained from the Business Intelligence Admin for this request type. This key will identify the SQL URL or the Report URL that you are requesting. A Unique Key is assigned to each stored procedure or Report. q_action All Requests One of the following: SQL_QRY_URL N/A Indicates the type of request being sent. If the value does not match any of the values stated, the request will be rejected. 5 P age www.orangecrm.com

REQUEST SQL QUERY URL Request Post String: &q_system_key=ae8v83 &q_action= SQL_QRY_URL &Q_RPT_BEGINDATE=20160101 &Q_RPT_ENDDATE=20161212 &Q_RPT_PROGRAM=63F4351ED62B11F785256FEF0053884C Note: All fields are optional depending on the request being sent in. An API will reject any request that is lacking the required fields, and will ignore any fields sent to it that are not specified for that query. Field Used For Value Length Description Q_RPT_BEGINDATE SQL_QRY_URL YYYYMMDD HH:mm:ss 17 Start date for your time frame Q_RPT_ENDDATE SQL_QRY_URL YYYYMMDD HH:mm:ss 17 Stop date for your time frame Q_RPT_ACQUISITIONCENTER SQL_QRY_URL GUID 32 Alpha-numeric value that uniquely identifies the acquisition center group GUID. If an acquisition center has not been assigned to a specific group, the GUID of the acquisition center is used. Q_RPT_PROGRAM SQL_QRY_URL GUID 32 Alpha-numeric value that uniquely identifies the Program for the requested information. In some cases a request can be made for all programs - The 32 character alpha-numeric value is then: XX5221F875C2F7FC852570A F006A7644. Q_RPT_USERID SQL_QRY_URL GUID 32 Alpha-numeric value that uniquely identifies the ACL User whom this request is for. This can be used for security purposes, to ensure users only obtain data that they have permission to see. Q_RPT_GROUP SQL_QRY_URL Any string 80 The CSR Group name. Q_RPT_DATEFIELD SQL_QRY_URL DateCreated DateOrdered DateResolved DateFinish DateIssue 8-12 Specifies which date field to use in a query. For example, when a transaction was issued or when it finished with a full response from the bank. Q_RPT_FILTER SQL_QRY_URL Any predefined string 80 A specific filter set against a query. Q_RPT_BANKID SQL_QRY_URL GUID 32 GUID of the Merchant Bank (not to be confused with the Bank Performance Group GUID). 6 P age www.orangecrm.com

RESPONSE FIELDS RETURNED Position Field Description 1 code Indicates the result of the request: 1 = ACCEPTED 2 = REFUSED 3 = ERROR 4 = DUPLICATE 2 result Brief description of the result code. 3 reason Text message from the gateway. Answer URL A URL that can be run to download the requested file. This will include temporary access to SQL, i.e. the URL will not function for more than 24 hours. 7 P age www.orangecrm.com

APPENDIX Command Line CURL Samples: curl.exe k -d " &q_system_key=ae8v83 &q_action=sql_qry_url &Q_RPT_USERID=066BB6A4FF6D6B4E85257B0800521FFD &Q_RPT_BEGINDATE=20010101 &Q_RPT_ENDDATE=20161212 &Q_RPT_PROGRAM=63F4351ED62B11F785256FEF0053884C " https://demo.orangecrm.com/aexxisdemo/rptbiapi.nsf/gateway?openagent >a.txt PHP Sample Code: function REQUEST URL ($fields, $q_system_key, $conn) { extract($fields); $postdata[ q_system_key ] = $q_system_key; $postdata[ q_action ]= SQL_QRY_URL ; $postdata[ q_rpt_userid ] = $r_userid; $postdata[ q_rpt_program ] = $r_programid; $postdata[ q_rpt_begindate ] = $r_startdate; $postdata[ q_rpt_enddate ] = $r_stopdate; } 8 P age www.orangecrm.com