Buying Need Help with Google Apps Marketplace Integration

Discussion in 'Programming' started by ColorWP.com, Aug 13, 2013.

  1. #1
    My client is a SAAS software provider. He has an app available in the Google Apps Marketplace. The customer may add the Marketplace app to his domain. The Marketplace listing provides us with a consumer key and consumer secret, which we have integrated in our SAAS product.

    The customers that have installed our app should theoretically be able to synchronize the users from THEIR Google Apps domain to his SAAS installation using the consumer key/secret pair we have from the Marketplace listing and configured in the SAAS product.

    We are currently using the following, but it does not work. The API call returns "401 Unknown authorization header".

    require_once $gapps_vendors_dir . '/Zend/Oauth/Consumer.php';
    require_once $gapps_vendors_dir . '/Zend/Gdata/Gapps/UserEntry.php';
    require_once $gapps_vendors_dir . '/Zend/Gdata/Gapps/UserFeed.php';
    require_once $gapps_vendors_dir . '/Zend/Gdata/Gapps/UserQuery.php';
    
    $options = array(
        'requestScheme' => Zend_Oauth::REQUEST_SCHEME_HEADER,
        'version' => '1.0',
        'signatureMethod' => 'HMAC-SHA1',
        'consumerKey' => $CONSUMER_KEY,
        'consumerSecret' => $CONSUMER_SECRET,
    );
    
    
    $token = new Zend_Oauth_Token_Access();
    $httpClient = $token->getHttpClient($options);
    
    $gdata = new Zend_Gdata_Gapps($httpClient, $clientsDomain);
    
    $feed = $gdata->retrieveAllUsers();
    PHP:
    Anyone who helps me get it working will be paid $20.

    I should note that we have plenty of customers at the moment, so we can not make them switch to oAuth2 since it requires registering the project in the Google API Console, which is a huge inconvenience and requires a redirect URL (besides the consumer key/secret). We need to get it working in the current configuration - using just the customer key and secret.
     
    ColorWP.com, Aug 13, 2013 IP
  2. sumitra.koul

    sumitra.koul Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I am interested...
    Skype: krishikasolutions
     
    sumitra.koul, Aug 19, 2013 IP
  3. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,121
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    As Seller:
    100% - 3
    As Buyer:
    100% - 0
    #3
    The job has already been completed. Sorry.
     
    ColorWP.com, Aug 21, 2013 IP