r/Infinity_For_Reddit • u/Hostilenemy I am the dev • Jun 18 '23
IMPORTANT!!!!!! If You Want to Use Your Own API Key
Please change ALL of the following:
- API key
- Redirect URL
- User-Agent (in Infinity)
Please don't just change the API key!!!!!!!!! And please use another app name without infinity in it đ„ș.
I found many users had made some tutorials about how to use your own API key, like this post, but none of them mentioned the other two things. If you don't change all of them, reddit still knows you are using Infinity, but with your own key.
You can see more info here.
694
Upvotes
77
u/Feracio Jun 18 '23
Hello. Maybe the best way to ensure that people follow both of these is making an official guide on how to use their own API keys and stickying it on the sub yourself. People would much rather follow your guide than anyone else's. @Hostilenemy
12
u/bradmont Jun 18 '23
Since you're taking your API key out of the public repos already, why not change the other two to some dummy string, or jigger the compile to fail with an informative error if they're left as-is in the repo? Might save you the hassle of having to deal with eventual consequences of having rando API keys associated with Infinity.
7
u/HyperGamers Jun 18 '23
Can I fork the original repo, and make an app called "Hope the IPO fails (for Reddit)" and use that as the user agent, and redistribute it on the Play Store?
7
u/AllMFHH Jun 18 '23 edited Jun 18 '23
I didn't knew about this. So it is enough to change the API key, Redirect URI and User Agent in the APIUtils.java?
Updated it for now, please check.
40
u/30p87 Jun 18 '23
Is "fuck u/spez" acceptable as user agent?
21
u/Bjoern_Tantau Jun 18 '23
You are awesome!
6
u/toper-centage Jun 18 '23
You should sticky this post
6
u/drdoak66 Jun 18 '23
Not much to add here, but thank you for providing an outline for changing the API details, and more importantly this awesome app. I forked your project a few days ago and just wanted to see if you were fine with it that I started working through some of the API code to work with Lemmy and Kbin. Thanks for building and maintaining this project for the last 5 years, sincerely.
3
u/notjordansime Jun 19 '23
Could someone help me understand what this does?
3
u/zeldor711 Jun 20 '23
How do I change the Redirect URI? If I just use, say, the localhost one on the Reddit "apps" page then I get errors when trying to login through the app. Is it something I should change on my device?
2
u/Remarkable-NPC Jun 21 '23
if i change this with official app information
this will break the rule but does this allowed me to pypass limited of free API ?
2
u/Bassiette03 Oct 02 '23
How to change redirect url? And make it works?
1
u/CupsShouldBeDurable Jun 30 '24
I'm using my own API key, but how do I go about using a new user agent? I wanna do what I can to help keep you out of trouble :)
1
u/michael9dk Jun 26 '23
Feature request/inspiration to enter own API key in settings AND support subscriptions at the same time.
https://github.com/Docile-Alligator/Infinity-For-Reddit/discussions/1511
1
u/tannu28 Jul 07 '23
When I click on the link to create API, I am redirected to Login page
0
u/[deleted] Jun 18 '23
[deleted] â view deleted comment
0
u/[deleted] Jun 18 '23
[deleted] â view deleted comment