Mautic Community Forums

Mautic Api library tutorial needed

Is there any step by step tutorial for mautic api library

How is the following code works??



$leadApi = MauticApi::getContext(“leads”, $auth, $baseUrl.’/api/’);



$fields = $leadApi->getFieldList();



I want to use mautic api to retrieve or insert user data

Is there any step by step tutorial for mautic api library
How is the following code works??

$leadApi = MauticApi::getContext(“leads”, $auth, $baseUrl.’/api/’);

$fields = $leadApi->getFieldList();

I want to use mautic api to retrieve or insert user data

How to do the correct callback for mautic api authorization?

[quote]I tried generate the api url to get access token, the url works in PostMan.
I have no idea how MauticApi::getContext(); works…[/quote]

I am also looking for a step by step Mautic API tutorial.

I have the authorization working (copied from somewhere on the web), but I cannot make any call to retrieve data. I am really stuck (being a novice programmer…)

Thanks,
Erwin