Hi All
I have DFV2 connected to an external MySQL as a service so I can do a lot with API calls. But I want to add the user account both internally (so as to get the security features of DF) and externally so I can add more fields such as profile and chat logs. The solution I believe is a post POST script on user registration that adds the user to the external MySQL. I would like to do it in PHP.
According to https://github.com/dreamfactorysoftware/dsp-core/wiki/API-Access-via-Scripts the format is this
platform.api.get( âservice[/resource[/resource_id]]â[, payload] );
But how can I turn that into a PHP script that adds the username , user.id and other data to my external db? All the examples are in javascript. What does the payload look like for adding a record? What is the resource_id? Any help most gratefully received
Charlie