Question for automation wizards

For Issues, Ideas, or Subjects That Do Not Fit Elsewhere

Moderators: Moderator, DM

Post Reply
User avatar
Zanniej
Posts: 2454
Joined: Sat Jan 11, 2014 11:28 am
Location: The dark parts of the forum

Question for automation wizards

Unread post 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?
Off to greener pastures
User avatar
Aspect of Sorrow
Custom Content
Posts: 2634
Joined: Fri Mar 28, 2014 7:11 pm
Location: Reliquary

Re: Question for automation wizards

Unread post 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.
User avatar
Zanniej
Posts: 2454
Joined: Sat Jan 11, 2014 11:28 am
Location: The dark parts of the forum

Re: Question for automation wizards

Unread post by Zanniej »

Aspect of Sorrow wrote: Wed Dec 06, 2023 9:40 pm 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.
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"?
Off to greener pastures
User avatar
Aspect of Sorrow
Custom Content
Posts: 2634
Joined: Fri Mar 28, 2014 7:11 pm
Location: Reliquary

Re: Question for automation wizards

Unread post 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
User avatar
Zanniej
Posts: 2454
Joined: Sat Jan 11, 2014 11:28 am
Location: The dark parts of the forum

Re: Question for automation wizards

Unread post by Zanniej »

Yeah, that could probably work.
Won't shave much more time off it though. 2FA is also annoying in that regard :-P

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!
Off to greener pastures
User avatar
Aspect of Sorrow
Custom Content
Posts: 2634
Joined: Fri Mar 28, 2014 7:11 pm
Location: Reliquary

Re: Question for automation wizards

Unread post by Aspect of Sorrow »

You can automate the 2FA using Bluestacks.
Post Reply

Return to “General Discussion”