+ 11
[SOLVED] SoloLearn Profile ID Extracter
How will I get the Profile ID of Code Runner (who running the code) programmatically using any language like PHP, java, ruby, c# or whatever else? I know, I can manually extract my unique profile ID by sharing my profile in the form of URL also by logging in web and then extract it from URL. But here my question is extracting the profile id of code runner.
33 Answers
+ 13
somewhat a hacky way to do it:
1) use something like ClientJS to identify the device
2) use web storage service (firebase can work)
3) when user runs the app, the ClientJS id is checked against the database,if exist, the username is taken, else prompt a username input and save to the database with the ClientJS id as the key
* take into consideration it is not a foolproof method
* as to date i do not know any way to access the userid of SL (and boy have i tried...)
ClientJS
https://github.com/jackspirou/clientjs
+ 12
Anaika Soti
i understand that, that's why i called it "hacky"
i tried myself to find access to user SL id but with no success
so the only alternative i can think of is implementing it yourself with some kind of fingerprint (ClientJS) and a storage service
true that it would require at least one prompt on each device, but if you do find a way to access the user SL id please do update us ^_^
+ 11
In simple words you can't get that without using SoloLearn User's Sessions or cache (whatever sl app store as session).
.
But you can get do that using other social media APIs like" FACEBOOK LOGIN", "Login with Twitter", "Google plus login" etc....
+ 11
Whatever I don't care.. 😏
+ 8
I'm not talking about unpacked APK...
I'm talking about SOURCE CODE... (almost 25-30Mb I guess)
+ 8
I believe I know what you're talking about.
As an example ... If I were to run someone's game on SoloLearn and their program automatically identified my username so that it could display it on the global scoreboard within the program itself for other users to see ... would that be addressing the concept that you're attempting to reference?
+ 6
@Anaika then contact solodevs 😅
+ 6
@Winston
Lol.. Even you said..."Anybody can extract the source code of apps today".. then why I'm joking 😑?
And another thing we can also DECRYPT obfuscation
+ 6
Lol.. I said I HAVE FULL SOURCE CODE..
+ 3
Code runner is the user, who is running the code in his/her device.
+ 3
You can't do that automatically, but it's possible if "code runner" can input it's Sololearn ID manually. You can save it by using Firebase and do whatever you want to do with it. Unfortunately, no other way :/
+ 3
I am still searching for it. I know the SoloLearn App didn't allow users to do such things. It's good to get input there unique ID from user but not everyone knows there unique ID. Trying to fetching the URL of Code Runner.
+ 3
You can give instructions in your code about "How to get the ID". Many user who wanted their "Code Runners" to give their ID do the same thing. BTW how you can get user ID by fetching URL of "Code Runner" ? 😮
+ 2
I was trying to fetching user's URL by using JS (window.location.href) it gives "about::blank", Also PHP ($_SERVER['PHP_SELF']) it gives "../Playground", Now trying something else for getting the playground URL.
+ 2
Mhmmm ... That's the last option. Firstly I have to know which Server Side language they use in SoloLearn for backend.
+ 2
@Anaika Soti He was joking in my opinion. Anybody can extract the source code of apps today. This is why developers use a method to make the code unreadable for humans called obfuscation.
So even though you got the source code, you won't be able to do anything with it.
Also, why do you want to extract SoloLearn ID?
+ 2
No offense @Nikky... I thought you were joking because you told her to get the decompiled source code of the SoloLearn app knowing it would be unreadable...
Also decrypting obfuscation? No you can't. You can simplify it, making a thousand parts method as one but no you can't get back lost methods and variables name.
+ 2
But in order to get source code (located in src folder, compiled as class files), you have to unpack the apk, no? I can be wrong, I didn't tried to capture source code of apps for months...
+ 2
@Anaika Oops you're right! Actually I mean decompiled apk...
I always miss the difference 😶
+ 2
@Anaika Sorry not to be helping :/
By the way, why do you want to do that? Don't mean to be intrusive but I am wondering...