<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Android и Cotonti</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 21:10:27 -0000</pubDate>

		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	I think that method is for http basic authentication. Cotonti uses a custom authentication process. You have to do a POST with the login details (just like on the website) and then fetch the session id so you can use that in the following requests. This last bit is where it gets tricky. Cotonti doesn't return the session id, is uses php sessions. A module or plugin will have to handle that.</p>
<p>
	<strong>Added 2 hours later:</strong></p>
<p>
	<a href="http://www.cotonti.com/datas/users/api_68.zip">Here's</a> my API framework for Cotonti. It works like this:</p>
<ol><li>
		GET api.php?a=init</li>
	<li>
		Response JSON contains 'xk', Cotonti's security key and 'signature', a sha-1 hash of the response body.</li>
	<li>
		POST api.php?m=users.auth with params: rusername, rpassword, x (value of xk from init), signature (sha-1 hash of POST body)</li>
	<li>
		Response JSON contains 'xk', 'session' (the session ID), 'signature' among others.</li>
</ol><p>
	All requests are GET or POST. All responses are in JSON format.</p>
<p>
	This is basically a framework for writing a site-wide API. I've provided simple functions so it's relatively easy to write APIs for your own modules. Actually this is already in use for a commercial iPhone app.</p>
]]></description>
			<pubDate>Вт, 27 Вер 2011 08:25:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6528&d=0#post30823]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[<p>
	я думал.</p>
<p>
	но имхо надо сначало вывести весь котонти в виде JSONмассива а на это надо плуг написать</p>
]]></description>
			<pubDate>Пн, 26 Вер 2011 18:39:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6528&d=0#post30819]]></link>
		</item>
		<item>
			<title>Yusupov</title>
			<description><![CDATA[<blockquote>
	<a href="https://www.cotonti.com/forums.php?m=posts&amp;p=30815%2330815">#30815</a> <strong>GHengeveld: </strong><br /><p>
		Do you mean an API? I've been working on that.</p>
</blockquote>
<p>
	<span class="hps">Yes, I want</span> <span class="hps">to provide access</span> <span class="hps">to data</span> <span class="hps">on the site</span> <span class="hps">through</span> <span class="hps">an android</span> <span class="hps">application. </span><span class="hps">For an application</span> <span class="hps">to login</span> <span class="hps">via</span> <span class="hps">WebView.</span> <span class="hps">I'm trying to</span> <span class="hps">make it through the</span> <span class="hps">method </span><span class="hps">setHttpAuthUsernamePassword,</span> <span class="hps">but</span> <span class="hps">nothing happens</span> <span class="hps">...</span></p>
<p>
	Sorry for my english)</p>
]]></description>
			<pubDate>Пн, 26 Вер 2011 17:47:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6528&d=0#post30818]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Do you mean an API? I've been working on that.</p>
]]></description>
			<pubDate>Пн, 26 Вер 2011 17:31:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6528&d=0#post30815]]></link>
		</item>
		<item>
			<title>Yusupov</title>
			<description><![CDATA[<p>
	Кто-нибудь пробовал организовать в андроид-приложении авторизацию на сайте на базе cotonti?</p>
]]></description>
			<pubDate>Пн, 26 Вер 2011 13:56:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6528&d=0#post30814]]></link>
		</item>
	</channel>
</rss>