Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

PHP scripting to POST to external MySQL for new registrations

$
0
0

@charliefinale wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles