Code Monkey home page Code Monkey logo

Comments (12)

escopecz avatar escopecz commented on August 19, 2024

Note the //store access token data however you want comment in the code you posted. That's where you should store the access token and use it in the future API calls. Or is there another problem I don't see?

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

The problem is that I don't get the access token data. Instead, I get the error message invalid_signature (code 401).

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

I did change the line $auth->newAuth($mauticSettings); to $auth = $auth->newAuth($mauticSettings);, which is different from the readme, but when I do it like the readme, I get an exception the method validateAccessToken cannot be found.

from api-library.

escopecz avatar escopecz commented on August 19, 2024

Double-check that your keys are properly copy-pasted form your Mautic. It seems they are not. If you test it with the API Tester, does the OAuth1a connection work?

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

How do I use the API Tester?

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

Yes, when I try to authorize with the API tester, OAuth1a labels become green (I suppose that means authorization was successful).

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

Why does the tester work without login? I'd like to be able to use like the tester, but I'm always asked to log into Mautic.

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

Apparently there is no way to get the token data using OAuth1a. I had to print out the ApiAuth object to get at the tokens. Once I got the tokens, I got it to work.

from api-library.

vectorbross avatar vectorbross commented on August 19, 2024

I think this should be put in the readme, or else a better approach must be found for OAuth1a.

from api-library.

escopecz avatar escopecz commented on August 19, 2024
  1. You have to log in once to get the access token. Even in the API tester.
  2. If you can use the OAuth1a working API tester, it means that it is working, right?

from api-library.

escopecz avatar escopecz commented on August 19, 2024

Please check #60 if it solves your issue.

from api-library.

TiagoGouvea avatar TiagoGouvea commented on August 19, 2024

The docs are really poor, the samples just don't work.

from api-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.