Forum

Seek Urgent Help - REST API usage

Hello.

Anyone please help me to use the REST API.

At least let me know if there is any chance to use it from local server, say WAMP server.

Any good tutorial will be helping. I am trying with the below URLs.
https://hub.taotesting.com/restapis
https://hub.taotesting.com/techdocs/tao-outcome/how-to-use-qti-result-api

API URL
In API URL I have mentioned the below URL
$apiUrl = 'http://localhost/tao/taoResultServer/QtiRestResults';

instead of original one given as below
$apiUrl = 'http://taoLocation.com/taoResultServer/QtiRestResults';

Is this correct?

Parameters
Also in case of parameters I have mentioned below local resources
$testtakerUri = urlencode('http://localhost/tao/mytao.rdf#xxxxxxxxxxxx');
$deliveryUri = urlencode('http://localhost/tao/mytao.rdf#xxxxxxxxxxxx');

instead of original one given as below
$testtakerUri = urlencode('http://tao.local/mytao.rdf#xxxxxxxxxxxx');
$deliveryUri = urlencode('http://tao.local/mytao.rdf#xxxxxxxxxxxx');

Is this okay?

I am in a hurry and urgently looking for support.
Please help.

Regards & Thanks,
Amit

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy

×