[Vtigercrm-developers] Mobile API

ram prasad ramtrg at gmail.com
Thu Aug 2 21:05:02 PDT 2012


Hi,

    I have used
Webservice<https://wiki.vtiger.com/index.php/Webservices_tutorials>
Login,Session
id using VTSLIB with javascript.  Now i want to use Mobile API. Shall i
want to Login mobile webservice again? or can i use same sessionID.

  *Also please provide sample Request URL to access Mobile API.*
*
*
*
*
*   I have tried like below:*
*  *
*   **this._mobileurl='**
http://mysite/vtigerCRM510-RC/vtigerCRM/modules/Mobile/api/ws/FetchAllAlerts.php
 **'; // is it correct*
*    *
*   this.doQuerym = function(callback) {*
* this.__checkLogin();*
*                var reqtype = 'GET';*
* *
* jQuery.ajax({*
* url : this._mobileurl,*
* type: reqtype,*
* **// Pass reference to the client to use it inside callback function.*
* _wsclient : this, *
* complete : function(res, status) {*
* var usethis = this._wsclient;*
* var resobj = usethis.toJSON(res.responseText);*
* var result = false;*
* if(usethis.hasError(resobj) == false) {*
* result = resobj['result'];*
* }*
* usethis.__performCallback(callback, result);*
* }*
* });*
* };*
*
*
*   Result:  **500 Internal Server Error*

-- 
BY

R.RAMPRASAD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120803/82971196/attachment.html 


More information about the vtigercrm-developers mailing list