luk4s / mautic-rails

Mautic ruby client / wrapper
MIT License
23 stars 23 forks source link

A refresh_token is not available #11

Closed petebytes closed 4 years ago

petebytes commented 4 years ago

After adding a new connection I click update and see the message 'Mautic connection updated'

When I look at the connection m = Mautic::Connection.last It shows the token and refresh_token are nil

When I try to access API, error 'A refresh_token is not available'

luk4s commented 4 years ago

Did you connect it with Mautic? (In mautic > menu > API credentials > oauth2 ..) Then you need handshake between mautic and your app (= button at the end of connection line "Authorize")

see: https://github.com/luk4s/mautic-rails#create-mautic-connection

petebytes commented 4 years ago

@luk4s thanks for the quick response. I guess I am unsure about handshake.

I created the credentials in Mautic image

And created the Connection on the Rails side image

Mautic is version 2.15.2

What am I missing?

petebytes commented 4 years ago

Found the authorize button :) Thanks for your help. image