[h]SEEKING[/h]
I am seeking a clear set of step-by-step instructions on how to setup MAUTIC API on a shared server that does not support, or allow to be installed, the
tool.
* Should my Mautic install directory adhere to a specific name? --
I am using:
* Should the Mautic API be installed in a specific location? --
I am using:
* What files (configuration or otherwise) do I need alter, create, comment or delete?
* And if there are file edits/creations required, what must be added, changed, deleted, commented or created?
[h]BACKGROUND[/h]
I have been working on getting MAUTIC API to work on a Shared Server, where the hosting provider does not allow
to be installed. I have followed all the documentation I can find on the GIT site for MAUTIC API, and read through a series of posts since 2015. There are nuggets of information I have applied, and each gets me a bit closer, but since I do not understand the Mautic architecture well enough, I am a bit lost on where to look, and how to complete this installation to the point that it will function, as I am sure it does for
installs.
[h]CURRENT STATUS (as of June 6, 2017)[/h]
I will spare you the series of edits, tests and trials that brought me to my
Current Status, which is:
* I installed the
PHP API Library from:
https://github.com/mautic/api-library
* I created the
file as directed and placed it in the
directory.
* I can load the
form.
* I can
Authenticate using OAuth1a via the
form.
* I
CANNOT get a GET statement to process.
Code:
FORM FIELDS
/api/ contacts / OAuth1a GET
KEY = id
VALUE = 1
[h]ENVIRONMENT[/h]
* PHP Version 7.0.18
* Mautic 2.8.2 (Stable)
* Mautic API 2.6.0
[h]...app/config/security.php API Settings[/h]
Code:
'api' => [
'pattern' => '^/api',
'fos_oauth' => true,
'bazinga_oauth' => true,
'mautic_plugin_auth' => true,
'stateless' => true,
'http_basic' => '%mautic.api_enable_basic_auth%',
],
[h]THE ERROR[/h]
Code:
Fatal error: Uncaught Error: Class 'MauticAuthApiAuth' not found in /api/apitester/index.php:142 Stack trace: #0 {main} thrown in /api/apitester/index.php on line 142
[h]...apitester/index.php LINE 142[/h]
Code:
142: $oauthObject = MauticAuthApiAuth::initiate(
143: array(
144: 'baseUrl' => $oauthBaseUrl,
145: 'version' => $auth,
146: 'clientKey' => ($auth == 'OAuth1a') ? $consumerKey : $clientKey,
147: 'clientSecret' => ($auth == 'OAuth1a') ? $consumerSecret : $clientSecret,
148: 'callback' => $callback,
149: 'scope' => $scope
150: )
151: );
[h]CLOSING COMMENT[/h]
While I was able to resolve the other
and
statements, this error has me baffled. Or I am at my wits end and decided to finally reach out for help -- either way, a concise instruction set for Shared Server Non-Composer environments would be great to have for two reasons.
Quote:
1. So I can complete the installation and move on to the business of why I installed the Mautic API.
2. To help others have an easier time with their installs for a similar hosting environment (aka: non-composer).
Thank you in advance.
Quote:
I was not sure if this should be in DOCS or SUPPORT.
It makes sense to start in SUPPORT and move it later (once resolved) to DOCS.