Feature request: support sending a json body with http request
See original GitHub issue#39
In order to use this as a way to get any valuable info from the sprinklr api, it would need to support being able to send a json body. For example:
request.AddParameter(@"application/json", "{\n\t\"sinceTime\":" + epochFromInMilliseconds + ",\n\t\"untilTime\":" + epochNowInMilliseconds + ",\n\t\"details\": {\n\t\t\"widgetType\": \"STREAM\"\n\t},\n\t\"messageFormatOptions\": \"strip_html,strip_url\",\n\t\"filters\": [\n\t\t{\n\t\t\t\"dimension\": \"TOPIC\",\n\t\t\t\"filterValues\": [\n\t\t\t\t\"" + definedTopic.Id + "\"\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"dimension\": \"MEDIA_SOURCE\",\n\t\t\t\"filterValues\": [\n\t\t\t\t\"REDDIT\",\n\t\t\t\t\"TWITTER\",\n\t\t\t\t\"FACEBOOK\"\n\t\t\t]\n\t\t}\n\t],\n\t\"metric\": \"MENTIONS\",\n\t\"start\": 0,\n\t\"rows\": 150\n}", ParameterType.RequestBody);
I believe many people would find this useful. Sprinklr is the best enterprise tool for understanding what people are talking about across all public domain social platforms. This information is valuable for corporations, research, etc.
Please let me know if I can provide any more info. Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:15 (8 by maintainers)
Judging by the votes on the original post, this is important to many users. I’ll get started working on this!
@smarkm I think what you’re asking for is a bit different from what the original poster meant. To answer your question though: No, generic query parameter as variables is not supported. If you’d like to accomplish something like this you’d have to use dashboard variables, which is supported in both the path and query string fields.
This is working beautifully! Thank you! Will also play with word cloud panel, etc.