<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.prometheusipn.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=198.41.243.113&amp;*</id>
		<title>PrometheusIPN Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.prometheusipn.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=198.41.243.113&amp;*"/>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Special:Contributions/198.41.243.113"/>
		<updated>2026-05-04T13:41:26Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=123</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=123"/>
				<updated>2015-08-01T01:48:42Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
'''getGoalExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=122</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=122"/>
				<updated>2015-08-01T01:41:48Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
'''getGoalExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample2.php'''&lt;br /&gt;
Give a package only if the user has a specific key&lt;br /&gt;
&lt;br /&gt;
URL: http://yourprometheus.com/assignPackageExample2.php?key=2839123yb293y8239y1231b9y32&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
	SESSION_START();&lt;br /&gt;
	if(isset($_SESSION['uid')){&lt;br /&gt;
		// Replace this&lt;br /&gt;
		$SUPERSECRETKEY = '2839123yb293y8239y1231b9y32';&lt;br /&gt;
		$api_hash = ''; // API hash&lt;br /&gt;
		$package = 0; // Package ID&lt;br /&gt;
                $url = 'http://yourprometheus.com'; // Your site url, including sub directory. But no trailing /&lt;br /&gt;
		&lt;br /&gt;
		// DO NOT EDIT PAST THIS LINE //&lt;br /&gt;
		if($_GET['key'] == $SUPERSECRETKEY){&lt;br /&gt;
			// Replace everything in uppercase letters with your own information&lt;br /&gt;
			$source = $url . '/api.php?hash='.$api_hash.'&amp;amp;action=assignPackage&amp;amp;package='.$package.'&amp;amp;steamid=' . $_SESSION['uid'];&lt;br /&gt;
			$ch = curl_init();&lt;br /&gt;
			curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
			$data = curl_exec($ch);&lt;br /&gt;
			$error = curl_error($ch);&lt;br /&gt;
			curl_close ($ch);&lt;br /&gt;
			if($data === false) {&lt;br /&gt;
				// Display an error if there is any&lt;br /&gt;
				die('Curl error: ' . $error);&lt;br /&gt;
			}&lt;br /&gt;
			// Decode the data response&lt;br /&gt;
			$array = json_decode($data, true);&lt;br /&gt;
			// Display an error if there is any&lt;br /&gt;
			if($array['error'] == 1){&lt;br /&gt;
				die($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
			// Display success message&lt;br /&gt;
			if($array['error'] == 0){&lt;br /&gt;
				echo($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
		} else { echo 'Secret key is invalid'; }&lt;br /&gt;
	} else {&lt;br /&gt;
		echo 'Not logged in. &amp;lt;a href=&amp;quot;.&amp;quot;&amp;gt;Go back&amp;lt;/a&amp;gt;';&lt;br /&gt;
	}&lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=121</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=121"/>
				<updated>2015-08-01T01:41:25Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
'''getGoalExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample2.php'''&lt;br /&gt;
Give a package only if the user has a specific key&lt;br /&gt;
&lt;br /&gt;
URL: http://yourprometheus.com/assignPackageExample2.php?key=2839123yb293y8239y1231b9y32&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
	SESSION_START();&lt;br /&gt;
	if(isset($_SESSION['uid')){&lt;br /&gt;
		// Replace this&lt;br /&gt;
		$SUPERSECRETKEY = '2839123yb293y8239y1231b9y32';&lt;br /&gt;
		$api_hash = ''; // API hash&lt;br /&gt;
		$package = 0; // Package ID&lt;br /&gt;
        $url = 'http://yourprometheus.com'; // Your site url, including sub directory. But no trailing /&lt;br /&gt;
		&lt;br /&gt;
		// DO NOT EDIT PAST THIS LINE //&lt;br /&gt;
		if($_GET['key'] == $SUPERSECRETKEY){&lt;br /&gt;
			// Replace everything in uppercase letters with your own information&lt;br /&gt;
			$source = $url . '/api.php?hash='.$api_hash.'&amp;amp;action=assignPackage&amp;amp;package='.$package.'&amp;amp;steamid=' . $_SESSION['uid'];&lt;br /&gt;
			$ch = curl_init();&lt;br /&gt;
			curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
			$data = curl_exec($ch);&lt;br /&gt;
			$error = curl_error($ch);&lt;br /&gt;
			curl_close ($ch);&lt;br /&gt;
			if($data === false) {&lt;br /&gt;
				// Display an error if there is any&lt;br /&gt;
				die('Curl error: ' . $error);&lt;br /&gt;
			}&lt;br /&gt;
			// Decode the data response&lt;br /&gt;
			$array = json_decode($data, true);&lt;br /&gt;
			// Display an error if there is any&lt;br /&gt;
			if($array['error'] == 1){&lt;br /&gt;
				die($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
			// Display success message&lt;br /&gt;
			if($array['error'] == 0){&lt;br /&gt;
				echo($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
		} else { echo 'Secret key is invalid'; }&lt;br /&gt;
	} else {&lt;br /&gt;
		echo 'Not logged in. &amp;lt;a href=&amp;quot;.&amp;quot;&amp;gt;Go back&amp;lt;/a&amp;gt;'&lt;br /&gt;
	}&lt;br /&gt;
?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=120</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=120"/>
				<updated>2015-08-01T01:38:02Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
'''getGoalExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample2.php'''&lt;br /&gt;
Give a package only if the user has a specific key&lt;br /&gt;
&lt;br /&gt;
URL: http://yourprometheus.com/assignPackageExample2.php?key=2839123yb293y8239y1231b9y32&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code php&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
	SESSION_START();&lt;br /&gt;
	if(isset($_SESSION['uid')){&lt;br /&gt;
		// Replace this&lt;br /&gt;
		$SUPERSECRETKEY = '2839123yb293y8239y1231b9y32';&lt;br /&gt;
		$api_hash = ''; // API hash&lt;br /&gt;
		$package = 0; // Package ID&lt;br /&gt;
        $url = 'http://yourprometheus.com'; // Your site url, including sub directory. But no trailing /&lt;br /&gt;
		&lt;br /&gt;
		// DO NOT EDIT PAST THIS LINE //&lt;br /&gt;
		if($_GET['key'] == $SUPERSECRETKEY){&lt;br /&gt;
			// Replace everything in uppercase letters with your own information&lt;br /&gt;
			$source = $url . '/api.php?hash='.$api_hash.'&amp;amp;action=assignPackage&amp;amp;package='.$package.'&amp;amp;steamid=' . $_SESSION['uid'];&lt;br /&gt;
			$ch = curl_init();&lt;br /&gt;
			curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
			$data = curl_exec($ch);&lt;br /&gt;
			$error = curl_error($ch);&lt;br /&gt;
			curl_close ($ch);&lt;br /&gt;
			if($data === false) {&lt;br /&gt;
				// Display an error if there is any&lt;br /&gt;
				die('Curl error: ' . $error);&lt;br /&gt;
			}&lt;br /&gt;
			// Decode the data response&lt;br /&gt;
			$array = json_decode($data, true);&lt;br /&gt;
			// Display an error if there is any&lt;br /&gt;
			if($array['error'] == 1){&lt;br /&gt;
				die($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
			// Display success message&lt;br /&gt;
			if($array['error'] == 0){&lt;br /&gt;
				echo($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
		} else { echo 'Secret key is invalid'; }&lt;br /&gt;
	} else {&lt;br /&gt;
		echo 'Not logged in. &amp;lt;a href=&amp;quot;.&amp;quot;&amp;gt;Go back&amp;lt;/a&amp;gt;'&lt;br /&gt;
	}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=119</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=119"/>
				<updated>2015-08-01T01:36:53Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
'''getGoalExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample2.php'''&lt;br /&gt;
Give a package only if the user has a specific key&lt;br /&gt;
&lt;br /&gt;
URL: http://yourprometheus.com/assignPackageExample2.php?key=2839123yb293y8239y1231b9y32&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
   SESSION_START();&lt;br /&gt;
   if(isset($_SESSION['uid')){&lt;br /&gt;
	// Replace this&lt;br /&gt;
	$SUPERSECRETKEY = '2839123yb293y8239y1231b9y32';&lt;br /&gt;
	$api_hash = ''; // API hash&lt;br /&gt;
	$package = 0; // Package ID&lt;br /&gt;
			$url = 'http://yourprometheus.com'; // Your site url, including sub directory. But no trailing /&lt;br /&gt;
	&lt;br /&gt;
	// DO NOT EDIT PAST THIS LINE //&lt;br /&gt;
	if($_GET['key'] == $SUPERSECRETKEY){&lt;br /&gt;
		// Replace everything in uppercase letters with your own information&lt;br /&gt;
		$source = $url . '/api.php?hash='.$api_hash.'&amp;amp;action=assignPackage&amp;amp;package='.$package.'&amp;amp;steamid=' . $_SESSION['uid'];&lt;br /&gt;
		$ch = curl_init();&lt;br /&gt;
		curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
		curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
		$data = curl_exec($ch);&lt;br /&gt;
		$error = curl_error($ch);&lt;br /&gt;
		curl_close ($ch);&lt;br /&gt;
		if($data === false) {&lt;br /&gt;
			// Display an error if there is any&lt;br /&gt;
			die('Curl error: ' . $error);&lt;br /&gt;
		}&lt;br /&gt;
		// Decode the data response&lt;br /&gt;
		$array = json_decode($data, true);&lt;br /&gt;
		// Display an error if there is any&lt;br /&gt;
		if($array['error'] == 1){&lt;br /&gt;
			die($array['msg']);&lt;br /&gt;
		}&lt;br /&gt;
		// Display success message&lt;br /&gt;
		if($array['error'] == 0){&lt;br /&gt;
			echo($array['msg']);&lt;br /&gt;
		}&lt;br /&gt;
	} else { echo 'Secret key is invalid'; }&lt;br /&gt;
    } else {&lt;br /&gt;
	echo 'Not logged in. &amp;lt;a href=&amp;quot;.&amp;quot;&amp;gt;Go back&amp;lt;/a&amp;gt;'&lt;br /&gt;
    }&lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=118</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=118"/>
				<updated>2015-08-01T01:35:57Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
'''getGoalExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample.php'''&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''assignPackageExample2.php'''&lt;br /&gt;
Give a package only if the user has a specific key&lt;br /&gt;
&lt;br /&gt;
URL: http://yourprometheus.com/assignPackageExample2.php?key=2839123yb293y8239y1231b9y32&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
	SESSION_START();&lt;br /&gt;
	if(isset($_SESSION['uid')){&lt;br /&gt;
		// Replace this&lt;br /&gt;
		$SUPERSECRETKEY = '2839123yb293y8239y1231b9y32';&lt;br /&gt;
		$api_hash = ''; // API hash&lt;br /&gt;
		$package = 0; // Package ID&lt;br /&gt;
                $url = 'http://yourprometheus.com'; // Your site url, including sub directory. But no trailing /&lt;br /&gt;
		&lt;br /&gt;
		// DO NOT EDIT PAST THIS LINE //&lt;br /&gt;
		if($_GET['key'] == $SUPERSECRETKEY){&lt;br /&gt;
			// Replace everything in uppercase letters with your own information&lt;br /&gt;
			$source = $url . '/api.php?hash='.$api_hash.'&amp;amp;action=assignPackage&amp;amp;package='.$package.'&amp;amp;steamid=' . $_SESSION['uid'];&lt;br /&gt;
			$ch = curl_init();&lt;br /&gt;
			curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
			curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
			$data = curl_exec($ch);&lt;br /&gt;
			$error = curl_error($ch);&lt;br /&gt;
			curl_close ($ch);&lt;br /&gt;
			if($data === false) {&lt;br /&gt;
				// Display an error if there is any&lt;br /&gt;
				die('Curl error: ' . $error);&lt;br /&gt;
			}&lt;br /&gt;
			// Decode the data response&lt;br /&gt;
			$array = json_decode($data, true);&lt;br /&gt;
			// Display an error if there is any&lt;br /&gt;
			if($array['error'] == 1){&lt;br /&gt;
				die($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
			// Display success message&lt;br /&gt;
			if($array['error'] == 0){&lt;br /&gt;
				echo($array['msg']);&lt;br /&gt;
			}&lt;br /&gt;
		} else { echo 'Secret key is invalid'; }&lt;br /&gt;
	} else {&lt;br /&gt;
		echo 'Not logged in. &amp;lt;a href=&amp;quot;.&amp;quot;&amp;gt;Go back&amp;lt;/a&amp;gt;'&lt;br /&gt;
	}&lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=117</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=117"/>
				<updated>2015-07-31T21:58:02Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api calls&lt;br /&gt;
|-&lt;br /&gt;
!Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
!Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
!Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
!Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
getGoalExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
assignPackageExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=116</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=116"/>
				<updated>2015-07-31T21:57:36Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
  http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Api calls&lt;br /&gt;
|-&lt;br /&gt;
|Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
|Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
getGoalExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
assignPackageExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=115</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=115"/>
				<updated>2015-07-31T21:56:44Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
''http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION''&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Api parameters&lt;br /&gt;
|-&lt;br /&gt;
|Action&lt;br /&gt;
|getGoal&lt;br /&gt;
|assignPackage&lt;br /&gt;
|addCredits&lt;br /&gt;
|-&lt;br /&gt;
|Hash&lt;br /&gt;
|No&lt;br /&gt;
|Yes&lt;br /&gt;
|Yes&lt;br /&gt;
|-&lt;br /&gt;
|Properties&lt;br /&gt;
|None&lt;br /&gt;
|steamid, package&lt;br /&gt;
|steamid, amount&lt;br /&gt;
|-&lt;br /&gt;
|Returns&lt;br /&gt;
|error, cur, total, goal&lt;br /&gt;
|error, msg&lt;br /&gt;
|error, msg&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
getGoalExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
assignPackageExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=114</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=114"/>
				<updated>2015-07-31T21:53:52Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
''http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION''&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
^ Action          ^ Hash ^ Properties          ^ Returns ^&lt;br /&gt;
| getGoal         | No   | None                | error, cur, total, goal   |&lt;br /&gt;
| assignPackage   | Yes  | steamid, package    | error, msg                |&lt;br /&gt;
| addCredits      | Yes  | steamid, amount     | error, msg                |&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
getGoalExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
assignPackageExample.php&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
  ?&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=113</id>
		<title>Integration:api</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Integration:api&amp;diff=113"/>
				<updated>2015-07-31T21:52:55Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: Created page with &amp;quot;====== The API ====== ===== What is this api? ===== An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometh...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== The API ======&lt;br /&gt;
===== What is this api? =====&lt;br /&gt;
An API(Application Program Interface), is a way of communication with a system both internally and externally. With Prometheus this allows you to do the following things currently:&lt;br /&gt;
&lt;br /&gt;
Add a package to a user(Using Steam64 or SteamID)&lt;br /&gt;
Get donation goal info&lt;br /&gt;
&lt;br /&gt;
The API has a few things you can designate:&lt;br /&gt;
&lt;br /&gt;
''hash'' - The hash you generate above if you enable API. This has to be kept a secret. Do not give it to anyone else.&lt;br /&gt;
&lt;br /&gt;
''action'' - The performed action&lt;br /&gt;
&lt;br /&gt;
''steamid'' - The users steamid&lt;br /&gt;
&lt;br /&gt;
''package'' - The package&lt;br /&gt;
&lt;br /&gt;
===== How do I use it? =====&lt;br /&gt;
The API is accessed by typing this into your browser:&lt;br /&gt;
&lt;br /&gt;
''http://yourprometheus.com/api.php?hash=HASH&amp;amp;action=ACTION''&lt;br /&gt;
&lt;br /&gt;
Not all actions require a hash, for instance the getGoal action does not require a hash and can be accessed directly. The API returns the response in **JSON**. It can be securely communicated with using **cURL**.&lt;br /&gt;
&lt;br /&gt;
===== List of actions ===== &lt;br /&gt;
&lt;br /&gt;
^ Action          ^ Hash ^ Properties          ^ Returns ^&lt;br /&gt;
| getGoal         | No   | None                | error, cur, total, goal   |&lt;br /&gt;
| assignPackage   | Yes  | steamid, package    | error, msg                |&lt;br /&gt;
| addCredits      | Yes  | steamid, amount     | error, msg                |&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
==== getGoal Example ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;file php getGoalExample.php&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        $get = file_get_contents('http://marcuz.eu/ipn/api.php?action=getGoal');&lt;br /&gt;
        $array = json_decode($get, true);&lt;br /&gt;
       &lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                $percentage = $array['perc'];&lt;br /&gt;
                $total = $array['total'];&lt;br /&gt;
                $goal = $array['goal'];&lt;br /&gt;
                $currency = $array['cur'];&lt;br /&gt;
               &lt;br /&gt;
                echo '&lt;br /&gt;
                       &amp;lt;b&amp;gt;Goal:&amp;lt;/b&amp;gt; '.$goal.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Received:&amp;lt;/b&amp;gt; '.$total.' '.$currency.'&amp;lt;br&amp;gt;&lt;br /&gt;
                       &amp;lt;b&amp;gt;Percentage:&amp;lt;/b&amp;gt; '.$percentage.'%&lt;br /&gt;
               ';&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== assignPackage Example ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;file php assignPackageExample.php&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
        // Replace everything in uppercase letters with your own information&lt;br /&gt;
        $source = 'http://yourprometheus.com/api.php?hash=YOUR_HASH&amp;amp;action=assignPackage&amp;amp;package=PACKAGE_ID&amp;amp;steamid=STEAM64_OR_STEAMID';&lt;br /&gt;
 &lt;br /&gt;
        $ch = curl_init();&lt;br /&gt;
        curl_setopt($ch, CURLOPT_URL, $source);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
        curl_setopt($ch, CURLOPT_SSLVERSION,4);&lt;br /&gt;
        $data = curl_exec($ch);&lt;br /&gt;
        $error = curl_error($ch);&lt;br /&gt;
        curl_close ($ch);&lt;br /&gt;
               &lt;br /&gt;
        if($data === false) {&lt;br /&gt;
                // Display an error if there is any&lt;br /&gt;
                die('Curl error: ' . $error);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Decode the data response&lt;br /&gt;
        $array = json_decode($data, true);&lt;br /&gt;
       &lt;br /&gt;
        // Display an error if there is any&lt;br /&gt;
        if($array['error'] == 1){&lt;br /&gt;
                die($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
       &lt;br /&gt;
        // Display success message&lt;br /&gt;
        if($array['error'] == 0){&lt;br /&gt;
                echo($array['msg']);&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/file&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Main_Page&amp;diff=112</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Main_Page&amp;diff=112"/>
				<updated>2015-07-31T21:52:39Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{MainSidebar}}&lt;br /&gt;
{{CatStartNewMain|About PrometheusIPN}}&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
PrometheusIPN is a Garry's Mod donation system. It is available for purchase on ScriptFodder. There's a link on the right hand side and below. PrometheusIPN is still work-in-progress which means it is not at a 'feature complete' state from a developer stand-point. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Prometheus IPN provides you, as a server owner, the tools you need to manage your donations in an easy and simple way. With Prometheus you no longer need to worry about manually giving your users the donator benefits they purchase, Prometheus does it for you!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{MainButtons|Buy Prometheus|Translate Prometheus}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
{{CatStartNewMoreCategory|Installation}}&lt;br /&gt;
{{CatItemNew|check-circle|:Installation:requirements|Requirements|Requirements}}&lt;br /&gt;
{{CatItemNew|html5|:Installation:website|Website|Website installation}}&lt;br /&gt;
{{CatItemNew|check-circle|:Installation:lua_prerequisites|Lua prerequisites|Lua prerequisites}}&lt;br /&gt;
{{CatItemNew|code|:Installation:lua|Lua|Lua installation}}&lt;br /&gt;
{{CatItemNew|search|:Installation:debugging|Debugging|Help debugging your Prometheus installation}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
{{CatStartNewMoreCategory|Packages}}&lt;br /&gt;
{{CatItemNew|server|:packages:servers|Servers|Adding a server}}&lt;br /&gt;
{{CatItemNew|cubes|:packages:adding|Packages|Adding a package}}&lt;br /&gt;
{{CatItemNew|money|:packages:credit|Credits|Adding a credit package}}&lt;br /&gt;
{{CatItemNew|cubes|:packages:assigning|Assigning|Manually assigning a package}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
{{CatStartNewMoreCategory|Dashboard}}&lt;br /&gt;
{{CatItemNew|pie-chart|:dashboard:statistics|Statistics|Dashboard statistics}}&lt;br /&gt;
{{CatItemNew|dollar|:dashboard:sales|Sales|How to set up a sale}}&lt;br /&gt;
{{CatItemNew|users|:dashboard:users_transactions|Users/Transactions|Users and transactions}}&lt;br /&gt;
{{CatItemNew|map|:dashboard:updating|Updating|How to update Prometheus}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
{{CatStartNewMoreCategory|Configuration}}&lt;br /&gt;
{{CatItemNew|cogs|:settings:settings|Settings|Prometheus settings}}&lt;br /&gt;
{{CatItemNew|sticky-note|:settings:notifications|Notifications|Ingame notifications}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
{{CatStartNewMoreCategory|Integration}}&lt;br /&gt;
{{CatItemNew|money|:integration:gateways|Payment Gateways|Payment Gateways}}&lt;br /&gt;
{{CatItemNew|microphone|:integration:teamspeak3|Teamspeak 3|Teamspeak 3 Integration}}&lt;br /&gt;
{{CatItemNew|code|:integration:api|API|Prometheus API}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	<entry>
		<id>http://wiki.prometheusipn.com/index.php?title=Installation:debugging&amp;diff=111</id>
		<title>Installation:debugging</title>
		<link rel="alternate" type="text/html" href="http://wiki.prometheusipn.com/index.php?title=Installation:debugging&amp;diff=111"/>
				<updated>2015-07-30T20:21:17Z</updated>
		
		<summary type="html">&lt;p&gt;198.41.243.113: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====== Debugging ======&lt;br /&gt;
If you have any issues with Prometheus you should always read this article first:&lt;br /&gt;
&lt;br /&gt;
===== MySQL not connecting =====&lt;br /&gt;
&lt;br /&gt;
* Make sure you have MySQL remote connections enabled on your webhost's controlpanel, and your GMod server's IP whitelisted. Also make sure you have the MySQLoo module [[installation:lua|installed correctly]].&lt;br /&gt;
&lt;br /&gt;
===== MySQL Server has gone away =====&lt;br /&gt;
&lt;br /&gt;
* Set your refreshrate in your lua config to 15 seconds or less. Your MySQL server does not allow any connections that last longer than 15 seconds most likely, so it's timing out before its hitting the default 40.&lt;br /&gt;
* To fix this run these two commands in your MySQL (If you can't, get your host to do it):&lt;br /&gt;
  SET @@GLOBAL.wait_timeout=300;&lt;br /&gt;
  SET @@LOCAL.wait_timeout=300;&lt;br /&gt;
&lt;br /&gt;
===== I do not receive the test message on my server =====&lt;br /&gt;
&lt;br /&gt;
* Enable the launch parameter -condebug on your server unless you are using TCAdmin 2.0 already.&lt;br /&gt;
* **If you are using TCAdmin 2.0** View your server console upon starting your server and look for anything that says Prometheus. or &amp;quot;Database connection failed&amp;quot;.&lt;br /&gt;
* **If using -condebug** Do the same thing as above, but in the console.log file within your GMod servers &amp;quot;Garrysmod&amp;quot; directory&lt;br /&gt;
&lt;br /&gt;
===== I do receive the test message, but don't get the items in my server =====&lt;br /&gt;
&lt;br /&gt;
==== Nothing appearing in the transaction log of Prometheus ====&lt;br /&gt;
&lt;br /&gt;
* You have not set up your Prometheus properly following this [[installation:website|installation tutorial]]. Your PayPal is receiving the money, but is not sending a pingback message to your webserver.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:pingback.png|400px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your system is failing at the red arrow (Inbetween PayPal and your installation). You need to set your IPN URL in PayPal itself. See the installation tutorial link above.&lt;br /&gt;
&lt;br /&gt;
==== Something appearing in the transaction log of Prometheus ====&lt;br /&gt;
&lt;br /&gt;
* Your serverID is most likely incorrect in your lua config. To find your actual serverID go to Admin-&amp;gt; Servers and edit a server to see the ID.&lt;br /&gt;
&lt;br /&gt;
===== Parse error unexpected '[' =====&lt;br /&gt;
&lt;br /&gt;
* You do not have the latest PHP 5.4 version or greater installed on your webserver&lt;/div&gt;</summary>
		<author><name>198.41.243.113</name></author>	</entry>

	</feed>