vtiger-cloudsdk/restapi-php

Vtiger Cloud Restapi Library

Maintainers

Details

extend.vtiger.com/sdk/restapi-php

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/vtiger-cloudsdk/restapi-php

1.1 2024-07-25 10:50 UTC

This package is not auto-updated.

Last update: 2025-10-30 16:43:33 UTC


README

RestApi library makes it easy to interact with your data on Vtiger Cloud.

Reference: https://www.vtiger.com/docs/rest-api-for-vtiger

Setup

You will need to know the domain of your Vtiger Cloud instance along with your login username and accesskey allocated for the same.

$restapi = new \Vtiger\Cloud\RestApi($domain, $username, $accesskey);

Types

$types = $restapi->listTypes();

Create Record

$moduleName = "Accounts";
$newAccount = array(
	"accountname" => "Name of Account",
	"assigned_user_id" => $restapi->myid()
);
$account = $restapi->create($moduleName, $newAccount);

Find Records

$records = $restapi->query("SELECT * FROM Accounts WHERE createdtime = '2019-01-01';");

Retrieve Record

$id = "target_record_id";
$record = $restapi->retrieve($id);