{"id":18821164,"url":"https://github.com/compwright/ongage","last_synced_at":"2026-05-04T14:43:51.161Z","repository":{"id":147470127,"uuid":"362641105","full_name":"compwright/ongage","owner":"compwright","description":"Ongage API Javascript Client","archived":false,"fork":false,"pushed_at":"2024-08-12T23:20:30.000Z","size":2485,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T03:33:46.893Z","etag":null,"topics":["api","email","fetch","nodejs","ongage","rest"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ongage","language":"JavaScript","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/compwright.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-04-29T00:15:54.000Z","updated_at":"2024-08-12T23:20:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"def65573-a23a-423a-b610-cfd7c5c8657f","html_url":"https://github.com/compwright/ongage","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fongage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fongage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fongage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fongage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/ongage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758831,"owners_count":19692034,"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","email","fetch","nodejs","ongage","rest"],"created_at":"2024-11-08T00:35:12.496Z","updated_at":"2026-01-17T21:30:22.658Z","avatar_url":"https://github.com/compwright.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ongage API Javascript Client\n\nWorks by composing fetch-compatible request objects.\n\n## Installation\n\n```\n$ npm install ongage --save\n```\n\n## Usage\n\n```js\nimport { ContactsApi } from 'ongage';\n\nconst contactsApi = new ContactsApi('username', 'password', 'account code');\n\nconst { url, ...req } = contactsApi.getByEmail('jonathon@compwright.com');\nconst res = await fetch(url, req);\nconst data = await res.json();\n```\n\n## API\n\n### [ContactsApi](https://ongage.atlassian.net/wiki/spaces/HELP/pages/1004175381/Contacts+API+Methods)\n\n* getById(id, listId)\n* getByEmail(email, listId)\n* getListsByEmail(email)\n* create({ email, overwrite, fields }, listId)\n* create([{ email, overwrite, fields }, { email, overwrite, fields }, ...], listId)\n* update({ email, ...fields }, listId)\n* update([{ email, ...fields }, { email, ...fields }, { email, ...fields }, ...], listId)\n* delete({ contact_id }, listId)\n* delete({ contact_ids }, listId)\n* changeStatus({ emails, change_to, ocx_child_id, ocx_connection_id }, listId)\n* changeEmail({ email, new_email }, listId)\n\n### [ListsApi](https://ongage.atlassian.net/wiki/spaces/HELP/pages/1027965140/List+API+Methods)\n\n* get(id)\n* getAll({ name, type, sort, order, offset, limit })\n* createExport({ list_id, name, segment_id, mailing_id, date_format, file_format, fields_selected, status })\n* retrieveExport(id)\n\n## License\n\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fongage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Fongage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fongage/lists"}