News for hackers. Stuff that matters.
Re:Stripe CLI by IGotThroughIt on Tuesday November 05, 2019 @04:48PM (#21457091)
Top APIs I've enjoyed working with:

1. Stripe (Best)

2. Twilio

3. Twitter (Does what it needs to do quickly)

4. Puppeteer (Amazing. Was super helpful.)

5. Google (mostly ok but could be better)

APIs I've hated working with:

1. Paypal (the worst - docs are horrible and UI is not consistent with most of the help material out there because it changes all the time. Have you tried their support? That's a beauty)

2. Facebook (same story but manageable compared to paypal)

Re:Stripe CLI by GarrisonPrime on Tuesday November 05, 2019 @08:43PM (#21458931)
God, I haaaaaaaaate PayPal. Not as a dev, but as a casual private user, a real-world entertainment venue business owner, an online retail business owner, an eBay user, a seeker of capital loan sources, and just a UI and customer service utilizer.

If ever there was an example of a company with "first out of the gate" advantage leading to such a large head-start that theyy could afford to constantly give the middle finger to everyone, PayPal is it. I cannot wait for legit altternatives to catch up.

Stripe is doing pretty well, but unless they somehow tap into the casual online user they won't disrupt PayPal's stranglehold to any significant extent.

Re:Stripe CLI by paintballboi07 on Wednesday November 06, 2019 @01:25AM (#21460187)
I swear it honestly seems like PayPal tries to make their site as hard to use and bloated as possible. I've never personally used their API, but if it's anything like their site, I'm thankful.
Re:Stripe CLI by anshumanravi on Wednesday November 06, 2019 @03:18AM (#21460625)
Same here, I just hate PayPal documentation, and the way they managed to keep it shitty over the years. Braintree (A division of PayPal) has nice documentation though.
Re:Stripe CLI by dalanmiller on Tuesday November 05, 2019 @06:24PM (#21457979)
The Twilio Dashboard _really_ needs a refresh. It's still in a world where every button is a complete page refresh. It's painfully slow to interact with.
Re:Stripe CLI by rogem002 on Tuesday November 05, 2019 @07:14PM (#21458414)
I can live with the full page refresh, but my biggest pain point is working with sub accounts on trello. They store the sub account in a cookie instead of in the URL, so if I want to share what I'm looking at with a colleague it's a faff.
Re:Stripe CLI by noname120 on Wednesday November 06, 2019 @07:04AM (#21461677)
Have you tried using containers? There are extensions for Firefox[1] and Chrome[2].

[1] https://addons.mozilla.org/en-US/firefox/addon/multi-account...

[2] https://chrome.google.com/webstore/detail/sessionbox-free-mu...

Re:Stripe CLI by vincentmarle on Tuesday November 05, 2019 @08:13PM (#21458782)
For some reason every page load also needs to download a 8MB blob. I discovered this when I was trying to access it over a tethered connection.
Re:Stripe CLI by smoussa on Tuesday November 05, 2019 @05:41PM (#21457550)
Add eBay to the second list. We are still uploading XML documents.
Re:Stripe CLI by pbreit on Tuesday November 05, 2019 @07:55PM (#21458676)
Ebay does have a "RESTful" API: https://developer.ebay.com/api-docs/static/ebay-rest-landing...

Definitely agree that the old SOAP API was/is horrific. But the XML is about as easy to work with as JSON/REST.

Re:Stripe CLI by realusername on Wednesday November 06, 2019 @12:49AM (#21460033)
I second that, eBay API is hot garbage and their staging is years out of date.
Re:Stripe CLI by hobofan on Tuesday November 05, 2019 @05:58PM (#21457700)
And Amazon sellers API (Amazon MWS). Rarely seen such an inconsistent mess of often poorly documented SOAP-ish calls, that so many external partners base their livelyhood on.
Re:Stripe CLI by etaioinshrdlu on Tuesday November 05, 2019 @07:14PM (#21458416)
Some APIs you can choose to use. Other APIs you have to use. The ones you have to use tend to not care much about the developer experience... Because why should they? No one's going to avoid Amazon because their API was annoying. People need to make money.

This actually explains a lot of other things. Like the DMV.

Re:Stripe CLI by Mikhail_Edoshin on Wednesday November 06, 2019 @07:05AM (#21461683)
The API is not not SOAPish, it just uses XML. They probably choose it so that they can use XML Schema to check incoming data (which is exactly the right decision here).
Re:Stripe CLI by jdnenej on Tuesday November 05, 2019 @07:22PM (#21458476)
eBay is an absolute nightmare. They have a demo instance to test on and it's about 4 years out of date and half of it doesn't work anymore.
Re:Stripe CLI by smitop on Tuesday November 05, 2019 @08:06PM (#21458748)
For those interested, the demo instance is at https://sandbox.ebay.com/ The message at the top says "eBay and PayPal will be separate companies soon", even though they became seperate companies 4 years ago.
Re:Stripe CLI by exikyut on Thursday November 07, 2019 @09:02AM (#21473224)
Wow, this is awesome.

Mousing over the links there to see where they go, the first interesting-looking one was the supported/unsupported features list, over at https://ebaydts.com/eBayKBDetails?KBid=684. Ah, I see - a wall of text reminscent of "system requirements", except it's a list of things you don't get instead.

But then going up to https://ebaydts.com, I met with... a blank page. But it has a title, so something's blown up. I hit F12 half expecting to be met with some kind of implosion, and even then I was cynically amused: the page has `<body style="display:none;>`, with no closing quote, and while Chrome parses it properly the devtools don't, so the CSS editor leaks bits of HTML.

On the one hand my infosec-sense says there's probably some awesome stuff hiding in here... but on the other hand, between the 1000 feet of bureaucracy I'd have to all but drown to report _anything_ I found, and the tenterhooks I'd be on while poking around establishing there's anything there beyond plausible deniability... not worth it?

Re:Stripe CLI by ironman77 on Wednesday November 06, 2019 @11:48AM (#21464292)
Okay, it's not just me (demo instance). Ebay's APIs and their SDK documentation (or lack thereof) are making me re-think my app's monetization model. Docs are shockingly bad, full of screenshots that look like ebay from the early 2000s.
Re:Stripe CLI by jdnenej on Wednesday November 06, 2019 @04:21PM (#21467473)
I was working with it 3 years ago and it sounds like it hasn't gotten any better in that time.
Re:Stripe CLI by wrboyce on Tuesday November 05, 2019 @08:50PM (#21458964)
I submitted a SAR to eBay and they responded by posting me a copy of my data on a USB stick!
Re:Stripe CLI by unilynx on Wednesday November 06, 2019 @01:20AM (#21460165)
Did you image it to check for deleted data in unallocated space?
Re:Stripe CLI by organsnyder on Tuesday November 05, 2019 @08:33PM (#21458893)
Just be thankful you haven't worked in healthcare.
Re:Stripe CLI by knightofmars on Wednesday November 06, 2019 @04:31PM (#21467592)
Seconded.
Re:Stripe CLI by tashoecraft on Tuesday November 05, 2019 @07:42PM (#21458604)
I was shocked at how bad the documentation for Facebook was. I assumed wiring up login would be super simple, it’s amazing how hard it was to find in their documentation. I guess when you’re paying devs to implant a shitty custom currency you can’t invest in docs for one of your biggest integrations.
Re:Stripe CLI by Groxx on Tuesday November 05, 2019 @07:52PM (#21458661)
Alternate reason: you'll figure it out anyway, because it's one of their biggest integrations. It doesn't matter how hard it is if your users and your business wants it.

They have no incentive to improve their docs. They're Facebook, there's no competition at all.

Re:Stripe CLI by dotancohen on Tuesday November 05, 2019 @05:28PM (#21457449)
Add Mailchimp to that first list. When I do APIs I set Mailchimp quality as my documentation goal.
Re:Stripe CLI by freehunter on Tuesday November 05, 2019 @06:21PM (#21457942)
I’ve had a good experience with Facebook up until a few months ago when they started shutting off APIs that SHOULD be public without giving any notice and implementing silly requirements like “can’t post to your own business page without giving Facebook a login to your app and letting Facebook post on your company’s behalf”.
Re:Stripe CLI by carlallison on Tuesday November 05, 2019 @10:14PM (#21459434)
Foursquare API [1] is pretty good too (if you're still doing the location thing)

[1] https://developer.foursquare.com/

Re:Stripe CLI by zyrthofar on Tuesday November 05, 2019 @06:35PM (#21458072)
Twilio indeed! I also have Digital Ocean and SendGrid on my own list, which are written by developers for developers.
Re:Stripe CLI by trustfundbaby on Tuesday November 05, 2019 @07:43PM (#21458612)
Github api. honorable mention.
Re:Stripe CLI by lucasmullens on Tuesday November 05, 2019 @08:17PM (#21458810)
For which side?