Difference between revisions of "Integration:api"
From PrometheusIPN Wiki
(→getGoal Example) |
(→assignPackage Example) |
||
| Line 36: | Line 36: | ||
NO | NO | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
// Display an error if there is any | // Display an error if there is any | ||
if($array['error'] == 1){ | if($array['error'] == 1){ | ||
Revision as of 21:18, 26 August 2016
Dick
NO
List of actions
| Action | getGoal | assignPackage | addCredits | getPackages |
|---|---|---|---|---|
| Hash | No | Yes | Yes | Yes |
| Properties | None | steamid, package | steamid, amount | None |
| Returns | error, cur, total, goal | error, msg | error, msg | error, packages |
Examples
NO
// Display an error if there is any
if($array['error'] == 1){
die($array['msg']);
}
// Display success message
if($array['error'] == 0){
echo($array['msg']);
}
?>