May 5, 20178 yr 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?
May 5, 20178 yr 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, 20178 yr by Explv
May 5, 20178 yr 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/
May 5, 20178 yr Author 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!
Create an account or sign in to comment