Place your bets which ones of these VKontakte apps I'll be able to make work with Smithereen
Now here's the first obstacle: how do I make these apps talk to something I control instead of the real VK servers. For testing I could just put things into /etc/hosts I guess? Oh and I also have to do the self-signed SSL certificate thing because they all use HTTPS for authentication (and only for it, all API calls happen over plaintext HTTP)
Ok I'm getting somewhere
One thing I didn't realize is that these apps are new enough to know about `execute`. Smithereen does have that, it's even better than VK's but fully backwards compatible. However, the code that they execute surely assumes things about older API response formats 🤔
So I managed to make the newest app of the three do this. And yes, all those `execute`s are a serious problem. For example, when you create a wall post using the wall.post method, VK would return just an object with {"post_id": 123}. So the app runs an execute that calls wall.post and then wall.getById.
But Smithereen returns the post object straight from wall.post because why not. But of course that breaks that execute. And there are TONS of things like this, unfortunately.
@grishka Oh `execute` was such a nice thing to have back then! The closest we'll ever get to bringing PL/SQL to the modern world I guess 😅
@grishka I used Charles Proxy and its request rewrite rules for the exact same purpose.
@grishka (it is a paid application but it's very good and totally worth its 50$)
@broadway_lamb (I'm not the kind of person who pays for anything digital, I've had it pirated for ages)
@grishka I miss good 'ol Cydia..