Forum

Thread tagged as: Api, Members

Calling information from another App

I am creating an orders app and I want to get information from the official Members app. I have tried the following code below but it doesn't work. The code is within the edit.post.php within the modes folder of my app.

$API = new PerchAPI(1.0, 'perch_members');
$Members = new PerchMembers_Members($API);
$Member = $Members->find($account_id);

Thanks

Daniel Ruffle

Daniel Ruffle 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How does it fail?

The script just stops running when it hits that point. Do I need to reference the perch runtime in there?

Drew McLellan

Drew McLellan 2638 points
Perch Support

You'll need to have included the PerchMembers_Members classes.

Also sounds like you need to turn on display of error messages in PHP - that will help a lot when developing.