Changeset 2225 for trunk/grails-app/views/api/index.gsp
- Timestamp:
- Apr 25, 2012, 10:42:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/api/index.gsp
r2214 r2225 55 55 <h2>prerequisites</h2> 56 56 <li>a valid username / password with role ROLE_CLIENT (see <a href="#authenticate">authenticate</a>)</li> 57 <li>a shared secret (used to calculate the validation md5 hash)</li> 57 <li>an api key (used to calculate the validation md5 hash. 58 <sec:ifLoggedIn> 59 Get your api key <g:link controller="userRegistration" action="profile">here</g:link> 60 </sec:ifLoggedIn> 61 <sec:ifNotLoggedIn> 62 Login to get your api key 63 </sec:ifNotLoggedIn> 64 )</li> 58 65 <li>a deviceID / clientID (look <a href="https://github.com/4np/UIDevice-with-UniqueIdentifier-for-iOS-5" target="_new">here</a> for iOS)</li> 59 66 … … 66 73 <li><a href="#getMeasurementDataForAssay">getMeasurementDataForAssay</a> - fetch all measurement data for a given assay</li> 67 74 75 <h2>SDK packages</h2> 76 <li><a href="https://github.com/4np/gscf4php" target="_new">PHP</a> - Object Oriented SDK for interacting with GSCF</li> 77 68 78 <a name="authenticate"></a> 69 79 <h1>authenticate</h1> … … 89 99 <p> 90 100 Every subsequent request the client does, needs to contain the validation MD5 hash, which is a MD5 sum of the concatenation of the device token, 91 the request sequence and a shared secret (e.g. <i>md5sum( token + sequence + shared secret)</i> ).<br/>101 the request sequence and the api key (e.g. <i>md5sum( token + sequence + api key )</i> ).<br/> 92 102 <i>Note that in order to be able to successfully authenticate or use the API in general, the user should have the ROLE_CLIENT assigned!</i> 93 103 … … 172 182 <td>string</td> 173 183 <td>-</td> 174 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + shared secret)</td>184 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + api key )</td> 175 185 <td>9ae87836d38d4b86be6aeff93f2b049a</td> 176 186 <td>yes</td> … … 212 222 <td>string</td> 213 223 <td>-</td> 214 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + shared secret)</td>224 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + api key )</td> 215 225 <td>9ae87836d38d4b86be6aeff93f2b049a</td> 216 226 <td>yes</td> … … 260 270 <td>string</td> 261 271 <td>-</td> 262 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + shared secret)</td>272 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + api key )</td> 263 273 <td>9ae87836d38d4b86be6aeff93f2b049a</td> 264 274 <td>yes</td> … … 308 318 <td>string</td> 309 319 <td>-</td> 310 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + shared secret)</td>320 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + api key )</td> 311 321 <td>9ae87836d38d4b86be6aeff93f2b049a</td> 312 322 <td>yes</td> … … 516 526 <td>string</td> 517 527 <td>-</td> 518 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + shared secret)</td>528 <td><a href="http://www.miraclesalad.com/webtools/md5.php" target="_new">md5sum</a>( token + sequence + api key )</td> 519 529 <td>9ae87836d38d4b86be6aeff93f2b049a</td> 520 530 <td>yes</td>
Note: See TracChangeset
for help on using the changeset viewer.