{"id":16222076,"url":"https://github.com/hugodf/uclapi-javascript","last_synced_at":"2026-04-24T16:06:41.134Z","repository":{"id":57384919,"uuid":"83675863","full_name":"HugoDF/uclapi-javascript","owner":"HugoDF","description":"JavaScript wrapper for the UCL API","archived":false,"fork":false,"pushed_at":"2017-03-07T14:08:15.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-06T16:58:23.268Z","etag":null,"topics":["api","es2015","es6","javascript","node"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HugoDF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T12:34:15.000Z","updated_at":"2017-03-04T19:02:55.000Z","dependencies_parsed_at":"2022-09-05T06:30:17.974Z","dependency_job_id":null,"html_url":"https://github.com/HugoDF/uclapi-javascript","commit_stats":null,"previous_names":["hugodf/js-uclapi"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/HugoDF/uclapi-javascript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fuclapi-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fuclapi-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fuclapi-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fuclapi-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoDF","download_url":"https://codeload.github.com/HugoDF/uclapi-javascript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fuclapi-javascript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","es2015","es6","javascript","node"],"created_at":"2024-10-10T12:11:00.360Z","updated_at":"2026-04-24T16:06:41.117Z","avatar_url":"https://github.com/HugoDF.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uclapi\nJavaScript wrapper for the UCL API. Works both in the browser and in Node.\n\n## Usage\n\n```js\n// ES6 modules\nimport UclApi from 'uclapi';\n\n// CommonJS\nconst UclApi = require('uclapi');\n\n// Initialise the API wrapper\n\nconst token = 'my-ucl-api-token';\nconst uclApi = new UclApi({ token });\n\nuclApi.getRooms(/* { options } */)\n  .then(rooms =\u003e {\n    console.log(rooms);\n  });\n\nuclApi.getBookings(/* { options } */)\n  .then(bookings =\u003e {\n    console.log(bookings);\n  });\n\nuclApi.getEquipment(/* { options } */)\n  .then(equipment =\u003e {\n    console.log(equipment);\n  });\n```\n\n## API\n\n`UclApi#getRooms`:\n- params: (all optional) roomid, roomname, siteid, sitename, classification, capacity\n- return: Promise that resolves to an array of room objects\n\n`UclApi#getBookings`:\n- params: (all optional) roomid, start\\_datetime, end\\_datetime, date, siteid, description, contact, results\\_per\\_page, roomname\n- return: Promise that resolves to an array of booking objects\n\n`UclApi#getBookings`:\n- params: (all optional) roomid, siteid\n- return: Promise that resolves to an array of equipment objects\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fuclapi-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugodf%2Fuclapi-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fuclapi-javascript/lists"}