Jump to content
UBot Underground

Trying To Work Out What To Do For This Api (Struggling Badly)


Recommended Posts

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

 

 

 

  • Like 1
Link to post
Share on other sites
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 by tinku
  • Like 1
Link to post
Share on other sites

 

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 

 

 

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 :)

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...