• Resolved marekgorski

    (@marekgorski)


    Got the form data submitting via oAuth into HubSpot, however can’t get cron access (e.g. can’t use the gravityforms-hubspot/library/cron.php option) so want to switch to the API and got the HubSpot API Key entered it and Saved Settings then gave me a green tick next to the HubSpot API Key so I understood that to all be connected, however no data goes into HubSpot.

    If I switch over to oAuth it works straight away.

    Any and all help appreciated! Thank you!

    https://www.ads-software.com/plugins/gravityforms-hubspot/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Chris Lagasse

    (@soben)

    Hey Marek,

    Both oAuth and API Key use the exact same cURL script, just with two different sets of tokens, basically… We use API Key on all of our projects except one: Certain HubSpot accounts don’t allow the use of API Keys.

    Are you using a Professional or Enterprise HubSpot account?

    Thread Starter marekgorski

    (@marekgorski)

    Hi Soben!
    Thanks for the reply, from what I understand we have a Professional account which claims to allow us to use the HubSpot API. How could I find out the actual error that is generated when the data doesn’t go in?

    Plugin Author Chris Lagasse

    (@soben)

    The error would probably be coming from the /library/hubspot/class.forms.php file, particularly around line 40

    catch(HubSpot_Exception $e){
    	print_r("Unable to submit form: ".$e);
    }

    Make sure your PHP errors are being printed out. I’ll try to do some more extensive testing on this, but I have not had any issues with either format :-\

    Plugin Author Chris Lagasse

    (@soben)

    Hey marek,

    Hoping this problem has been completely resolved for you. All of my future testing all appears to be working great. oAuth is now 100% up and running where you should never need to use the API Key (though I’ve kept it there as an option).

    Also, with the release of v2.0 some other issues have been solved, and as a whole the plugin is running much smoother.

    I have also provided a much more extensive debug log if you’re interested in using it. Put the following code in your functions.php or your wp-config.php

    define('GF_HUBSPOT_DEBUG', true);

    After that, you can find the error log here:

    /path/to/wordpress/wp-content/uploads/gf-hubspot.log

    Thread Starter marekgorski

    (@marekgorski)

    Thanks Soben! Appreciate the follow up and congratulations on getting it all working 100%

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘oAuth working but API not sending data’ is closed to new replies.