Lone Posted May 5, 2017 Posted May 5, 2017 I tried searching but I may not know the correct term I should be using, if I want to hit an api on exit to update stats what is the correct way to write it in java?
Explv Posted May 5, 2017 Posted May 5, 2017 (edited) 6 minutes ago, Lone said: I tried searching but I may not know the correct term I should be using, if I want to hit an api on exit to update stats what is the correct way to write it in java? Not really sure what you mean. If you want to do something when the script exits, override the onExit method in the Script class: @Override public void onExit() { } Edited May 5, 2017 by Explv
Polymorphism Posted May 5, 2017 Posted May 5, 2017 You may want to look into sending HTTP requests. I assume you're wanting this for a dynamic signature or something similar. https://www.mkyong.com/java/how-to-send-http-request-getpost-in-java/ 1
Lone Posted May 5, 2017 Author Posted May 5, 2017 42 minutes ago, Polymorphism said: You may want to look into sending HTTP requests. I assume you're wanting this for a dynamic signature or something similar. https://www.mkyong.com/java/how-to-send-http-request-getpost-in-java/ Yep this is it thanks! 1