Git Product home page Git Product logo

vtiger-restapi-php's Introduction

Vtiger REST API client for PHP

Installation

composer require jaime/vtiger-restapi-php

Usage

require 'vendor/autoload.php';

$vtiger = new vtiger('VTIGER_URL', 'VTIGER_USERNAME', 'VTIGER_ACCESSKEY');
Create
$params      = [
    'assigned_user_id'         => '1',
    'subject'                  => 'Test',
    'quotestage'               => 'Created',
    'productid'                => '14x3',
    'description'              => 'Test Description',
    'hdnTaxType'               => 'group', // group or individual taxes are obtained from the application
    'LineItems'                => [
        '0' => [
            'productid'        => '14x3',
            'sequence_no'      => '1',
            'quantity'         => '1.000',
            'listprice'        => '500.00',
            'comment'          => 'sample comment product',
        ],

    ],
];

$result = $vtiger->create($params, 'Quotes');

Update

$params = ['id' => '12x3654', 'lastname' => 'Test Lead', 'email' => '[email protected]', 'assigned_user_id' => '19x1'];
$result = $vtiger->update($params);

Retrieve

$result = $vtiger->retrieve('5x3679');

Revise

$params = ['id' => '12x3653', 'email' => '[email protected]', 'assigned_user_id' => '19x1'];
$result = $vtiger->revise($params);

Describe

$result = $vtiger->describe('Contacts');

Query

$params = ['email' => '[email protected]'];
$select = ['mobile'];

$result = $vtiger->query('Contacts', $params, $select);

ListTypes

$result = $vtiger->listTypes();

RetrieveRelated

$result = $vtiger->retrieveRelated('12x3653', 'Activities', 'Calendar');

vtiger-restapi-php's People

Contributors

jaimey avatar

Watchers

 avatar  avatar

Forkers

wanchaik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.