<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gextension.ibot3.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Addons%3AAPI</id>
	<title>Addons:API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gextension.ibot3.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Addons%3AAPI"/>
	<link rel="alternate" type="text/html" href="https://gextension.ibot3.de/wiki/index.php?title=Addons:API&amp;action=history"/>
	<updated>2026-05-04T10:16:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://gextension.ibot3.de/wiki/index.php?title=Addons:API&amp;diff=281&amp;oldid=prev</id>
		<title>Ibot3 at 09:51, 21 May 2017</title>
		<link rel="alternate" type="text/html" href="https://gextension.ibot3.de/wiki/index.php?title=Addons:API&amp;diff=281&amp;oldid=prev"/>
		<updated>2017-05-21T09:51:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:51, 21 May 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;api &lt;/del&gt;environment can be used to provide functions that can be used by other applications with or without an API key. It's a clean site, but with all variables, classes and functions that GExtension has. The api file is then available under api.php?t=&amp;lt;rawname&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;API &lt;/ins&gt;environment can be used to provide functions that can be used by other applications with or without an API key. It's a clean site, but with all variables, classes and functions that GExtension has. The api file is then available under api.php?t=&amp;lt;rawname&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[$key=...]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Security Check ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Security Check ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ibot3</name></author>
		
	</entry>
	<entry>
		<id>https://gextension.ibot3.de/wiki/index.php?title=Addons:API&amp;diff=280&amp;oldid=prev</id>
		<title>Ibot3: Created page with &quot;The api environment can be used to provide functions that can be used by other applications with or without an API key. It's a clean site, but with all variables, classes and...&quot;</title>
		<link rel="alternate" type="text/html" href="https://gextension.ibot3.de/wiki/index.php?title=Addons:API&amp;diff=280&amp;oldid=prev"/>
		<updated>2017-05-21T09:49:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The api environment can be used to provide functions that can be used by other applications with or without an API key. It&amp;#039;s a clean site, but with all variables, classes and...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The api environment can be used to provide functions that can be used by other applications with or without an API key. It's a clean site, but with all variables, classes and functions that GExtension has. The api file is then available under api.php?t=&amp;lt;rawname&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Security Check ==&lt;br /&gt;
To verify that the file was included by GExtension, it's required to include the following code at the beginning of the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
	if(!isset($G_API)){&lt;br /&gt;
		die(json_encode(array(&amp;quot;error&amp;quot; =&amp;gt; &amp;quot;authentification failed&amp;quot;)));&lt;br /&gt;
	}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Structure ==&lt;br /&gt;
You should use the RequiredArguments($arg1, $arg2, ...) function to check if specified POST/GET paramters are given. All given paramters will be transformed into global variables with the same name or the user will get an error message.&lt;br /&gt;
&lt;br /&gt;
If you are providing multiple actions on your API page, you should use the &amp;quot;action&amp;quot; paramter.&lt;br /&gt;
&lt;br /&gt;
== No Login ==&lt;br /&gt;
By default, using an API page requires the API key which can be found in the settings. To make a file public, you need to run the following function once (may put it in the install.php):&lt;br /&gt;
 NoAuthFiles::Add('api', '&amp;lt;rawname&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
[[Category:Addons]]&lt;/div&gt;</summary>
		<author><name>Ibot3</name></author>
		
	</entry>
</feed>