Skip to content

InigoRomero/42ApiScript

Repository files navigation

42ApiScript

Welcome

Ruby Scripts with calls to the api of 42 useful, thinking to facilitate the work of educators in the piscine and students

installation macOS

Install ruby

brew install ruby

install dependencies

gem install oauth2  
gem install dotenv

create the .env file

mv example_env .env

Configure

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

Usage

ruby NAME_RB

Features

  • 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
    • allCursus Get all the cursus on 42 network
    • AllUsers Get all the users on your Campus
    • Store42 get the Products and prize of the store
    • Title Get all the titles on 42 network

Documentation: 42 API Any kind of support is appreciated: iromero- :)
Please feel free to contribute to the repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages