Ruby Scripts with calls to the api of 42 useful, thinking to facilitate the work of educators in the piscine and students
brew install ruby
gem install oauth2
gem install dotenv
mv example_env .env
Now you need to configure the variables of the .env
You can get the UID and the SECRET in profile-> settings-> API-> REGISTER A NEW APP
Once achieved, for the rest of variables, you can know what the ID is by executing the scripts in getID
UID=YOUR_UID
SECRET=YOUR_SECRET
CAMPUSID=YOUR_CAMPUS_ID
MEID=YOUR_ID
MYCOALITIONID=COALITION_ID
CURSUSID=9
ruby NAME_RB
- Pedago
- EventsOfUser Get all the EVENTS os user giving the Login
- Projects By giving a login you will be able to see their projects, Marks and status. Also if you give a name of a project you can check if it is registered
- userOnPiscine Get all USERS on specific piscine of a campus
- UsersOfEvents Get all USERS on specific events
- getID
- CampusID Get ID of a CAMPUS giving him name
- CoalitionID Get ID of a COALITION giving him name
- LoginID Get ID of a USER giving the login
- Others
Documentation: 42 API
Any kind of support is appreciated: iromero- :)
Please feel free to contribute to the repo