PlanetCloud Posted April 29, 2022 Share Posted April 29, 2022 (edited) Hi, I've created a new library to handle Callbacks from MOFH Api. Here's the link: https://github.com/PlanetTheCloud/mofh-callback-client If there are callbacks that are missed, please let me know. Thank you. Edited April 30, 2022 by PlanetCloud Quote Link to comment Share on other sites More sharing options...
Dimitris Posted April 30, 2022 Share Posted April 30, 2022 9 hours ago, PlanetCloud said: Hi, I've created a new library to handle Callbacks from MOFH Api. Here's the link: https://github.com/PlanetTheCloud/mofh-callback-client If there are callbacks that are missed, please let me know. Thank you. Great work! Thank you for creating this library. Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted April 30, 2022 Share Posted April 30, 2022 Awesome @PlanetCloud! I’m stuck without my computer until tomarrow, so I’ll check it out in-depth later. Look very promising though! Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 3, 2022 Author Share Posted May 3, 2022 On 5/2/2022 at 2:08 AM, BastelPichi said: @PlanetCloud Theres also a delete function, when a suspended account gets deleted. Example: ('username', 'fhts_12345678'), ('status', 'DELETE'), ('comments', 'fhts_12345678') Oooo I see, I'll add this, thank you. Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 3, 2022 Author Share Posted May 3, 2022 I've updated the code, take a look: https://github.com/PlanetTheCloud/mofh-callback-client Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted May 3, 2022 Share Posted May 3, 2022 For Entry Process Limit: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"ADMIN_CLOSE : DAILY_ ep"} For Daily Hits: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"ADMIN_CLOSE : DAILY_HIT;"} For CPU Limit: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"ADMIN_CLOSE : DAILY_ cpu"} For Inactive Account: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"AUTO_IDLE;"} !!!This is the only one I am 99% sure on, the rest are correct!!!! Hope this helps! Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted May 3, 2022 Share Posted May 3, 2022 Glad to see that a library is actually going up for this stuff! I'll see if I can seek out any more Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 8 hours ago, TinkerMan said: For Entry Process Limit: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"ADMIN_CLOSE : DAILY_ ep"} For Daily Hits: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"ADMIN_CLOSE : DAILY_HIT;"} For CPU Limit: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"ADMIN_CLOSE : DAILY_ cpu"} For Inactive Account: {"username":"uname_xxxxxxxx","status":"SUSPENDED","comments":"AUTO_IDLE;"} !!!This is the only one I am 99% sure on, the rest are correct!!!! I noticed for the comments, if there are multiple suspension history, we'll receive it all like this: OTHER_CLOSE; REQUESTED OTHER_CLOSE; OTHER_CLOSE; NULLED_SCRIPT Is this always the case or only for manual intervention/suspension? Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted May 4, 2022 Share Posted May 4, 2022 8 minutes ago, PlanetCloud said: Is this always the case or only for manual intervention/suspension? Nope, manual suspension by the reseller admin will always give a Suspend Deactivate response. Experienced Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 3 minutes ago, RoyalityFree said: Nope, manual suspension by the reseller admin will always give a Suspend Deactivate response. Experienced Okay, what about the comments given? Does it include comments from previous suspension? Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted May 4, 2022 Share Posted May 4, 2022 do u want my data.json? I will share it @Shen Wei i remember sharing u the file, do u still have it? Mind sharing it here pls? Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 10 minutes ago, RoyalityFree said: do u want my data.json? I will share it @Shen Wei i remember sharing u the file, do u still have it? Mind sharing it here pls? What does data.json contains? Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted May 4, 2022 Share Posted May 4, 2022 all responses i recorded from mofh till now. Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 11 minutes ago, RoyalityFree said: all responses i recorded from mofh till now. I would love to get that data and I believe it should be shared privately (because it contains usernames) or you can remove the usernames first and share it here. It would be very helpful indeed. Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted May 4, 2022 Share Posted May 4, 2022 should I PM you the file? Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 11 minutes ago, RoyalityFree said: should I PM you the file? Sure you can Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted May 4, 2022 Share Posted May 4, 2022 Alright, watch out. Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 Received, thank you. I'll analyze it and make changes accordingly. Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted May 4, 2022 Share Posted May 4, 2022 Great, best of luck! Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted May 4, 2022 Share Posted May 4, 2022 9 hours ago, PlanetCloud said: if there are multiple suspension history, we'll receive it all like this: Yes. Is know there are thinks like “Linked to” and “ADMIN CLOSE” and “RES CLOSE”, but I have yet to determine if they are auto-sent or based on actual admin action. Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 Added new features: Before and after callback middlewares. Should help with logging. Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 4, 2022 Author Share Posted May 4, 2022 Since the reason for suspension comes in many shapes and sizes, I believe I shouldn't add a specific handler for each. Just onAccountSuspended is enough. For the reason, it is recommended that it is logged/saved to database along with the account. Sometimes the same reason for example "Disposable email" comes in the following format: DISPOSABLE_EMAIL and "disposable email protonmail.com". Would be hellish to code for each scenario. Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted May 4, 2022 Share Posted May 4, 2022 Cool! Maybe just allow the temp suspensions to have their own call? Ex cpu, ep Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted May 5, 2022 Author Share Posted May 5, 2022 8 hours ago, TinkerMan said: Cool! Maybe just allow the temp suspensions to have their own call? Ex cpu, ep Hmm, why should that be the case? Quote Link to comment Share on other sites More sharing options...
TinkerMan Posted May 5, 2022 Share Posted May 5, 2022 So a reseller could tell their clients that they were suspended because of x, otherwise they will come to whatever support channel you have an go “Why am I suspended??? I want my account back!!! I did nothing worng! Please?” my fairly accurate representation of an annoyed clieny. Quote Link to comment Share on other sites More sharing options...
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.