REST Webservices API Reference Manual



Similar documents
REST Webservices API Tutorial

Resco CRM Server Guide. How to integrate Resco CRM with other back-end systems using web services

Pervasive Data Integrator. Oracle CRM On Demand Connector Guide

HP Project and Portfolio Management Center

Cloud Powered Mobile Apps with Azure

CA Nimsoft Service Desk

Technokrafts Labs Pvt. Ltd.

IoT-Ticket.com. Your Ticket to the Internet of Things and beyond. IoT API

Opacus Outlook Addin v3.x User Guide

e-filing Secure Web Service User Manual

Talend Component tgoogleanalyticsmanagement

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

CRM Migration Manager for Microsoft Dynamics CRM. User Guide

vcommander will use SSL and session-based authentication to secure REST web services.

Portal Connector Fields and Widgets Technical Documentation

Sentinel EMS v7.1 Web Services Guide

MAKER FOR VTIGER CRM

Fairsail REST API: Guide for Developers

BMC Track-It! Web. Web Services API Guide. Version 11.3

Riverbed Cascade Shark Common REST API v1.0

SPARROW Gateway. Developer API. Version 2.00

Form And List. SuperUsers. Configuring Moderation & Feedback Management Setti. Troubleshooting: Feedback Doesn't Send

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

Table of Contents INTRODUCTION... 2 HOME Dashboard... 5 Reminders... 8 Announcements Preferences Recent Items REQUESTS...

Sophos Mobile Control Web service guide

Outlook Plugin for VTECRM

Yale Secure File Transfer User Guide

Cloud Elements! Marketing Hub Provisioning and Usage Guide!

vtiger Customer Portal 4.2 User Manual

A Brief Introduction to MySQL

Turnitin User Guide. Includes GradeMark Integration. January 2014 (revised)

Bitcoin Payment Gateway API

Safeguard Ecommerce Integration / API

Facebook Twitter YouTube Google Plus Website

Salesforce Integration. Installation Manual Release

Contents. 2 Alfresco API Version 1.0

Revision Action/Change Date. A Sentinel Cloud 3.0 Release December 2012 B Sentinel Cloud 3.1 Release April 2013 C

Tableau Server Trusted Authentication

Credit Card Retrieval API Implementation Guide This guide illustrates how to implement the Credit Card Retrieval API.

How to Configure the Workflow Service and Design the Workflow Process Templates

Qlik REST Connector Installation and User Guide

ODBC Client Driver Help Kepware, Inc.

HireDesk API V1.0 Developer s Guide

Kittys School Management System

CA Nimsoft Service Desk

SEOSHOP - MAILCHIMP APP

Using Foundstone CookieDigger to Analyze Web Session Management

MAKER FOR VTIGER CRM

API documentation - 1 -

User Manual. Firm Bank Manager (includes instructions for employees and firms) U.S Network of Virtual Enterprises Bank. for

2009, AdventNet Inc. All rights reserved. Product Customization

Color Screen Phones: SIP-T48G and SIP-T46G with firmware version 73

Quick Start Guide. Contents. Quick Start Guide Version 1.0 webcrm November 09

LICENSE4J LICENSE MANAGER USER GUIDE

Supply Chain Finance WinFinance

Microsoft Dynamics CRM Security Provider Module

2. A typical business process

Commerce Services Documentation

Web Services API Developer Guide

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

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

Clickatell Communicator2 Help Gui

Single Sign On Guide. Table of Contents

Cvent Web Services API. Version V June 2008

qliqdirect Active Directory Guide

KMx Enterprise: Integration Overview for Member Account Synchronization and Single Signon

Microsoft Dynamics GP

Phone Manager Application Support JANUARY 2015 DOCUMENT RELEASE 4.2 APPLICATION SUPPORT

SnapLogic Salesforce Snap Reference

Data Mailbox. support.ewon.biz. Reference Guide

Smart Card Authentication. Administrator's Guide

Safewhere*Identify 3.4. Release Notes

E*TRADE Developer Platform. Developer Guide and API Reference. October 24, 2012 API Version: v0

CloudCall for Salesforce- Quick Start Guide. CloudCall for Act! CRM Quick Start Guide

PHP Language Binding Guide For The Connection Cloud Web Services

Introduction to MLC Client Data Exchange USER GUIDE v4.1

LICENTIA. InvoiceXpress Integration

Human Translation Server

Introduction to HP ArcSight ESM Web Services APIs

Cloud Elements ecommerce Hub Provisioning Guide API Version 2.0 BETA

ACCREDITATION COUNCIL FOR PHARMACY EDUCATION. CPE Monitor. Technical Specifications

Revegy Master System Administration and Manage Preferences

VMware vcenter Log Insight Developer's Guide

HYPERION DATA RELATIONSHIP MANAGEMENT RELEASE BATCH CLIENT USER S GUIDE

CAMMS ONLINE SUPPORT PORTAL USER MANUAL

USER GUIDE for Salesforce

WHMCS LUXCLOUD MODULE

Introduction to Client Online. Factoring Guide

New Help Desk Ticketing System

A table is a collection of related data entries and it consists of columns and rows.

Copyright: WhosOnLocation Limited

Coveo Platform 7.0. Salesforce Connector Guide

Copyright 2013 Consona Corporation. All rights reserved

Informatica Cloud Connector for SharePoint 2010/2013 User Guide

PRESTASHOP VTIGER CRM CONNECTOR

What's New Feature Guide

Forumbee Single Sign- On

Setup Corporate (Microsoft Exchange) . This tutorial will walk you through the steps of setting up your corporate account.

Human Computer Interaction Final Project Tutorial. Hardware Inventory Management System (HIMS) By M. Michael Nourai

Aras Corporation Aras Corporation. All rights reserved. Notice of Rights. Notice of Liability

Transcription:

crm-now/ps REST Webservices API Reference Manual Version 1.5.1.0 crm-now development documents Page 1

Table Of Contents OVERVIEW...4 URL FORMAT...4 THE RESPONSE FORMAT...4 VtigerObject...5 Id Format...5 Map...5 TimeStamp...5 GetChallengeResult...5 LoginResult...6 SyncResult...6 Operations...6 Get Challenge...6 Login...6 Create...7 Retrieve...7 Update...7 Delete...8 Query...8 Sync...9 Logout...9 List Types...10 Describe...10 Extend Session...10 CRM Entities...11 Field Types...11 picklist...12 reference...12 datetime...12 date...12 text...12 time...12 string...12 boolean...13 integer...13 crm-now development documents Page 2

owner...13 autogenerated...13 email...13 phone...13 url...13 double...13 file...13 password...13 decimal...13 skype...14 multipicklist...14 Known Issues...14 Acknowledgement...14 crm-now development documents Page 3

OVERVIEW This documentation describes the REST based application programming interface (the API) published used at the crm-now/ps CRM system. It is recommended that you go through the tutorial provided in a different document for a better understanding of this documentation. Each data set in the CRM is related to special formatted id which can be used to look up an entity's type and record. Create is the only case that does not require an id. All structural data including response from the api are represented as JSON strings. URL FORMAT All REST based web service calls are http calls with the following format: https://your_url/webservice.php?operation=[operation type]&sessionname=[session Name]&[operation specific parameters] operation: Currently the following REST operations are supported, getchallenge login create retrieve update delete sync query listtypes describe logout extendsession sessionname: The key that is used to identify the current session and is unique for every session. This must be part of every request. THE RESPONSE FORMAT Each REST call will get a response from the CRM system. All responses of the CRM have the following format. Sucessfully processed: Response{ success:boolean=true result:object //the Result object } crm-now development documents Page 4

If there failure occurred while processing the request the following message will be presented: Response{ success:boolean=false error:errorobject } ErrorObject{ errorcode:string //String representation of the error type errormessage:string //Error message from the api. } The errorcode is a string representation of the error type. VtigerObject A Map representing the contents of a crmentity based object. All reference fields are represented by using an Id type. A key called id of type Id represents the object's unique id. This field is present for any object fetched from the CRM s database. Id Format objecttypeid 'x' objectid objecttypeid - Id of the object type. This is generated uniquely for each entity supported by the web service API and returned as the result of describe operation as idprefix. objectid - id of object in database. This is a unique id for all objects of the given entity. Map A map is an associative array of key value pairs. This is usually used for create operations. TimeStamp A long representation of the number of seconds since unix epoch. See https://en.wikipedia.org/wiki/unix_time GetChallengeResult An object representing the response of a getchallenge operation, GetChallengeResult{ token:string //Challenge token from the server. servertime:timestamp //The current server time. expiretime:timestamp //The time when the token expires. } crm-now development documents Page 5

LoginResult An object representing the response of a login operation, LoginResult{ sessionid:string //Unique Identifier for the session userid:string //The CRM id for the logged in user version:string //The version of the webservices api vtigerversion:string //The version of the CRM system. } SyncResult An object representing the response of a sync operation, SyncResult{ updated:[object] //List of Objects created or modified. deleted:[id] //List of *Id* of objects deleted. lastmodifiedtime:timstamp //time of the latest change. This can be used in the next call to the Sync api to get all the latest changes that the client hasn't obtained. } Operations The following describes all REST operations in detail. Get Challenge Login Get a challenge token from the server. This operation should always be executed before any login. getchallenge(username:string):getchallengeresult Request Type: GET username: A CRM username. response: A GetChallengeResult object containing the server's challenge token. This must be a GET request. https://your_url/webservice.php?operation=getchallenge&username=[username] Login to the server using the challenge token obtained in get challenge operation. login(username:string, accesskey:string):loginresult Request Type:POST crm-now development documents Page 6

Create Retrieve Update username: A CRM username. accesskey: An md5 of the concatenation of the challenge token and the user's webservice access key. response: A LoginResult object containing the session id, the api version id and the user id. This must be a POST request. https://your_url/webservice.php?operation=login&username=[username]&accesskey= [accesskey] Note: In accesskey 'K' is uppercase. Create a new data entry at the CRM server. create(element:map, elementtype:string): VtigerObject Request Type: POST element: Fields of the object to populate. Values for mandatory fields must be provided. elementtype: The class name of the object. This must be a POST request. https://your_url/webservice.php?operation=create&sessionname=[session id]&element=[object]&elementtype=[object type] response: A VtigerObject instance representing the new object. Retrieve an existing entry from the server. retrieve(id: Id): VtigerObject Request Type: GET id: The Id of the object. response: A VtigerObject instance representing the retrieved object. This must be a GET request. https://your_url/webservice.php?operation=retrieve&session_name=[session id]&id=[object id] Update an existing entry on the CRM object. crm-now development documents Page 7

Delete Query update(object: VtigerObject): VtigerObject Request Type: POST object: The VtigerObject to update. response:a VtigerObject representing the object after the update. This must be a POST request. https://your_url/webservice.php?operation=update&sessionname=[session id]&element=[object] Delete an entry from the server. delete(id:id):nothing Request Type: POST id: The Id of the object to be deleted. response: A map with one key status with value 'successfull' This must be a POST request. https://your_url/webservice.php?operation=delete&sessionname=[session id]&id=[object id] The query operation provides a way to query the CRM for data. query(querystring : String): [VtigerObject] Request Type: GET querystring:the query to process. response: A list of Map containing the fields selected. Queries are currently limited to a single object. Joins are not supported. Query always limits its output to 100 records. A client application may use limit operator to get different records. The query format select * <column_list> <count(*)> from <object> [where <conditionals>] [order by <column_list>] [limit [<m>, ]<n>]; The column list in the order by clause can have at most two column names. column_list: comma separated list of field names. object: type name of the object. conditionals: condition operations or in clauses or like clauses separated by 'and' or 'or' operators these are processed from left to right. There is no grouping supported which is done width bracket operators. crm-now development documents Page 8

conditional operators: <, >, <=, >=, =,!=. in clauses: in (). like clauses: like 'sqlregex'. value list: a comma separated list of values. m, n: integer values to specify the offset and limit respectively. This must be a GET request. Query operation is currently supported for Entity module only. Sync Logout https://your_url/webservice.php?operation=query&sessionname=[session id]&query=[query string] Sync will return a SyncResult object containing details of changes after modifiedtime. sync(modifiedtime: Timestamp, elementtype: String):SyncResult Request Type: GET modifiedtime: The time of the last synced modification. elementtype: This is an optional parameter, if specified the changes for that module after the given time otherwise changes to all user accessible module are returned. Returns a SyncResult object representing the sync data. This must be a GET request. https://your_url/webservice.php?operation=sync&sessionname=[session id]&modifiedtime=[timestamp]&elementtype=[elementtype] Logout from the webservices session, this leaves the webservice session invalid for further use. logout(): Map Request Type: GET Returns a map containing the key 'message' with the value 'successfull'. This must be a GET request. https://your_url/webservice.php?operation=logout&sessionname=[session id] crm-now development documents Page 9

List Types List the names of all the CRM objects available through the api. listtypes(): Map Request Type: GET Returns a map containing the key 'types' with the value being a list of names of CRM objects. This must be a GET request. Describe https://your_url/webservice.php?operation=listtypes&sessionname=[session id] Get the type information about a given CRM object. describe(elementtype: String): DescribeResult Request Type: GET elementtype: The type name of the CRM object to describe. Returns a DescribeResult instance. This must be a GET request. https://your_url/webservice.php?operation=describeobject&sessionname=[session id]&elementtype=[elementtype] Extend Session Extends current CRM web-session to webservices and returns a webservices session id. extendsession(username:string):loginresult Request Type: POST username: A CRM username. This must be a POST request. https://your_url/webservice.php?operation=extendsession crm-now development documents Page 10

CRM Entities List of CRM entities exposed by the API. Name Calendar Emails Leads HelpDesk Accounts Faq Contacts Vendors Potentials PriceBooks Products Documents Quotes PurchaseOrder SalesOrder Invoice Campaigns Events Users Groups Currency Documentfolders Description The Calendar Module manages Tasks and Meetings The Emails module is a email client used to manage your emails. The Leads module is used to track Sales leads. The HelpDesk module is used to track customer issues such as feedback, problems etc. The Accounts module is used to manage individual or organizations involved in your business. The FAQ module is used to manage the frequently asked question by your customer. The Contacts module is used to manage individuals, who may be associated with an Account. The Vendors Module is used for managing manufacturers. Potential module is used to manage sales Opportunies. The PriceBook Module is used for managing pricing of products or services. The Products module is used to Manage the product that your organization sales. The Documents module is used to Manage the uploaded documents and notes. The Quotes Module is used for managing the quotations for products or services. The PurchaseOrder module is used for managing the purchase orders. The SalesOrder module is used for managing the sales orders from customers. The Invoice module is used for creating invoices. The Campaigns module is used for managing Marketing Campaigns. The Events module is used for Managing Activities such as Calls and Meetings. The Users module is used for managing the CRM users. Manages users groups on the CRM. Currency module let's the administrator to define different currencies and set the expected conversion rate with respect to the base currency. These currencies can be used in Inventory modules to support multi-currency. The DocumentFolders module is used to group documents.. Field Types List of field types exposed by the API. crm-now development documents Page 11

picklist A field that can a hold one of a list of values, the map will contain two elements, picklistvalues which is a list of possible values, and defaultvalue which is the default value for the picklist. Name Description picklistvalues Which is a list of possible values. defaultvalue Specifies which value should be used as the default value for the picklist. name Name of the field type. reference A field that shows a relation to another object, the field type map will contain another element called refersto which is an array containing the name of modules of which the field can point to. Name Description refersto Which is an array containing the name of modules to which the field can point to. name Name of the field type. datetime date A string representing the date and time, the format is base on the user's settings date format. A string representing a date, the field type map will contain another element called format which is the format in which the value of this field is expected, its based on the user's settings date format. Name format name Description The format in which the value of this field is expected. Name of the field type. text A multiline text field. time A string of the format hh:mm, format is based on the user's settings time format. string A one line text field. crm-now development documents Page 12

boolean integer owner A boolean field, can have the values true or false. A none decimal number field. A field for defining the owner of a field which could be a group or individual user. autogenerated email phone url double file password decimal These are fields for which the values are generated automatically by the CRM, this is usually an object's id field. A field for storing email ids. A field for storing phone numbers. A field for storing urls. A field for for floating point numbers. A field for adding a file to the CRM. Name Description maxuploadfilesize Max allowed size of a file getting uploaded. name Name of the field type. A field for storing passwords. A field for floating point numbers. crm-now development documents Page 13

skype A field for storing skype ids or phone numbers. multipicklist A picklist field where multiple values are existent can be selected. Known Issues Sync does not work on the users modul and non e ntity modules like Currency, Groups etc. Query does not work on non e ntity modules like Currency, Groups etc.. Acknowledgement This tutorial has been retrieved from " http://wiki.vtiger.com/index.php/vtiger510:webservice_reference_manual" with the friendly permission of vtiger. It has been modified to meet the specific requirements of the CRM offer from crm-now. crm-now development documents Page 14