User Tools

Site Tools

A PCRE internal error occured. This might be caused by a faulty plugin

version_4:get_user_test

====== Testing the user's credentials ====== If a user is already registered to the service and wants just to log in with a third party application, this interface can be used to check whether the credentials are valid and the user is allowed to use the service. By sending just the //nonce//, aid, //user// and hash //h//, this job can be done. ===== Authentication required ===== Yes, please take a look at [[version_3:authentication|Authentication]]. To keep it simple, only the //data// parameter is mentioned on this page, but keep in mind that the other parameters are also necessary. ===== Response ===== JSON ===== Method ===== GET ===== Resource URL ===== http://api.learning-context.de/3/user/test ===== Parameters ===== The JSON object //data// is not necessary here since there is no need to transfer any parameters. ===== Example ===== ==== Request ==== <code js-script> data={ } </code> or do not transfer //data// at all. ==== Response ==== <code js-script> { "APIVersion":3, "result":1 } </code> In case of an error, a different response is sent. Please take a look at [[version_3:errors|Error Responses]].

version_4/get_user_test.txt · Last modified: 01.05.2016 21:57 (external edit)