Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Client API (http://www.mirthcorp.com/community/forums/showthread.php?t=217785)

AlexNeiva 11-20-2017 02:12 AM

Client API

i'm using Mirth 3.5.1 and i just want to ask if we can use the Client API in Mirth itself...
Using a HTTP Sender, can we invoke the REST services?
I try to do that but with no luck! I get some SSL errors.

Best Regards

obsessio 11-20-2017 02:36 AM

Yes you can use it. If you're using an HTTP Sender to invoke API (which has HTTPS protocol), then you need to import the certificate into the default Java truststore.

AlexNeiva 11-20-2017 08:18 AM

Were can i get the certificate?

nalmeida 11-22-2017 02:22 AM

You can export it from your browser and then import in the Java truststore.

SeanSpeer 04-08-2018 09:53 PM

Is there any official documentation on the Client API and maybe some simple super secret squirrel channels that can be shared?

That'd sure be great to get some of us started in using it.


odo 04-08-2018 10:31 PM

I would recommend to only use the webservice api directyl from within mirth if you want to remotely access mirth instances of another version than the calling instance.

If both are of the same version, I would strongly recommend using the mirth client instead (com.mirth.connect.client.core.Client). It encapsulates the calls to the mirth server and is much more convenient than using the webservice api directly.

SeanSpeer 04-08-2018 10:39 PM

Thx odo... makes perfect sense.

I found some documentation that seems pretty neat. I don't know the rules of sharing this documentation I pulled off the success community... but if anyone has questions I'm sure I can point them in the right direction.

I still haven't found any sample channels based on this... still looking around for that. I learn better by breaking things than reading.

odo 04-08-2018 10:49 PM


Originally Posted by SeanSpeer (Post 263212)
I still haven't found any sample channels based on this

If you are into Java, the best documentation probably is browsing the source code.

If you need an example of how to use the mirth client class, you can find it in this thread.

There is a code template which uses the mirth client for backing up remote mirth instances.

SeanSpeer 04-08-2018 10:58 PM

This is awesome! I love browsing the code and learning how to do it that way. Excellent thread... I'll be looking at more of your posts too as I'm sure I can pull a lot of info from them.

I appreciate the help!

All times are GMT -8. The time now is 07:28 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation