Retrieving Account Data - GiullianoRossi1987/lpgp-api GitHub Wiki

Retrieve data about the client's proprietary

To access those data you don't actually need a root client, you can access it with a normal client, but if you need to automate changes on the client's proprietary profile then you must use a root client.

Accessing the URL

The main URL to the API page that return these data is https://api.lpgpofficial.com/profile/get.php, and the parameters of the request are just the obligatory parameters for the API, it'll load the client in and get the data about his proprietary. So the only thing you have to do to receive the profile data using the API is change the URL of the request and keep the default obligatory parameters. Just like this:

$.get({ url: "https://api.lpgpofficial.com/profile/get.php", data: {"client-key": "<your-client-key-here", "lpgp_mode": "t || f"} });

The data itself

The proprietary data is returned in a JSON that reproduces the database table scheme, like the table:

Field Type Description Unique
cd_proprietary integer The primary unique key reference of the proprietary in the database Yes
nm_proprietary string The proprietary's name, use for the login and other methods inside the site Yes
vl_email string The proprietary's e-mail address, it also can be No
vl_password string The encoded proprietary's password