{"id":13791385,"url":"https://github.com/InigoRomero/42ApiScript","last_synced_at":"2025-05-12T10:31:41.823Z","repository":{"id":126231691,"uuid":"349774514","full_name":"InigoRomero/42ApiScript","owner":"InigoRomero","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-29T12:02:03.000Z","size":30,"stargazers_count":11,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T05:38:56.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InigoRomero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-20T16:13:48.000Z","updated_at":"2024-07-05T14:19:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"65ce1e88-2388-465c-bb4c-9e979eef4427","html_url":"https://github.com/InigoRomero/42ApiScript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InigoRomero%2F42ApiScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InigoRomero%2F42ApiScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InigoRomero%2F42ApiScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InigoRomero%2F42ApiScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InigoRomero","download_url":"https://codeload.github.com/InigoRomero/42ApiScript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253719964,"owners_count":21952934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T22:00:59.606Z","updated_at":"2025-05-12T10:31:41.551Z","avatar_url":"https://github.com/InigoRomero.png","language":"Ruby","funding_links":[],"categories":["42 API"],"sub_categories":["Wrappers"],"readme":"# 42ApiScript\n#### Welcome\nRuby Scripts with calls to the api of 42 useful, thinking to facilitate the work of educators in the piscine and students\n# installation macOS\n#### Install ruby\n```shell\nbrew install ruby\n```\n#### install dependencies\n```shell\ngem install oauth2  \ngem install dotenv\n```\n#### create the .env file\n```shell\nmv example_env .env\n```\n# Configure\nNow you need to configure the variables of the .env \u003cbr\u003e\nYou can get the UID and the SECRET in profile-\u003e settings-\u003e API-\u003e REGISTER A NEW APP\u003cbr\u003e\nOnce achieved, for the rest of variables, you can know what the ID is by executing the scripts in [getID](/getID)\u003cbr\u003e\n```env\nUID=YOUR_UID\nSECRET=YOUR_SECRET\nCAMPUSID=YOUR_CAMPUS_ID\nMEID=YOUR_ID\nMYCOALITIONID=COALITION_ID\nCURSUSID=9\n```\n# Usage\n```shell\nruby NAME_RB\n```\n# Features\n* Pedago\n    * [EventsOfUser](/pedago/EventsOfUser.rb) Get all the EVENTS os user giving the Login\n    * [Projects](/pedago/Projects.rb) 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\n    * [userOnPiscine](/pedago/userOnPiscine.rb) Get all USERS on specific piscine of a campus\n    * [UsersOfEvents](/pedago/UsersOfEvents.rb) Get all USERS on specific events\n* getID\n    * [CampusID](/getID/CampusID.rb) Get ID of a CAMPUS giving him name\n    * [CoalitionID](/getID/CoalitionID.rb) Get ID of a COALITION giving him name\n    * [LoginID](/getID/LoginID.rb) Get ID of a USER giving the login\n* Others\n    * [allCursus](allCursus.rb) Get all the cursus on 42 network\n    * [AllUsers](AllUsers.rb) Get all the users on your Campus\n    * [Store42](/Store42.rb) get the Products and prize of the store\n    * [Title](/Title.rb)  Get all the titles on 42 network\n\nDocumentation: [42 API](https://api.intra.42.fr/apidoc)\nAny kind of support is appreciated: iromero- :) \u003cbr\u003e\nPlease feel free to contribute to the repo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInigoRomero%2F42ApiScript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInigoRomero%2F42ApiScript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInigoRomero%2F42ApiScript/lists"}