{"id":19701204,"url":"https://github.com/alexanderc/ubidots","last_synced_at":"2025-04-29T13:32:57.936Z","repository":{"id":52506242,"uuid":"161449792","full_name":"AlexanderC/ubidots","owner":"AlexanderC","description":"Unofficial Ubidots NodeJS API Client","archived":false,"fork":false,"pushed_at":"2021-04-27T08:53:25.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T02:46:15.123Z","etag":null,"topics":["api","iot","sdk","ubidots"],"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/AlexanderC.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":"2018-12-12T07:32:27.000Z","updated_at":"2023-04-28T07:36:03.000Z","dependencies_parsed_at":"2022-09-05T07:01:33.468Z","dependency_job_id":null,"html_url":"https://github.com/AlexanderC/ubidots","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderC%2Fubidots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderC%2Fubidots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderC%2Fubidots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderC%2Fubidots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderC","download_url":"https://codeload.github.com/AlexanderC/ubidots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251509814,"owners_count":21600709,"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":["api","iot","sdk","ubidots"],"created_at":"2024-11-11T21:08:12.326Z","updated_at":"2025-04-29T13:32:57.437Z","avatar_url":"https://github.com/AlexanderC.png","language":"JavaScript","readme":"# Unofficial Ubidots NodeJS API Client\n\nNode.js API Client for [Ubidots](https://ubidots.com)\n\n## Prerequisites\n\n- [ ] `Node.JS` \u003e=v8\n\n## Installation\n\n```bash\nnpm install ubidots-node\n```\n\n## Usage\n\nInitializing Library:\n\n```javascript\nconst Ubidots = require('ubidots-node');\nconst client = Ubidots.create(Ubidots.ApiBase.Educational);\n\n// Authorize API with an API Key\nawait client.authorize(API_KEY);\n// or alternatively using a pre-generated API Token\nclient.token = API_TOKEN;\n\n// Obtain UTC timestamp\nconst { data: now } = await ubitods\n  .api('utils') // API namespace\n  .endpoint('utc-timestamp') // API endpoint\n  .call(); // Pass parameters/options/data\n\nconsole.log('UTC Timestamp', now);\n\n// Generate API token using API Key\nconst { data: token } = await ubitods\n  .api('auth') // API namespace\n  .endpoint('obtainToken') // API endpoint\n  .call(apiKey = 'your-api-key'); // Pass parameters/options/data\n\nconsole.log('API Token', token);\n```\n\nAvailable APIs:\n\n- `auth` - [Authentication](https://ubidots.com/docs/sw/#section/Authentication)\n- `organization` - Missing docs\n- `user` - Missing docs\n- `datasource` - [Datasources](https://ubidots.com/docs/sw/#tag/Datasources)\n- `dashboard` - Missing docs\n- `device` - [Devices](https://ubidots.com/docs/sw/#tag/Devices)\n- `variable` - [Variables](https://ubidots.com/docs/sw/#tag/Variables)\n- `utils` - [Utils](https://ubidots.com/docs/sw/#tag/Utils)\n\nOfficial API Documentation: [https://ubidots.com/docs/sw/](https://ubidots.com/docs/sw/)\n\n\u003e For usage examples see `test/` folder\n\n## Testing\n\n```bash\nUBIDOTS_API_KEY='xxxx' UBIDOTS_TOKEN='xxxx' npm test\n```\n\n## Debugging\n\nFor debugging purpose the [debug](https://www.npmjs.com/package/debug) npm module is used.\n\nExample of using the debug feature:\n\n```bash\nDEBUG='ubidots-node:*' npm test\n```\n\n## Roadmap\n\n- [ ] Complete API definition\n- [ ] Add missing tests\n- [ ] Add payload validation\n- [ ] Find missing docs *(Ubidots support?)*","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderc%2Fubidots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderc%2Fubidots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderc%2Fubidots/lists"}