关于Mautic的一个问题,我想使用Mautic API自动下载数据。从手册中,我已经用PHP编写了一个程序,将Mautic API和回调连接到localhost。代码可以正常工作,并且可以正确连接到Mautic API。但是如何获取回调URL.I中包含的访问令牌,我需要为下一步接收访问令牌数据。
我的php代码:
$settings = array(
'baseUrl' => 'http://54.249.127.11',// Base URL of the Mautic instance
'version' => 'OAuth1a', // i selected OAuth1a.
'clientKey' => '199y8rmdeh6sck8g8o4okXXXXXXXX',//Consumer key from Mautic
'clientSecret' => '5705dvzynzksww4g8s4o0XXXXXXXX',//Client/Consumer secret key from Mautic
'callback' => 'http://127.0.0.1'// localhost as my Callback URI);发布于 2017-07-12 22:31:02
https://www.mautic.org/blog/developer/how-to-use-the-mautic-rest-api/
这个链接应该会完全回答你的问题。如果你不同意,你需要更清楚地解释你困惑的是什么。
您可能还想阅读以下内容:What exactly is OAuth (Open Authorization)?
https://stackoverflow.com/questions/45053281
复制相似问题