Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
# @km
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class getContacts extends SugarApi
{
public function registerApiRest()
{
return array(
//GET
'getContacts' => array(
//request type
'reqType' => 'POST',
//endpoint path
'path' => array('CONTACTS', 'getContacts'),
//endpoint variables
'pathVars' => array('', ''),
//method to call