Follow

Malformed URL Issue

Avatar

Question

I'm trying to just connect to my scorm cloud web service but I keep getting malformed url. I'm doing an straight curl call from unix as an example pointed out but with no luck.

curl -H "Content-Type:application/json" -H "X-Experience-API-Version:1.0.0" -u "APPID:SECRET" \
https://cloud.scorm.com/tc/myAPPID/ -d \
'{
"actor": {
"name": "Joe",
"mbox": "mailto:sally@example.com"
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/experienced",
"display": {"en-US": "experienced"}
},
"object": {
"id": "http://example.com/activities/solo-hang-gliding",
"definition": {
"name": { "en-US": "Solo Hang Gliding" }
}
}
}'

 

Answer

In this case, you are going to want to supply the resource as well.   Our statement generator takes the endpoint as you specify, but then adds the "/statements" resource to the end of that which is where a statement should be sent and/or fetched. The same occurs for use in the browser, so if you go to:

https://cloud.scorm.com/tc/myAPPID/statements

Let us know if you have questions!  You can email us at support@tincanapi.com.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk