Currently, I noticed you were able to do some requests. Did you solve the issue? Are you able to POST requests yto our cloud?
Indeed, your request is not formatted properly. Do you want to do a Math, Text, Diagram... request? Indeed, the configuration contains the information for all content types?
For example, the body of a simple Math request shall be as follows:
Daniel
My Postman request:
Body:
Dear Daniel,
please find a simple Text REST request:
And the headers:
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstOlivier @MyScript
Dear Daniel,
Thank you for contacting us.
Currently, I noticed you were able to do some requests. Did you solve the issue? Are you able to POST requests yto our cloud?
Indeed, your request is not formatted properly. Do you want to do a Math, Text, Diagram... request? Indeed, the configuration contains the information for all content types?
For example, the body of a simple Math request shall be as follows:
{"configuration":{
"math":{"mimeTypes":["application/x-latex","application/mathml+xml"],
"solver":{"enable":true,"fractional-part-digits":3,"decimal-separator":".","rounding-mode":"half up","angle-unit":"deg"},
"margin":{"bottom":10,"left":15,"right":15,"top":10}},
"lang":"en_US",
"export":{"image-resolution":300,"jiix":{"bounding-box":false,"strokes":false,"text":{"chars":false,"words":true}}}},
"xDPI":96,"yDPI":96,
"contentType":"Math",
"theme":"ink {\ncolor: #000000;\n-myscript-pen-width: 1;\n-myscript-pen-fill-style: none;\n-myscript-pen-fill-color: #FFFFFF00;\n}\n
.math {\nfont-family: STIXGeneral;\n}\n.math-solved {\nfont-family: STIXGeneral;\ncolor: #A8A8A8FF;\n}\n.text {\nfont-family: Open Sans;\nfont-size: 10;\n}\n",
"strokeGroups":[{"penStyle":null,"strokes":[{
"x":[... ],
"y":[...],
"t":[...]},
{"x":[...],
"y":[...],
"t":[...]},
{"x":[...],
"y":[...],
"t":[...]
}]}],"height":0,"width":0,"conversionState":"DIGITAL_EDIT"}
Please adapt the body to the type of part you want to recognize.
Best regards,
Olivier
Daniel
Dear Oliver,
thanks for your quick reply. No, I didn't get it to run. The requests recorded are just the test requests from within the cloud dashboard.
I want to do a text request. Do you have also a simple example for that? I am not sure what to delete in my request.
Olivier @MyScript
Dear Daniel,
please find a simple Text REST request:
And the headers:
Olivier
1 person likes this
Daniel
Thanks Oliver! I got it running after setting the pointer type to "pointerType": "Pen" and removing "Touch, Eraser"
Olivier @MyScript
Dear Daniel,
thank you for the update, I am glad it is working.
Best regards,
Olivier