Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9211351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:16:30+00:00 2026-06-18T01:16:30+00:00

I need to import quotes into vtiger . I find out it can be

  • 0

I need to import quotes into vtiger.
I find out it can be be done using vtiger web services API

I find out the reference manual:
https://wiki.vtiger.com/archives/index.php/vtiger510:Webservice_reference_manual

But i can’t find any example PHP script, neither what data fields I need to pass to webservice.php.

Please help, I need some guidance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:16:31+00:00Added an answer on June 18, 2026 at 1:16 am

    Maybe you can start like this (according to your reference link).

    Manual: https://wiki.vtiger.com/archives/index.php/vtiger510:Webservice_reference_manual
    Login: https://wiki.vtiger.com/archives/index.php/vtiger510:Webservice_reference_manual#Login

    Pseudo;

    <?php
    class VTiger_Login
    {
        private $serviceURL = 'http://vtiger_url/webservice.php?operation=login&username=%s&accessKey=%s';
        // A Vtiger username.
        private $userName = 'my_username';
        // An md5 of the concatenation of the challenge token and the user's webservice access key. 
        private accessKey = 'my_accesskey';
    
        public function login() {
            // Open CURL
            $ch = curl_init();
            // Set URL as same as on manual
            curl_setopt($ch, CURLOPT_URL, sprintf($this->serviceURL, $this->userName, $this->accessKey));
            // Need POST according to manual
            curl_setopt($ch, CURLOPT_POST, 1);
            // Receive server response = TRUE
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            // Exec CURL
            $result = curl_exec($ch);
            // Close CURL
            curl_close($ch);
    
            /*
            $result should be like this according to manual;
            LoginResult {
                sessionId: String     // Unique Identifier for the session
                userId: String        // The vtiger id for the logged in user
                version: String       // The version of the webservices api
                vtigerVersion: String // The version of the vtiger crm.
            } 
            */
    
            // From manual: All structural data including response from the api is represented as JSON strings. 
            $result =@ json_decode($result);
            // See "Response" on manual
            if (null === $result) {
                throw new Exception('No response returned from Vtiger server!');
            }
            // See "ErrorObject" on manual
            if (null !== $result->success && false === $result->success) {
                throw new Exception('Something went wrong with login operation! errorCode: '. 
                            $result->errorCode .', errorMessage: '. $result->errorMessage);
            }
    
            // I think, there is no problem anymore, go with $result after this line...
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to import a database into a SQL Server instance using a batch
I need to import a large CSV file into an SQL server. I'm using
I need to import some Excel spreadsheets into Java objects. I will use POI
I need to import some ANSI C code into a project I'm working on.
i need to import a mysql file into my access db. how do i
We need to import a SSJS library in a database using DXL. For this
I need to import the .sql file of PHP myadmin into SQL Server 2008.
I need to import a CSV file into a table named coplaints. The file
I need to import a csv file into Firebird and I've spent a couple
I need import user's google reader feeds to my site, any way can do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.