Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

Learning platform.api.get

$
0
0

Thanks for the responses. This tutorial lead us down the right path. Here's my working result without all the extra fluff:

$test = $platform['api'];
$get = $test->get;
$thing = $get('mysql/_table');
var_dump($thing);
exit;

I believe we had the roles set correctly, but just for those who are on the same learning curve...this is what I think I know about that:

  1. Make sure you have a role assigned to the service you are trying to use and that under the access tab you select the "script" requester option.
  2. Make sure whatever app api key you are trying to use has that role assigned to it

And since I have your attention and I'm in a sharing mood, may I suggest this DF wiki page?


Viewing all articles
Browse latest Browse all 5027

Trending Articles