Page 1 of 1
Question for automation wizards
Posted: Wed Dec 06, 2023 5:48 am
by Zanniej
I've started automating the server finances update, because I want to prevent repeating one of my previous mistakes. I've come a long way, but am still stuck at one challenge.
I want an automatic activity export from my PayPal account. Right now, I have to log in, generate the export, wait for it to finish, click download, and then I can get to work. Preferably, I wouldn't have to log in at all, and either get an automatic report in the email, or to FTP or something.
Does anyone have any experience with things like this, or suggestions on how to go about this?
Re: Question for automation wizards
Posted: Wed Dec 06, 2023 9:40 pm
by Aspect of Sorrow
https://developer.paypal.com/api/rest/
https://developer.paypal.com/docs/api/payments/v2/
https://developer.paypal.com/api/rest/webhooks/
CURL is supported in Powershell. Setup a scheduled task/cron, have the cached output thrown to a report or even made available on these forums in that thread. Setup threshold met notifications that push to email, discord, etc. We had this before on BGTSCC but I assume is long buried.
Re: Question for automation wizards
Posted: Thu Dec 07, 2023 4:29 am
by Zanniej
The hitch I ran into with the PayPal API is that it requires a business account to go live, or test stuff outside of the US. Since this is not a business (and I get into trouble if I pretend we are, for the sake of PayPal functionality), we do not have a business account.
I might've overlooked something in how it works exactly, but I
think I'm not able to use that.
Did I miss something in that regard, that anyone knows? Can it work without going "live"?
Re: Question for automation wizards
Posted: Thu Dec 07, 2023 5:01 pm
by Aspect of Sorrow
You could write a browser extension that automates the task for client level emulation. Mousedown events on button dom Ids.
https://developer.mozilla.org/en-US/doc ... bExtension
Re: Question for automation wizards
Posted: Fri Dec 08, 2023 4:02 am
by Zanniej
Yeah, that could probably work.
Won't shave much more time off it though. 2FA is also annoying in that regard
Could probably add it to the selenium script I already have running for part of it. Log in, wait for the 2FA prompt, then carry on.
Thanks for thinking along!
Re: Question for automation wizards
Posted: Fri Dec 08, 2023 2:38 pm
by Aspect of Sorrow
You can automate the 2FA using Bluestacks.