|
|
@ -22,11 +22,6 @@ can be turned off.
|
|
|
|
|
|
|
|
|
|
|
|
Plugins
|
|
|
|
Plugins
|
|
|
|
--------------
|
|
|
|
--------------
|
|
|
|
- how does authentication work
|
|
|
|
|
|
|
|
- what is the plugin authentication
|
|
|
|
|
|
|
|
- when does a plugin need an user?
|
|
|
|
|
|
|
|
- how to change user names
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
k4evers API also has a *plugin*-concept. :class:`Plugins <main.models.Plugin>`
|
|
|
|
k4evers API also has a *plugin*-concept. :class:`Plugins <main.models.Plugin>`
|
|
|
|
can be allowed by users to buy items on their behalf. To do this the user
|
|
|
|
can be allowed by users to buy items on their behalf. To do this the user
|
|
|
|
has to allow the plugin via the webinterface. A :class:`PluginPermission
|
|
|
|
has to allow the plugin via the webinterface. A :class:`PluginPermission
|
|
|
@ -202,3 +197,4 @@ As one might see, ``curl`` is quite nice for accessing the API. ``curl`` also su
|
|
|
|
curl --basic http://testplugin:maunz@server/api/buyable/account/balance/?user=frundy
|
|
|
|
curl --basic http://testplugin:maunz@server/api/buyable/account/balance/?user=frundy
|
|
|
|
# as plugin buy 10 times item with id 3
|
|
|
|
# as plugin buy 10 times item with id 3
|
|
|
|
curl --basic -X POST --data "amount=10" http://testplugin:maunz@server/api/buyable/item/3/?user=frundy
|
|
|
|
curl --basic -X POST --data "amount=10" http://testplugin:maunz@server/api/buyable/item/3/?user=frundy
|
|
|
|
|
|
|
|
|
|
|
|