Giter VIP home page Giter VIP logo

vtwsclib-php's Introduction

Hi, I'm Salaros ๐Ÿ‘‹

Full-stack Software Developer, DevOps, Solution Architect. Working in IT since 2008. I enjoy being challenged and engaging with projects that require me to work outside my comfort and knowledge set, learn new languages, frameworks and technologies. I'm a great problem-solver and critical thinker. My greatest passion is open-source, so I strongly believe in knowledge sharing within communities and teams.

  • ๐Ÿ”ญ Iโ€™m currently working for my startups
  • ๐ŸŒฑ Iโ€™m currently studying Machine Learning and orchestrators
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on WakaTime addins
  • ๐Ÿค” Iโ€™m looking for help with maintaining my open-source projects
  • ๐Ÿ’ฌ Ask me about C#, Azure, Docker, product life-time management
  • ๐Ÿ“ซ How to reach me: [email protected]

๐Ÿ“ Blogs & Pages

๐Ÿ”ง Technologies & Tools

vtwsclib-php's People

Contributors

annda avatar salaros avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vtwsclib-php's Issues

cant get create account response.

i post datas after account is creating but i cant get response (i need created account id to create new salesorder). response is Null. i debugged invokeOperation(), sendHttpRequest(), but i can get only guzzle response that dont have account id

A small suggestion WHERE conditions

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/<html>Entities.php (<b>1 gru 2021, 13:09:39</b>)</html>
+++ b/<html><b>Current File</b></html>
@@ -276,8 +276,14 @@
 
         if (!empty($params)) {
             foreach ($params as $param => $value) {
+                if (is_array($value)) {
+                    $op = $value[0];
+                    $val = $value[1];
+                    $criteria[] = "{$param} {$op} '{$val}'";
+                } else {
                 $criteria[] = "{$param} LIKE '{$value}'";
             }
+            }
 
             $query .= sprintf(' WHERE %s', implode(" AND ", $criteria));
         }

this may be usefull. It allows to specify more precise WHERE conditions for queries. Example:

$vtigerClient->entities->findMany('HelpDesk', ['createdtime ' => ['>', '2020-01-01'], 'createdtime' => ['<', '2020-04-16']]);

This will look for tickets created between given dates.

[Off] Autologin ?

Hello guys, is that possible to make some AUTOLOGIN with vtiger webservices auth, and then, redirect the user to the vtiger instance ?

[vtigerUrl:protected] => http://www.urlvtigercrm.com.br/vtigercrm/
ย  | [wsBaseURL:protected] => webservice.php
ย  | [vtigerApiVersion:Salaros\Vtiger\VTWSCLib\Session:private] => 0.22
ย  | [vtigerVersion:Salaros\Vtiger\VTWSCLib\Session:private] => 7.1.0
ย  | [serviceExpireTime:Salaros\Vtiger\VTWSCLib\Session:private] => 1519933899
ย  | [serviceToken:Salaros\Vtiger\VTWSCLib\Session:private] => 5a98589f9eb44
ย  | [userName:Salaros\Vtiger\VTWSCLib\Session:private] => admin
ย  | [accessKey:Salaros\Vtiger\VTWSCLib\Session:private] => 92sj22h2hh2syy2
ย  | [userID:Salaros\Vtiger\VTWSCLib\Session:private] => 19x1
ย  | [sessionName:Salaros\Vtiger\VTWSCLib\Session:private] => 530bbbf55a98589fc92af

Retrieve comment attachments

hello,
using these sdk, I have a strange error when I try to recover the documents (Documents module) attached to a comment (ModComments module). From retrieve_related I get this message:

Relation specified is incorrect

but I can successfully execute the add_related. What am I missing?

Problem when add Where condition

I am using the web service from a while, i moved now to a new server, but after moving all my queries which contains where conditions was stop working, only queries without condition is running
Note: i have no errors, it just returns no results, even if all conditions are success

i can not determine what's the exact problem which cause this

Fatal Error in v6.5

Fatal error with invokeOperation('query_related'
in v6.5

Fatal error: Uncaught Salaros\Vtiger\VTWSCLib\WSException: [FAILED_SENDING_REQUEST]: Failed to execute GET call on "http://localhost:8888/webservice.php" URL thrown in /home/vt65/public_html/vendor/salaros/vtwsclib-php/src/Session.php on line 245

Picklist Values

Ability to retrieve in Array label instead values from picklistValues

Update Sales Order, removes Items

When I update an existing Sales order it remove all items from sales order.
Below you can find my code. Please help me to find issue.
I developed my code in 2 styles and every 2 styles has this issue :
1-
function update_sales_order($id)
{
$client = new WSClient(VTIGER_URL, VTIGER_API_USER, VTIGER_API_KEY);
$UpdSOrder = $client->entities->findOneByID('SalesOrder', $id,[] );
$UpdSOrder['invoicestatus'] = 'Cancel';
$UpdSOrder['subject'] = 'TEST2-FOR-IT- ';
$entities = $client->entities->updateOne('SalesOrder', $id, $UpdSOrder);
return $entities;
}
2-
function update_sales_order($id)
{
$client = new WSClient(VTIGER_URL, VTIGER_API_USER, VTIGER_API_KEY);
$UpdSOrder = array(
'invoicestatus' => 'Cancel',
'subject' => 'TEST2-FOR-IT- '
);
$entities = $client->entities->updateOne('SalesOrder', $id, $UpdSOrder);
return $entities;
}

Failed to execute POST call

Hello,

Trying to insert Invoice via webservice, but getting "Failed to execute POST call" :

require 'vendor/autoload.php';

use Salaros\Vtiger\VTWSCLib\WSClient;


$client = new WSClient('http://vtiger.weaccess.pro/', 'admin', 'mypass');

$array = Array(
'subject'=> 'sujet',
'invoicedate'=>'01-01-2020',
'duedate' => '01-01-2020',
'account_id'=>'11x4',
'invoicestatus'=>'AutoCreated',
'assigned_user_id' => '1',
'createdtime'=>'01-01-2020',
'modifiedtime' => '01-01-2020',
'bill_street'=> 'Adresse de Facturation',
'ship_street' => 'Adresse de Livraison',
    'productid' => '14x114',
    'quantity' => '1.000',
    'listprice' => '70.00000000',
    'tax1' => '20.000',
    'tax2' => '20.000',
    'tax3' => '20.000',
    'pre_tax_total' => '3999.00000000',
    'received' => '0.00000000',
    'balance' => '6398.40000000',
    'hdnS_H_Percent' => '0.00000000',
    'potential_id' => '',
    'image' => '',
    'purchase_cost' => '20.00000000',
    'margin' => '50.00000000',
    'source' => 'CRM',
    'region_id' => '0',
);


var_dump($client->entities->createOne('Invoice',$array));

Full error :
Fatal error: Uncaught Salaros\Vtiger\VTWSCLib\WSException: [FAILED_SENDING_REQUEST]: Failed to execute POST call on "http://vtiger.
me/webservice.php" URL

thrown in /var/www/vtigercrm/Webservice/vendor/salaros/vtwsclib-php/src/Session.php on line 250

Many thanks.

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.