# URGENT If you update and are using Thrive API integration

**URL:** <https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053>\
**Category:** General Discussion\
**Created:** [August 25, 2016, 5:20pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053 "2016-08-25T17:20:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [August 25, 2016, 5:20pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/1 "2016-08-25T17:20:28Z")

</div>

If you update to 2.1.1 and are using the Thrive API integration from Thrive Leads or Thrive Content Builder, AND you are using oAuth1, your connection will break. I have reported it to Thrive via their support forums.  
  
  
  
What you can do  
  
Delete your oauth 1 connection, and create one for oauth 2. That is all you can do until Thrive can modify the API integration.

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [August 25, 2016, 5:20pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/2 "2016-08-25T17:20:28Z")

</div>

If you update to 2.1.1 and are using the Thrive API integration from Thrive Leads or Thrive Content Builder, AND you are using oAuth1, your connection will break. I have reported it to Thrive via their support forums.

What you can do  
Delete your oauth 1 connection, and create one for oauth 2. That is all you can do until Thrive can modify the API integration.

---

<div class="post-metadata">

**Author:** ![sawvp](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@sawvp](https://forum.mautic.org/u/sawvp)\
**Post date:** [August 28, 2016, 4:50pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/3 "2016-08-28T16:50:08Z")

</div>

Hi,  
I discovered this as well. I would like to use oAuth2, but I can’t figure out what exactly belongs in the redirect uri box when I try to set up the oAuth2 at Mautic to get the keys.

I’m sure it sounds stupid, but what exactly goes in that box?

Thanks for the message, btw. Thought I was going crazy.

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [August 28, 2016, 5:43pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/4 "2016-08-28T17:43:07Z")

</div>

You can enter anything there. It’s not used!!

---

<div class="post-metadata">

**Author:** ![pendeen560](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@pendeen560](https://forum.mautic.org/u/pendeen560)\
**Post date:** [August 31, 2016, 10:27am UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/5 "2016-08-31T10:27:59Z")

</div>

I think it is used … I get this error message

[Click Here](http://screencast.com/t/2xnNt9nqiMlu)

Any ideas what to put in the redirect uri box?

---

<div class="post-metadata">

**Author:** ![pendeen560](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@pendeen560](https://forum.mautic.org/u/pendeen560)\
**Post date:** [August 31, 2016, 10:59am UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/6 "2016-08-31T10:59:54Z")

</div>

I worked it out

You just put the url where the capture form is located 🙂

---

<div class="post-metadata">

**Author:** ![alanp](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alanp](https://forum.mautic.org/u/alanp)\
**Post date:** [September 17, 2016, 8:28pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/7 "2016-09-17T20:28:34Z")

</div>

@andersonid, this information may be wrong since I’m still in the setup phase and haven’t yet tested. BUT… for what it’s worth, I simply have the base URLs for my site (www and non-www versions) listed in the Redirect URI field.

Name: Thrive Leads  
Redirect URI: [https://www.example.com](https://www.example.com),[https://example.com](https://example.com)

When I click to save that information the OAuth2 information is generated. When I plug that into Thrive I have:

API URL: [https://mautic.example.com](https://mautic.example.com)  
Public & Secret Key information pasted from Mautic  
Authentication Type is OAuth2 (obviously)

I click the CONNECT button and it links up without issue.

As mentioned, I haven’t yet tested that to confirm that it works so YMMV.

---

<div class="post-metadata">

**Author:** ![tpsmktg](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@tpsmktg](https://forum.mautic.org/u/tpsmktg)\
**Post date:** [September 17, 2016, 8:49pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/8 "2016-09-17T20:49:05Z")

</div>

Both Oauth1 and Oauth2 don’t work for me. I have a support request in at Thrive, and they say they’re working on it. They also said part of the problem is on the Mautic side.

Guess I’m gonna have to use HTML after all

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [September 17, 2016, 11:11pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/9 "2016-09-17T23:11:04Z")

</div>

Well Oauth2 works flawlessly, that I can guarantee!

---

<div class="post-metadata">

**Author:** ![andersonid](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@andersonid](https://forum.mautic.org/u/andersonid)\
**Post date:** [September 16, 2016, 11:55am UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/10 "2016-09-16T11:55:36Z")

</div>

[quote=15212:@pendeen560]I worked it out

You just put the url where the capture form is located :)[/quote]

I tryed that, but can’t get working… can you give me a way to figure out??

---

<div class="post-metadata">

**Author:** ![angelsguitar](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@angelsguitar](https://forum.mautic.org/u/angelsguitar)\
**Post date:** [September 6, 2016, 11:34am UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/11 "2016-09-06T11:34:43Z")

</div>

Thanks Adam for letting us know about this. I was trying to connect Mautic to my blog using oAuth1 but the connection always failed. Setting up as oAuth2 worked.

Any news from Thrive on this matter? Please keep us posted. I’m also subscribed to your post on Thrive’s support forum.

I do hope they fix this soon. Having to reauthenticate the connection after a while is highly impractical. Itś very easy to forget and loose subscribers on the process.

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [September 6, 2016, 3:30pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/12 "2016-09-06T15:30:21Z")

</div>

I think that they are not going to be able to fix oAuth1. So oAuth 2 is the only way to get it to work.

Its not a problem though, in Mautic you can set the expiration ver high. So I set mine to 999 days, witch is just under 3 years. That should be long enough.

---

<div class="post-metadata">

**Author:** ![angelsguitar](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@angelsguitar](https://forum.mautic.org/u/angelsguitar)\
**Post date:** [September 6, 2016, 10:57pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/13 "2016-09-06T22:57:08Z")

</div>

Thanks for your quick reply, Adam. Funny, that’s exactly the number of days I used 😛

See you around. Btw, I’m subscribed to your YouTube channel. Great Mautic tutorials.

---

<div class="post-metadata">

**Author:** ![imautic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@imautic](https://forum.mautic.org/u/imautic)\
**Post date:** [December 8, 2016, 9:23pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/14 "2016-12-08T21:23:09Z")

</div>

I have followed the exact steps below, why am I always getting a “page not found” error when trying to connect?

[quote=15723:@alanp]@andersonid, this information may be wrong since I’m still in the setup phase and haven’t yet tested. BUT… for what it’s worth, I simply have the base URLs for my site (www and non-www versions) listed in the Redirect URI field.

Name: Thrive Leads  
Redirect URI: [https://www.example.com](https://www.example.com),[https://example.com](https://example.com)

When I click to save that information the OAuth2 information is generated. When I plug that into Thrive I have:

API URL: [https://mautic.example.com](https://mautic.example.com)  
Public & Secret Key information pasted from Mautic  
Authentication Type is OAuth2 (obviously)

I click the CONNECT button and it links up without issue.

As mentioned, I haven’t yet tested that to confirm that it works so YMMV.[/quote]

---

<div class="post-metadata">

**Author:** ![casper](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@casper](https://forum.mautic.org/u/casper)\
**Post date:** [December 17, 2016, 9:54pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/15 "2016-12-17T21:54:11Z")

</div>

still can’t intergrate with thrive leads,  
any recent ideas on how to go about it

thanks

---

<div class="post-metadata">

**Author:** ![imautic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@imautic](https://forum.mautic.org/u/imautic)\
**Post date:** [December 17, 2016, 11:01pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/16 "2016-12-17T23:01:08Z")

</div>

Can’t integrate how? What is the error message?

[quote=17989:@casper]still can’t intergrate with thrive leads,  
any recent ideas on how to go about it

thanks[/quote]

---

<div class="post-metadata">

**Author:** ![senol](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@senol](https://forum.mautic.org/u/senol)\
**Post date:** [January 4, 2017, 8:58pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/17 "2017-01-04T20:58:14Z")

</div>

In Mautic (BV2.4.0) I have set API to  
API Enabled YES  
Enable HTTP Basic AUTH – YES  
Acces token in Lifetime 60 minutes  
Refresh token lifetime 14days

Api Credentials OATH2:  
Name: ThriveLeads  
Redirect URL: [https://www.xxxx.nu](https://www.xxxx.nu),[https://xxxx.nu](https://xxxx.nu)

That gives me the API Keys.

I use those credentials in Thrive Leads:  
with the base url of Mautic as API url.  
then off course fill in public and secret key, with OATH2

I get an error saying: 404 I’M SORRY COULDN’T FIND THE PAGE YOU WERE LOOKING FOR  
(it’s on Mautic side)

only error message:  
[2017-01-04 21:47:51] mautic.ERROR: Deprecation: SymfonyComponentDependencyInjectionDefinition::setFactoryService(doctrine) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. - in file /var/www/xxxxxx/vendor/symfony/dependency-injection/Definition.php - at line 204 [] []

Please help.

---

<div class="post-metadata">

**Author:** ![senol](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@senol](https://forum.mautic.org/u/senol)\
**Post date:** [January 4, 2017, 10:28pm UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/18 "2017-01-04T22:28:43Z")

</div>

@MxyzptlkFishStix  
I don’t see where to get the error log from the wordpress site

I turned off Enable Basic HTTP.  
Deleted API’s and made a new one.

Now I get the Mautic would like to connect site.  
But when I click I get a HTTP 500 Error.  
This is in Mautic Log:  
[2017-01-04 23:26:08] mautic.CRITICAL: Uncaught PHP Exception OAuth2OAuth2ServerException: “invalid\_request” at /var/www/xxxxxx/vendor/friendsofsymfony/oauth2-php/lib/OAuth2.php line 1113 {“exception”:"[object] (OAuth2\OAuth2ServerException(code: 0): invalid\_request at /var/www/xxxxxxxx/vendor/friendsofsymfony/oauth2-php/lib/OAuth2.php:1113)"} [

Also this url:  
[https://xxxxx/oauth/v2/authorize?client\_id=2\_2tc7a2tdmigw08scgc0gcck8gsokcccossg8sg8ow0wc8coso0&redirect\_uri=https%3A%2F%2FWEBSITE.nu%2Fwp-admin%2Fadmin.php%3Fpage%3Dtve\_dash\_api\_connect%26api%3Dmautic&state=fb758e65314211eda5d20c9c0e94f559&scope=&response\_type=code](https://xxxxx/oauth/v2/authorize?client_id=2_2tc7a2tdmigw08scgc0gcck8gsokcccossg8sg8ow0wc8coso0&redirect_uri=https%3A%2F%2FWEBSITE.nu%2Fwp-admin%2Fadmin.php%3Fpage%3Dtve_dash_api_connect%26api%3Dmautic&state=fb758e65314211eda5d20c9c0e94f559&scope=&response_type=code)

---

<div class="post-metadata">

**Author:** ![senol](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@senol](https://forum.mautic.org/u/senol)\
**Post date:** [January 18, 2017, 11:48am UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/19 "2017-01-18T11:48:56Z")

</div>

The following happened:  
With help of my website hosting provider we added the following code to .htaccess

php\_flag display\_errors on

This provided the 500-error code which I then gave back to them.  
In my case it gave a Fatal error with “‘cURL error 35: SSL connect error’ in ”

My hosting provider could tell there was a conflict in curl-versions between both servers. They updated their curl versions.

This has helped! because I now have a working OATH1 api connection in ThriveLeads with Mautic.

---

<div class="post-metadata">

**Author:** ![Slbailey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/slbailey/32/78_2.png) [@Slbailey](https://forum.mautic.org/u/Slbailey)\
**Post date:** [April 10, 2017, 10:46am UTC](https://forum.mautic.org/t/urgent-if-you-update-and-are-using-thrive-api-integration/5053/20 "2017-04-10T10:46:56Z")

</div>

What version of curl should be installed on the server? Mine is running 7.19.7

I also read that TL isn’t going to use basic auth? What if I don’t have my mautic installation https enabled?
