Hi there,
Iāve just met Plotly and I think it is great tool which can be of importance in a company I am currently working in. So Iāve decided to check out REST API - my probable use case would be creating data in internal application and then export it to Plotly in order for people to see it/edit/comment/etc.
So I am trying to create simplest āHello worldā example but I am stuck. I was trying to use simple HTML page with jQuery AJAX call to REST API but I stumbled upon CORS/cross-domain SSL issues. Ok, we can skip that. Iāve switched to Fiddler for the sake of simplicity.
I am pasting simple JSON (taken from DOCS, with my login/pass) as request body but I am on and on reciving error message.
Here is the JSON request body taken from Fiddler:
{un: āchlebikā, key: āMY_API_KEY_TAKEN_FROM_SETTINGSā, origin: āplotā, platform: ālispā, args: [[0, 1, 2], [3, 4, 5], [1, 2, 3], [6, 6, 5]],
kwargs: {āfilenameā: āplot from apiā,
āfileoptā: āoverwriteā,
āstyleā: {
ātypeā: ābarā
},
ātracesā: [1],
ālayoutā: {
ātitleā: āexperimental dataā
},
āworld_readableā: true
}
}
Whatever I do I get āMissing required POST parameters: platform un key origin args kwargsā despite the fact that body is recognised by Fiddler as JSON - event JSON-tree is created.
So the question is - am I so tired by now just to miss something obvious or is there some catch I have no idea about?