PHP Code for API key generation

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Hello all,

I know that yetishare generates API key for the admins but i was wondering if anyone is aware where this code actually lives? i want to tweak it so it generates a API key for every user...

Thanks
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
i dont see any options anywhere for api within the script interface, is this an option with the upload widget plugin?
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
The API is currently used for comms between file servers. You could probably extend it for your own use though. Have a look in:

\core\includes\api.class.php
+
\api\index.php
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
i have modified the api\index.php for more functionality but i need the apikey hash generated for all users (users table under apikey column)... the script only generates the hash for admin users but i was wondering if i could tweak the code to generate the hash for all users in the database.. so i wanted to know the location of the file which generates the hash for admin users... i hope this is making sense..
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
found it actually. its in userPeer.class.php file.... i think i have it all developed now.. excited to launch my API in a day or 2...