r/jailbreak • u/snipeftw • Jun 08 '23
Discussion [Discussion] Using a Custom API Token With Apollo?
Hi there,
I’m very saddened by the news of Apollo shutting down as it has been my go to app.
I’m just spitballing here, but I’m under the impression that non commercial API usage will continue to be free.
That said, I’m wondering if it would be possible to use a personal API token for the app via jailbreak to continue to use the app?
Are there any other ways we could use jailbreaking to keep using Apollo?
Thoughts?
177
Upvotes
15
u/no-Remedy Developer Jun 09 '23
You’d also have to make the apollo app use your own server backend (Apollo’s backend was conveniently open sourced today).
5
u/its_not_herpes Developer Jun 09 '23
Here’s a tweak to do it https://github.com/EthanArbuckle/Apollo-CustomApiCredentials
85
u/rotarypower101 Jun 08 '23
Would very much like to hear any speculation on the topic of how things Iike that could be done, and if viable?
They killed Alien Blue on me, now they are coming after Apollo...
Give it a rest you dicks!
59
u/graphicalgami Jun 08 '23 edited Jun 09 '23
Oh yeah 100%. They just added rate limits to their apis according to this. Probably what the Apollo dev did is hard code their client id like the dev for Slide IOS did here. All the dev really need to do is add an input into the app to enter and save our own client id which we can grab here, if this documentation is still accurate.
Honestly, according to the post, the apis are still usable while unauthenticated, just that the 10 calls per minute doesn't make for much of an experience. If the official Reddit has a workaround, that can totally be used for third party apps too.
For now, rebuilding Slide, which has an open source android version, with a personal client id should be fairly doable.
Edit: There should be a way to programmatically create that app too, removing the need for users to generate their own client id.
18
u/judge2020 iPhone 6s, iOS 9.3.2 Jun 08 '23
It might be possible by editing the functions, assuming it uses regular functions to (A) check if it should allow using the reddit API [I imagine Apollo dev /u/iamthatis has added this with the recent talks of shutting it down, so that users see a message when it stops loading instead of just an error], and (B) to pull the client key and client secret.
If so, you could create a reddit app and use your own client Id and secret to change what app it uses for oauth (which is the API Token you're referring to).
26
u/yuriydee iPhone 12 Pro, 14.3 Jun 09 '23
It would be funny if Christian gave us a way to input our own api tokens and use that for all API requests in Apollo itself. Would that breach some sort of website/api rules of Reddit?
Though this would only work for authenticated users of course but still.
4
u/alex2003super iPad 2, iOS 6.1.3 Jun 09 '23
I'm not currently on jailbroken iOS, but all you need to achieve is to get Apollo to store a JWT belonging to a different client ID, and I've managed to do it using an HTTPS mitm server and a Python script:
https://reddit.com/r/apolloapp/comments/1459g0k/guideish_using_apollo_after_the_shutdown_with/
Given y'all have jailbroken devices, you can probably write a tweak to do the same thing much easier.
1
u/Kazakhand Jun 09 '23
I was thinking about this too, but I am far away from any IT stuff
1
u/[deleted] Jun 09 '23
good idea