Results 1 to 9 of 9

Thread: How to use OAuth web-service in SugarCRM

  1. #1
    madhusudan2291 Guest

    Default How to use OAuth web-service in SugarCRM

    Hi All,

    I have to create a contact in sugarCRM whose parameters are coming from outside CRM (another website's contact us page).
    Currently I am using REST to do this, but if we are using REST/SOAP I have to mention admin username and password, and this is not my requirement.
    Somewhere i read that if we are using Oauth then username and password is not required anymore.

    So PLZ tell me how to do CRUD operations using OAuth in php(any sample code). I am new to OAuth and its urgent.

    Regards
    Madhusudan Singh

  2. #2
    jmertic's Avatar
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    3,996

    Default Re: How to use OAuth web-service in SugarCRM

    This guide should help...

    OAuth - SugarCRM Support Site
    John Mertic
    Sugar Community Manager

  3. #3
    madhusudan2291 Guest

    Default Re: How to use OAuth web-service in SugarCRM

    Thanks John;

    I am using following code to make client request

    <?php

    $oauth = new OAuth('Key', 'Secret', OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI);
    $url = 'http://localhost/VeonRealEstateCRM/service/v4/rest.php';
    $request_token_info = $oauth->getRequestToken($url."?method=oauth_request_token ");
    print_r($request_token_info);
    ?>

    But it is showing fatal error Class 'OAuth' not found


    Regards
    Madhusudan Singh

  4. #4
    madhusudan2291 Guest

    Default Re: How to use OAuth web-service in SugarCRM

    Please mention how i will get this OAuth

  5. #5
    ramendrasinghrathore@hotmail.com Guest

    Default Re: How to use OAuth web-service in SugarCRM

    Please install OAuth on your server.

    The extension is recommended, but if you can't install php extensions you should go for the pear package.

  6. #6
    madhusudan2291 Guest

    Default Re: How to use OAuth web-service in SugarCRM

    Thanks Ramendra Singh

    I installed the pear package (i used HTTP_OAUTH, got from HTTP_OAuth) .
    but in this package also there is no class as OAuth

    I am following Oauth - SugarCRM Support Site to use oauth for sugarcrm

  7. #7
    jmertic's Avatar
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    3,996

    Default Re: How to use OAuth web-service in SugarCRM

    Use this pecl extension instead...

    PECL :: Package :: oauth
    John Mertic
    Sugar Community Manager

  8. #8
    johnsoncrm Guest

    Default Re: How to use OAuth web-service in SugarCRM

    I am using REST API for accessing the contact information using a default admin user and password.
    Can a admin user access the contact info of another user by passing the another user id during REST API call session ?

  9. #9
    reiseer Guest

    Default Re: How to use OAuth web-service in SugarCRM

    Hello

    I would like to know if I can use the oauth_request_token() metohd from SugarWebServiceImplv4.php instead use the OAuth PHP extension.
    I want to make an web service to connect my SugarCRM with other applications, any suggestion?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Self-Service Portal for SugarCRM CE 6.5 and above
    By Rustin Phares in forum General Discussion
    Replies: 7
    Last Post: 2013-08-05, 03:59 PM
  2. Is the SugarCRM Web Service really that slow?
    By timothyp in forum General Discussion
    Replies: 15
    Last Post: 2010-12-15, 05:37 PM
  3. Replies: 0
    Last Post: 2009-02-18, 09:16 AM
  4. Replies: 1
    Last Post: 2009-02-06, 09:53 PM
  5. Using SugarCRM for cutomer service chat?
    By JimFitz in forum General Discussion
    Replies: 1
    Last Post: 2007-07-03, 11:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •