Comments (12)
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.
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.
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.
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.
How do I use the API Tester?
from api-library.
Yes, when I try to authorize with the API tester, OAuth1a labels become green (I suppose that means authorization was successful).
from api-library.
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.
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.
I think this should be put in the readme, or else a better approach must be found for OAuth1a.
from api-library.
- You have to log in once to get the access token. Even in the API tester.
- If you can use the OAuth1a working API tester, it means that it is working, right?
from api-library.
Please check #60 if it solves your issue.
from api-library.
The docs are really poor, the samples just don't work.
from api-library.
Related Issues (20)
- Allow running API library tests against specific `mautic/mautic` PR
- [Feature request] Delete form submission via the Forms API
- Response 401 when creating or editing a segment with filters (when using oauth)
- ERROR: InvalidArgumentException: The template "MauticFormBundle:Field:plugin.recaptcha.html.php" does not exist
- What is the array of event type to filter for api GET /contacts/activity?
- Set UTM tags on creating an E-Mail HOT 1
- I get Class 'Mautic\\Auth\\ApiAuth' not found since updated HOT 1
- Usage of newer psr/log (v2 & v3) HOT 3
- Upgrade from 3.0.0 to 3.1.0 issue with psr/log requirement HOT 14
- How to correctly add contact to segment using api-library HOT 1
- Deprecated error on isOauth1 function using php8.1
- Mautic API is not working HOT 2
- How to set the last_active field? And is there any way to set the dateAdded/dateModified/dateIdentified fields? HOT 1
- Deprecated strlen(): Passing null to parameter #1 ($string) of type string is deprecated PHP 8.1.12 HOT 2
- Intermittent 400 errors when attempting token refresh HOT 1
- I have upgraded to Laravel 9 & PHP 8.1 HOT 1
- Mautic API not working with Psr/Log v3 HOT 5
- Can we get a new release soon please HOT 5
- KiCad API Could not connect HOT 1
- Auth API supports for Curl CURLOPT_PROXY option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-library.