ATuringtest 14 Posted April 18, 2020 Report Share Posted April 18, 2020 I have some text in variable that I want to be grammar checked by this API. The API is a trial so I've included the API key. I have Heopas's HTTP Get and Post this is my example https://doc-partner-services.gingersoftware.com/correction/v1/document?apiKey=56465a24-4a77-4954-8933-bb6156af1316 I'm just not getting what I need to fill out and where.. and how do you parse the variable with the text, dose it have to be a document work with the API ? All documentations is here https://www.gingersoftware.com/ginger-api/documentations?utm_medium=email&utm_source=link&utm_campaign=api_documentation Its very frustrating , I'm getting nowhere with it If I could just get a simple working example I can then mess with it and relate to it and hopefully work out other from it. Thanks 1 Quote Link to post Share on other sites
tinku 6 Posted April 18, 2020 Report Share Posted April 18, 2020 (edited) set(#test,$plugin function("HeopasCustom.dll", "$Heopas HTTP Post", "https://doc-partner-services.gingersoftware.com/correction/v1/document?apiKey=56465a24-4a77-4954-8933-bb6156af1316","\{\"text\": \"{#text}\"\}", "", "", "", "Content-Type: text/plain", ""),"Global") You can use heopas plugin as http post is getting old and aymen has not updated the plugin from a couple of years.It have not option to pass header,you can pass the key words in parameters and headers as your need .You can correlate it with the code i have attached. Thanks&Regards Tinku Singh Edited April 18, 2020 by tinku 1 Quote Link to post Share on other sites
ATuringtest 14 Posted April 18, 2020 Author Report Share Posted April 18, 2020 set(#test,$plugin function("HeopasCustom.dll", "$Heopas HTTP Post", "https://doc-partner-services.gingersoftware.com/correction/v1/document?apiKey=56465a24-4a77-4954-8933-bb6156af1316","\{\"text\": \"{#text}\"\}", "", "", "", "Content-Type: text/plain", ""),"Global") You can use heopas plugin as http post is getting old and aymen has not updated the plugin from a couple of years.It have not option to pass header,you can pass the key words in parameters and headers as your need .You can correlate it with the code i have attached.Thanks&RegardsTinku Singh Wow Tinku thank you very much it worked a treat Now I have a at least something that works I have a base to work with. The heaopas plugin does have a section for headers, need to mess around and see what works 1 Quote Link to post Share on other sites
tinku 6 Posted April 19, 2020 Report Share Posted April 19, 2020 You Most Welcome! Happy To help group member if i know Something related to their query Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.